-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
802 additions
and
109 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
const { href, type } = Astro.props | ||
--- | ||
<div class={['Button', type ? `Button--${type}` : ''].filter(Boolean).join(' ')}> | ||
<a class="Button__inner" href={ href }> | ||
<slot/> | ||
</a> | ||
</div> | ||
|
||
<style lang="scss"> | ||
.Button { | ||
margin: 5px; | ||
border-radius: 15px; | ||
border: 5px solid $color-bg-invert; | ||
box-shadow: $shadow; | ||
} | ||
|
||
.Button__inner { | ||
font-weight: bold; | ||
text-align: center; | ||
display: block; | ||
cursor: pointer; | ||
color: $color-text-invert; | ||
background: $color-bg-invert; | ||
padding: 6px 20px; | ||
border: 3px solid #fff; | ||
border-right-color: #B3B5C1; | ||
border-bottom-color: #B3B5C1; | ||
border-radius: 10px; | ||
appearance: none; | ||
} | ||
|
||
.Button--inverted { | ||
border: 5px solid $color-bg; | ||
|
||
.Button__inner { | ||
font-weight: normal; | ||
color: $color-text; | ||
background: $color-bg; | ||
border: 3px solid #9090a1; | ||
border-right-color: #000; | ||
border-bottom-color: #000; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
varying vec2 v_uv; // uv coord | ||
varying vec2 v_px; // playdate pixel coord | ||
|
||
const float PLAYDATE_WIDTH = 400.0 / 2.0; | ||
const float PLAYDATE_HEIGHT = 240.0 / 2.0; | ||
uniform vec2 u_texSize; | ||
uniform vec2 u_screenSize; | ||
|
||
void main() { | ||
v_uv = uv; | ||
v_px = vec2(uv.x * PLAYDATE_WIDTH, uv.y * PLAYDATE_HEIGHT); | ||
v_px = vec2(uv.x * u_texSize.x, uv.y * u_texSize.y); | ||
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
import '../styles/global.scss'; | ||
let title = 'Playnote Studio'; | ||
let desc = 'An unofficial Flipnote animation player for the Panic Playdate'; | ||
let websiteUrl = 'https://playnote.studio'; | ||
let imageUrl = ''; | ||
let faviconUrl = ''; | ||
let imageWidth = ''; | ||
let imageHeight = ''; | ||
let imageAlt = ''; | ||
let twitterHandle = '@rakujira'; | ||
let locale = 'en'; | ||
--- | ||
<html lang={ locale }> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> | ||
<title>{ title }</title> | ||
<meta name="description" content={ desc }/> | ||
<!-- facebook opengraph --> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:url" content={ websiteUrl }> | ||
<meta property="og:title" content={ title }> | ||
<meta property="og:description" content={ desc }> | ||
<meta property="og:image" content={ imageUrl }> | ||
<meta property="og:image:width" content={ imageWidth }> | ||
<meta property="og:image:height" content={ imageHeight }> | ||
<meta property="og:image:alt" content={ imageAlt }> | ||
<meta property="og:site_name" content={ title }> | ||
<meta property="og:locale" content={ locale }> | ||
<!-- {altLocales} --> | ||
<!-- twitter card --> | ||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:site" content={ twitterHandle }> | ||
<meta name="twitter:url" content={ websiteUrl }> | ||
<meta name="twitter:title" content={ title }> | ||
<meta name="twitter:description" content={ desc }> | ||
<meta name="twitter:image" content={ imageUrl }> | ||
<meta name="twitter:image:width" content={ imageWidth }> | ||
<meta name="twitter:image:height" content={ imageHeight }> | ||
<meta name="twitter:image:alt" content={ imageAlt }> | ||
<!-- misc --> | ||
<link rel="shortcut icon" href={ faviconUrl } type="image/png"> | ||
<meta name="format-detection" content="telephone=no"> | ||
<link rel="icon" type="image/x-icon" href="/favicon.ico" /> | ||
|
||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@500;600;800" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<main class="Content"> | ||
<slot/> | ||
</main> | ||
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "19224d7a1dc44932ab159e5f8466b712"}'></script> | ||
</body> | ||
</html> |
Oops, something went wrong.