forked from CaliCastle/cali.so
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add layout background and fix fonts
- Loading branch information
1 parent
19526b8
commit ba6a77a
Showing
18 changed files
with
395 additions
and
355 deletions.
There are no files selected for viewing
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,29 @@ | ||
import Head from 'next/head' | ||
|
||
export default function Seo() { | ||
return ( | ||
<Head> | ||
<link | ||
rel="apple-touch-icon" | ||
sizes="180x180" | ||
href="/apple-touch-icon.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="32x32" | ||
href="/favicon-32x32.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="16x16" | ||
href="/favicon-16x16.png" | ||
/> | ||
<link rel="manifest" href="/site.webmanifest" /> | ||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#454545" /> | ||
<meta name="msapplication-TileColor" content="#282828" /> | ||
<meta name="theme-color" content="#ffffff" /> | ||
</Head> | ||
) | ||
} |
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,20 @@ | ||
import localFont from '@next/font/local' | ||
|
||
const sansFont = localFont({ | ||
src: [ | ||
{ | ||
path: './fonts/Satoshi-Variable.woff2', | ||
weight: '300 900', | ||
style: 'normal', | ||
}, | ||
{ | ||
path: './fonts/Satoshi-VariableItalic.woff2', | ||
weight: '300 900', | ||
style: 'italic', | ||
}, | ||
], | ||
variable: '--font-sans', | ||
display: 'swap', | ||
}) | ||
|
||
export { sansFont } |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,6 +1,26 @@ | ||
import '~/styles/globals.css' | ||
import type { AppProps } from 'next/app' | ||
import { sansFont } from '~/lib/font' | ||
import Seo from '~/components/Seo' | ||
import { clsxm } from '@zolplay/utils' | ||
|
||
export default function App({ Component, pageProps }: AppProps) { | ||
return <Component {...pageProps} /> | ||
return ( | ||
<> | ||
<Seo /> | ||
|
||
<main | ||
className={clsxm( | ||
sansFont.variable, | ||
'relative h-full font-sans', | ||
'bg-primary-900 text-slate-50', | ||
'bg-[url("/grid.svg")] bg-top bg-repeat' | ||
)} | ||
> | ||
<span className="pointer-events-none fixed top-0 block h-[800px] w-full select-none bg-[radial-gradient(103.72%_46.58%_at_50%_0%,rgba(255,255,255,0.09)_0%,rgba(255,255,255,0)_100%)]" /> | ||
|
||
<Component {...pageProps} /> | ||
</main> | ||
</> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.