Skip to content

Commit

Permalink
chore: apply gesture and font optim
Browse files Browse the repository at this point in the history
  • Loading branch information
CSharperMantle committed May 30, 2023
1 parent 6ebe20b commit 6f390ac
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 32 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@fontsource-variable/roboto-flex": "^5.0.0",
"@fontsource-variable/roboto-mono": "^5.0.2",
"@mui/icons-material": "^5.11.16",
"@mui/material": "^5.13.2",
"@mui/system": "^5.13.2",
Expand Down
19 changes: 6 additions & 13 deletions src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* along with this program. If not, see https://www.gnu.org/licenses/ .
*/

import "@fontsource-variable/roboto-mono"

import { graphql, PageProps } from "gatsby"
import React from "react"

Expand All @@ -28,11 +26,6 @@ import Typography from "@mui/material/Typography"

import { CommonHead } from "../components"

const codeStyle = {
fontFamily: ["'Roboto Mono Variable'", "Consolas", "monospace"].join(","),
color: "darkgray",
}

const App = ({
data,
}: PageProps<Queries.AboutPageQuery>): React.ReactElement => {
Expand All @@ -47,14 +40,14 @@ const App = ({
>
<Stack spacing={1}>
<Typography variant="h2">About Periotris.js</Typography>
<Typography variant="h6" {...codeStyle}>
Version {data.package?.version}
<Typography variant="body1" paragraph>
Version: {data.package?.version}
</Typography>
<Typography variant="h6" {...codeStyle}>
Revision {data.gitCommit?.hash?.slice(0, 8)}@{data.gitBranch?.name}
<Typography variant="body1" paragraph>
Revision: {data.gitCommit?.hash?.slice(0, 8)}@{data.gitBranch?.name}
</Typography>
<Typography variant="h6" {...codeStyle}>
License {data.package?.license}
<Typography variant="body1" paragraph>
License: {data.package?.license}
</Typography>
<Divider variant="middle" />
<Typography variant="body1" paragraph>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ const App = (): React.ReactElement => {
filterTaps: true,
swipe: {
/* TODO: Add these to customization settings! */
distance: [30, 30],
duration: 1500,
distance: [15, 15],
duration: 500,
},
}
)
Expand All @@ -78,7 +78,7 @@ const App = (): React.ReactElement => {
width: "100%",
minWidth: "0px",
boxSizing: "border-box",
flex: "1 1 auto" /* For CommonLayout.tsx headers */,
flex: "1 1 auto" /* For common layout */,

/* element-specific props */
}}
Expand Down
8 changes: 1 addition & 7 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* along with this program. If not, see https://www.gnu.org/licenses/ .
*/

import "@fontsource-variable/roboto-mono"

import { graphql, Link, PageProps } from "gatsby"
import { useI18next } from "gatsby-plugin-react-i18next"
import React from "react"
Expand All @@ -36,10 +34,6 @@ import Typography from "@mui/material/Typography"
import { CommonHead } from "../components"
import PageLocation from "../json/PageLocation.json"

const codeStyle = {
fontFamily: ["'Roboto Mono Variable'", "Consolas", "monospace"].join(","),
}

const App = ({
data,
}: PageProps<Queries.IndexPageQuery>): React.ReactElement => {
Expand Down Expand Up @@ -72,7 +66,7 @@ const App = ({
mt={3}
>
<Typography variant="h2">Periotris.js</Typography>
<Typography variant="body1" {...codeStyle}>
<Typography variant="body1">
{t("typ_version", { version: data.package?.version })}
</Typography>
</Stack>
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1720,13 +1720,6 @@ __metadata:
languageName: node
linkType: hard

"@fontsource-variable/roboto-mono@npm:^5.0.2":
version: 5.0.2
resolution: "@fontsource-variable/roboto-mono@npm:5.0.2"
checksum: 02f68aef3c332e1a349427e169d39ebd9e642ecf07c282a775b65a7a82dd0b8d22f5055cf1615b2ab05b209975bf9eeefaec41e5d37ad2a9db1fbd220cd35af3
languageName: node
linkType: hard

"@gar/promisify@npm:^1.1.3":
version: 1.1.3
resolution: "@gar/promisify@npm:1.1.3"
Expand Down Expand Up @@ -12874,7 +12867,6 @@ __metadata:
"@emotion/react": ^11.11.0
"@emotion/styled": ^11.11.0
"@fontsource-variable/roboto-flex": ^5.0.0
"@fontsource-variable/roboto-mono": ^5.0.2
"@mui/icons-material": ^5.11.16
"@mui/material": ^5.13.2
"@mui/system": ^5.13.2
Expand Down

0 comments on commit 6f390ac

Please sign in to comment.