Skip to content

Commit

Permalink
Main Page Initial Commit
Browse files Browse the repository at this point in the history
Co-authored-by: BRUHisbackbois <[email protected]>
  • Loading branch information
BrightTheBackpack and Scott170c committed Nov 26, 2024
1 parent 87f8e28 commit 06d95a4
Show file tree
Hide file tree
Showing 7 changed files with 922 additions and 135 deletions.
Binary file added app/fonts/Inter-VariableFont_opsz,wght.ttf
Binary file not shown.
14 changes: 11 additions & 3 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@
@tailwind utilities;

:root {
--background: #ffffff;
--foreground: #171717;
--background: hsl(204, 100%, 87%);
--foreground: #ffffff;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--background: #BEE5FF;
--foreground: #ededed;
}
}
@font-face {
font-family: 'Inter';
src: url('./fonts/Inter-VariableFont_opsz,wght.ttf') format('ttf');
font-optical-sizing: auto;




}
body {
color: var(--foreground);
background: var(--background);
Expand Down
26 changes: 26 additions & 0 deletions app/guide/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"use client";
import { keyframes } from '@emotion/react'

// import Image from "next/image";
import {
Box,
Button,
Image,
Flex,
Badge,
Container,
Grid,
Heading,
Text,
Card
} from 'theme-ui'
const fadeIn = keyframes({ from: { opacity: 0 }, to: { opacity: 1 } })

export default function guide() {
return (
<div>
hello world!

</div>
);
}
7 changes: 6 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ const geistMono = localFont({
variable: "--font-geist-mono",
weight: "100 900",
});
const inter = localFont({
src: "./fonts/Inter-VariableFont_opsz,wght.ttf",
variable: "--font-inter",

})

export const metadata: Metadata = {
title: "Create Next App",
Expand All @@ -26,7 +31,7 @@ export default function RootLayout({
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
className={`${inter.variable} ${inter.variable} antialiased`}
>
{children}
</body>
Expand Down
285 changes: 192 additions & 93 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,101 +1,200 @@
import Image from "next/image";
"use client";
import { keyframes } from '@emotion/react'

// import Image from "next/image";
import {
Box,
Button,
Image,
Flex,
Badge,
Container,
Grid,
Heading,
Text,
Card
} from 'theme-ui'
const fall = (rotationDirection) => keyframes`
from {
transform: translateY(-10%) rotate(0deg);
}
to {
transform: translateY(2000%) rotate(${rotationDirection * 360}deg);
}
`;
export default function Home() {

return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
<Image
className="dark:invert"
src="/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
<li className="mb-2">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
app/page.tsx
</code>
.
</li>
<li>Save and see your changes instantly.</li>
</ol>
<Grid gap = {0}>
<Box
sx={{
position: 'absolute',
top: -10,
left: 0,
}}>
<Button>
<Image src="https://assets.hackclub.com/flag-orpheus-top.svg" sx ={{
height:"10vh"
}}></Image>

<div className="flex gap-4 items-center flex-col sm:flex-row">
<a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"

</Button>

</Box>



{/* {Array.from({ length: 50 }).map((_, index) => (
<span
key={index}
className="snowflake"
style={{
left: `${Math.random() * 100}vw`,
fontSize: `${Math.random() * 20 + 10}px`,
animationDelay: `${Math.random() * 10}s`,
}}
>
<Image
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
</span>
))} */}
{Array.from({ length: 50 }).map((_, index) => {
const randomRotationDirection = Math.random() > 0.5 ? 1 : -1;
const randomSpeed = Math.random() * 5 + 5;
return(
<Text
key={index}
sx={{
position: 'absolute',
top: '-10%',
zIndex: -9999,
left: `${Math.random() * 90}vw`,
animation: `${fall(randomRotationDirection)} ${randomSpeed}s linear infinite`,
color: 'white',
fontSize: `${Math.random() * 20 + 10}px`,
animationDelay: `${Math.random() * 10}s`,
transform: `rotate(${randomRotationDirection * 360}deg)`,



}}
>
</Text>)
})}

<Box>

</Box>
<Box
sx={{
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
gap: '1rem',
padding: '1rem',
width: '100%',
margin: 'auto',
textAlign: 'center'
}}
>
Read our docs
</a>
</div>
</main>
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org →
</a>
</footer>
</div>
<Image
src="https://cdn.discordapp.com/attachments/1049738373880881217/1310824966178209792/image.png?ex=6746a061&is=67454ee1&hm=d2896e141425e66ea0738ac6090182920d0e1be921bdc737555de75a011d45a2&"
alt="Example PCB!"
style={{ width: '25%', height: '24%' }}
sx={{
width: '300px',
height: '200px',
// borderRadius: '16px',
// boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.1)',
'&:hover': {
transform: 'scale(1.1)',
transition: 'transform 0.3s ease-in-out',
},
}}
/>
<Box
sx={{
display: 'flex',
flexDirection: 'column',
alignItems: 'left',
// justifyContent: 'left',
ml: '2vw',
mt: '12%',
maxWidth: '100%',
textAlign: 'center'
}}
>
<Heading as="h1" variant="styles.h1"
sx={{
fontFamily: 'var(--font-inter)',
fontSize: '5rem',
fontWeight:900,
textAlign: 'left'


}}>
Hacky Holidays!
</Heading>
<Heading as="h2" variant="styles.h1"
sx={{
fontFamily: 'var(--font-inter)',
fontSize: '1.5rem',
fontWeight:900
}}>
Design a PCB holiday decoration this winter, get a PCB grant!
</Heading>
<Button
sx={{
fontFamily: 'var(--font-inter)',
fontSize: '1rem',
fontWeight: 900,
color: 'white',
bg: '#FF8585',
width: 'fit-content',
borderRadius: '1rem',
padding: '1rem 2rem',
mt: '1rem'
}}>
<b>Register Now!</b>
</Button>


</Box>

</Box>


<Box
sx={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'white',
color: 'black',
width: '100%',
// margin: 'auto',
height: '100vh',
mt: '20vh',
textAlign: 'center'
}}>
Section 2
hello world

</Box>
<div style={{
backgroundColor: '#FF8D8D',
height: '250%',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
fontSize: '1.2vw',
color: 'white'
}}>
Made with ❤️ and ❄️ by Bright Li & Scott Chiang
</div>
</Grid>
);
}
Loading

0 comments on commit 06d95a4

Please sign in to comment.