Skip to content

Commit

Permalink
Added analytics, fixed dot grid clip at end of viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaeling committed Oct 25, 2023
1 parent 6de33b7 commit d028311
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@vercel/analytics": "^1.1.1",
"next": "13.5.6",
"react": "^18",
"react-dom": "^18",
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Metadata } from 'next';
import '../styles/globals.css';
import { IBM_Plex_Sans as Sans, Spline_Sans_Mono as Mono } from 'next/font/google';
import { Analytics } from '@vercel/analytics/react';

const sans = Sans({
subsets: ['latin'],
Expand Down Expand Up @@ -30,6 +31,7 @@ export default function RootLayout({
<html lang='en' className={`${sans.variable} ${mono.variable}`}>
<body className={'overflow-x-hidden text-lightest font-body w-screen h-screen'}>
{children}
<Analytics />
</body>
</html>
);
Expand Down
14 changes: 9 additions & 5 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@
}

body {
/* background: rgba(23, 26, 13, 0); theme(colors.darkest); */
background-image: radial-gradient(rgba(70, 79, 35, 0.3) 1px, transparent 0);
/* background-image: radial-gradient(rgba(70, 79, 35, 0.3) 1px, transparent 0); */
/* background-image: radial-gradient(circle at 1px 1px, rgba(70, 79, 35, 0.3) 1px, transparent 0);
background-size: 30px 30px;
background-position: -19px -19px;
background-position: -19px -19px; */
}

html {
/* background: theme(colors.darkest); */
background: radial-gradient(circle at 100px 350px, theme(colors.darker) 0%, theme(colors.darkest) 40%);
/* background-image: radial-gradient(rgba(70, 79, 35, 0.3) 1px, transparent 0);
background-size: 30px 30px;
background-position: -19px -19px; */
background-image: radial-gradient(circle at 1px 1px, rgba(70, 79, 35, 0.3) 1px, transparent 0), radial-gradient(circle at 100px 350px, theme(colors.darker) 0%, theme(colors.darkest) 40%);
background-size: 30px 30px, 100%;
background-position: -19px -19px, 0;
background-attachment: fixed;
}

Expand Down

0 comments on commit d028311

Please sign in to comment.