Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up Home page content including Landing #21

Merged
merged 21 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/site/next.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const path = require('path');
const path = require("path");

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
sassOptions: {
includePaths: [path.join(__dirname, "src", "lib", "styles")]
}
includePaths: [path.join(__dirname, "src", "lib", "styles")],
},
};

module.exports = nextConfig;
3 changes: 3 additions & 0 deletions apps/site/src/assets/images/ApplyButton.svg
tyleryy marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions apps/site/src/lib/styles/_zothacks-theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// Common variables for site theme consistency

// import bootstrap scss
@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/mixins";

tyleryy marked this conversation as resolved.
Show resolved Hide resolved
// colors
$white: #fafaff; // Paper Background color
$beige: #faf4ea;
Expand Down
32 changes: 30 additions & 2 deletions apps/site/src/views/Landing/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,37 @@
import "./Landing.module.scss";
"use client";
import Container from "react-bootstrap/Container";
import Row from "react-bootstrap/Row";

import ApplyButton from "./components/ApplyButton/ApplyButton";
import AboutSection from "./components/AboutSection/AboutSection";
import MentorSection from "./components/MentorSection/MentorSection";
import SponsorSection from "./components/SponsorSection/SponsorSection";
import FAQSection from "./components/FAQSection/FAQSection";
import styles from "./Landing.module.scss";
tyleryy marked this conversation as resolved.
Show resolved Hide resolved

export default function Landing() {
return (
<main>
<h1>ZotHacks 2023</h1>
<Container className="justify-content-center text-center">
<Row>
<h1>ZotHacks 2023</h1>
</Row>
<Row>
tyleryy marked this conversation as resolved.
Show resolved Hide resolved
<ApplyButton />
</Row>
<Row>
<AboutSection />
</Row>
<Row>
<MentorSection />
</Row>
<Row>
<SponsorSection />
</Row>
<Row>
<FAQSection />
</Row>
</Container>
tyleryy marked this conversation as resolved.
Show resolved Hide resolved
</main>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function AboutSection() {
return <></>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@use "bootstrap-utils" as utils;

.applyButtonContainer {
position: relative;
}

.applyButton {
position: relative;
transform: skew(-30deg);
height: 80px;
width: 250px;
tyleryy marked this conversation as resolved.
Show resolved Hide resolved
margin: 0px;
border: none;
background-color: utils.$yellow;
tyleryy marked this conversation as resolved.
Show resolved Hide resolved
tyleryy marked this conversation as resolved.
Show resolved Hide resolved
transition: all 0.1s ease;
tyleryy marked this conversation as resolved.
Show resolved Hide resolved

&:hover {
border: black solid 6px;
background-color: utils.$yellow;
tyleryy marked this conversation as resolved.
Show resolved Hide resolved

h2:nth-of-type(1) {
text-decoration: underline;
}
}
}

.applyButtonText {
color: black;
position: absolute;
top: 50%;
left: 55%;
transform: skew(30deg) translate(-50%, -50%);
tyleryy marked this conversation as resolved.
Show resolved Hide resolved
}
16 changes: 16 additions & 0 deletions apps/site/src/views/Landing/components/ApplyButton/ApplyButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import styles from "./ApplyButton.module.scss";

import Button from "react-bootstrap/Button";
tyleryy marked this conversation as resolved.
Show resolved Hide resolved

export default function ApplyButton() {
return (
<div className={styles.applyButtonContainer}>
tyleryy marked this conversation as resolved.
Show resolved Hide resolved
<Button
className={styles.applyButton}
href="https://hack.ics.uci.edu/" // TODO Change to application site link
>
<h2 className={styles.applyButtonText}>Apply!</h2>
</Button>
</div>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function FAQSection() {
return <></>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function MentorSection() {
return <></>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function SponsorSection() {
return <></>;
}
Loading