-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: favicon * feat: landing page * feat: button hover transition * refactor: font weight, button component props * fix: switch background to JPG, other semantic fixes
- Loading branch information
1 parent
baf3d72
commit f725912
Showing
14 changed files
with
169 additions
and
45 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
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,7 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
plugins: { | ||
"tailwindcss/nesting": "postcss-nesting", | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
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,3 +1,5 @@ | ||
import { Landing } from "./sections"; | ||
|
||
export default function Home() { | ||
return <h1 className="text-3xl font-bold underline">IrvineHacks 2024</h1>; | ||
return <Landing />; | ||
} |
16 changes: 16 additions & 0 deletions
16
apps/site/src/app/(home)/sections/Landing/Landing.module.css
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,16 @@ | ||
.landingSection { | ||
background-image: url("~@/assets/backgrounds/landing-background.jpg"); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
position: relative; | ||
min-height: 100vh; | ||
min-width: 100vw; | ||
} | ||
|
||
.landingGroup { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
text-align: center; | ||
} |
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,19 @@ | ||
import Button from "@/components/Button/Button"; | ||
import styles from "./Landing.module.css"; | ||
|
||
const Landing = () => { | ||
return ( | ||
<section className={styles.landingSection}> | ||
<div className={styles.landingGroup}> | ||
<h1 className="font-display">IrvineHacks 2024</h1> | ||
<p className="font-display">January 26–28</p> | ||
<Button | ||
text="Stay updated" | ||
href="https://uci.us13.list-manage.com/subscribe?u=5976872928cd5681fbaca89f6&id=93333e11eb" | ||
/> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Landing; |
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 @@ | ||
export { default as Landing } from "./Landing/Landing"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Alegreya:wght@400;500;600;700&display=swap"); | ||
@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700&display=swap"); | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
:root { | ||
--foreground-rgb: 0, 0, 0; | ||
--background-start-rgb: 214, 219, 220; | ||
--background-end-rgb: 255, 255, 255; | ||
--color-cream: #fffce2; | ||
--color-brown: #432810; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
--foreground-rgb: 255, 255, 255; | ||
--background-start-rgb: 0, 0, 0; | ||
--background-end-rgb: 0, 0, 0; | ||
} | ||
body { | ||
color: var(--color-cream); | ||
} | ||
|
||
body { | ||
color: rgb(var(--foreground-rgb)); | ||
background: linear-gradient( | ||
to bottom, | ||
transparent, | ||
rgb(var(--background-end-rgb)) | ||
) | ||
rgb(var(--background-start-rgb)); | ||
h1 { | ||
font-size: calc(30px + 2vw); | ||
font-weight: 700; | ||
} | ||
|
||
p { | ||
font-size: calc(15px + 1.5vw); | ||
margin-bottom: 1rem; | ||
} | ||
|
||
a { | ||
font-size: calc(13px + 1vw); | ||
font-weight: 700; | ||
} |
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.
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 @@ | ||
.button { | ||
background-image: radial-gradient( | ||
50% 50% at 50% 50%, | ||
#fff3d6 0%, | ||
#ffda7b 51.04%, | ||
#ffa700 100% | ||
); | ||
box-shadow: 0px 0px 20px rgba(255, 252, 226, 0.5); | ||
border-radius: 15px; | ||
color: var(--color-brown); | ||
padding: 0.55rem 1.25rem; | ||
transition: | ||
filter 0.1s ease, | ||
box-shadow 0.1s ease; | ||
|
||
&:hover { | ||
box-shadow: 0px 0px 20px #fffce2; | ||
filter: brightness(1.05); | ||
} | ||
} |
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,28 @@ | ||
import styles from "./Button.module.css"; | ||
|
||
interface ButtonProps { | ||
text: string; | ||
href?: string; | ||
} | ||
|
||
const Button: React.FC<ButtonProps> = ({ text, href }) => { | ||
if (href) { | ||
return ( | ||
<a | ||
href={href} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className={styles.button + " font-body"} | ||
> | ||
{text} | ||
</a> | ||
); | ||
} | ||
return ( | ||
<button type="submit" className={styles.button + " font-body"}> | ||
{text} | ||
</button> | ||
); | ||
}; | ||
|
||
export default Button; |
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,20 +1,24 @@ | ||
import type { Config } from 'tailwindcss' | ||
import type { Config } from "tailwindcss"; | ||
|
||
const config: Config = { | ||
content: [ | ||
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/components/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/app/**/*.{js,ts,jsx,tsx,mdx}', | ||
], | ||
theme: { | ||
extend: { | ||
backgroundImage: { | ||
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', | ||
'gradient-conic': | ||
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', | ||
}, | ||
}, | ||
}, | ||
plugins: [], | ||
} | ||
export default config | ||
content: [ | ||
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/components/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/app/**/*.{js,ts,jsx,tsx,mdx}", | ||
], | ||
theme: { | ||
extend: { | ||
backgroundImage: { | ||
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))", | ||
"gradient-conic": | ||
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", | ||
}, | ||
fontFamily: { | ||
display: ["Alegreya"], | ||
body: ["Mulish"], | ||
}, | ||
}, | ||
}, | ||
plugins: [], | ||
}; | ||
export default config; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.