Skip to content

Commit

Permalink
feat: folder organization + Apply Button component
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleryy committed Sep 11, 2023
1 parent b565335 commit caea901
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 47 deletions.
33 changes: 0 additions & 33 deletions apps/site/src/views/Landing/Landing.module.scss
Original file line number Diff line number Diff line change
@@ -1,33 +0,0 @@
@use "bootstrap-utils" as utils;

.applyButtonContainer {
position: relative;
}

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

&:hover {
border: black solid 6px;
background-color: utils.$yellow;

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

.applyButtonText {
color: black;
position: absolute;
top: 50%;
left: 55%;
transform: skew(30deg) translate(-50%, -50%);
}
20 changes: 6 additions & 14 deletions apps/site/src/views/Landing/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
"use client";
// import ApplyButton from "@/assets/images/ApplyButton.svg";
import Button from "react-bootstrap/Button";
import Container from "react-bootstrap/Container";
import Row from "react-bootstrap/Row";

import AboutSection from "./AboutSection";
import MentorSection from "./MentorSection";
import SponsorSection from "./SponsorSection";
import FAQSection from "./FAQSection";
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";

export default function Landing() {
Expand All @@ -18,14 +17,7 @@ export default function Landing() {
<h1>ZotHacks 2023</h1>
</Row>
<Row>
<div className={styles.applyButtonContainer}>
<Button
className={styles.applyButton}
href="https://hack.ics.uci.edu/" // TODO Change to application site link
>
<h2 className={styles.applyButtonText}>Apply!</h2>
</Button>
</div>
<ApplyButton />
</Row>
<Row>
<AboutSection />
Expand Down
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;
margin: 0px;
border: none;
background-color: utils.$yellow;
transition: all 0.1s ease;

&:hover {
border: black solid 6px;
background-color: utils.$yellow;

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

.applyButtonText {
color: black;
position: absolute;
top: 50%;
left: 55%;
transform: skew(30deg) translate(-50%, -50%);
}
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";

export default function ApplyButton() {
return (
<div className={styles.applyButtonContainer}>
<Button
className={styles.applyButton}
href="https://hack.ics.uci.edu/" // TODO Change to application site link
>
<h2 className={styles.applyButtonText}>Apply!</h2>
</Button>
</div>
);
}
File renamed without changes.

0 comments on commit caea901

Please sign in to comment.