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

Feature/get involved #153

Merged
merged 17 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from 13 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
10 changes: 5 additions & 5 deletions apps/site/src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const revalidate = 60;

import Landing from "./sections/Landing";
import Intro from "./sections/Intro";
import Mentor from "./sections/Mentor";
import GetInvolved from "./sections/GetInvolved";
import Sponsors from "./sections/Sponsors";
import FAQ from "./sections/FAQ";

Expand All @@ -12,10 +12,10 @@ const Home = () => {
return (
<div className={styles.home}>
<Landing />
{/* <Intro />
<Mentor />
<Sponsors />
<FAQ /> */}
{/* <Intro /> */}
<GetInvolved />
{/* <Sponsors /> */}
{/* <FAQ /> */}
</div>
);
};
Expand Down
151 changes: 151 additions & 0 deletions apps/site/src/app/(home)/sections/GetInvolved/GetInvolved.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
@use "zothacks-theme" as theme;
@use "bootstrap-utils" as bootstrap;

$text-font-weight: 600;
$text-font-size: 1.5rem;
$border-radius: 14px;
$speech-padding: 20px;
$speech-shadow: 0 10px 0 rgba(1, 57, 70, 0.2);

@mixin speechBubble($bg-color, $border-color) {
background-color: $bg-color;
border: 6px solid $border-color;
border-radius: $border-radius;
padding: $speech-padding;
font-weight: $text-font-weight;
font-size: $text-font-size;
text-align: center;

@include bootstrap.media-breakpoint-up(md) {
padding: 32px 48px;
text-align: left;
}
}

@mixin boxShadow {
box-shadow: $speech-shadow;
}

.headingText {
color: theme.$white;
margin-bottom: 48px;
font-weight: $text-font-weight;
}

.anteaterContainerLeft,
.anteaterContainerRight {
display: none;
height: 187px;
width: 136px;
z-index: 4;
@include bootstrap.media-breakpoint-up(md) {
display: block;
position: relative;
}
}

.anteaterContainerLeft {
@include bootstrap.media-breakpoint-up(md) {
left: -32px;
top: -32px;
}
}

.anteaterContainerRight {
@include bootstrap.media-breakpoint-up(md) {
top: -64px;
left: 48px;
margin-left: auto;
}
}

.anteaterImage {
height: 187px;
width: 136px;
z-index: 5;
transition: transform 0.5s ease-in-out;
}

.anteaterImage:hover {
transform: scale(1.05);
animation: rotateAnimation 0.7s ease-in-out 1;
}

@keyframes rotateAnimation {
0%,
100% {
transform: scale(1.05) rotate(0deg);
}
33% {
transform: scale(1.05) rotate(-7deg);
}
66% {
transform: scale(1.05) rotate(7deg);
}
}

.speechSectionLeft,
.speechSectionRight {
margin-bottom: 20px;
position: relative;
}

.speechSectionRight {
@include bootstrap.media-breakpoint-up(md) {
top: -230px;
}
}

.speechBubbleOuterLeft,
.speechBubbleOuterRight {
position: relative;
background-color: theme.$white;
border-radius: 18px;
padding: 4px;
@include boxShadow;

@include bootstrap.media-breakpoint-up(md) {
width: 65%;
}
}

.speechBubbleOuterLeft {
z-index: 2;
@include bootstrap.media-breakpoint-up(md) {
margin-left: 90px;
}
}

.speechBubbleOuterRight {
z-index: 1;
@include bootstrap.media-breakpoint-up(md) {
margin-left: auto;
margin-right: 90px;
}
}

.speechBubbleLeft {
@include speechBubble(theme.$white, theme.$black);
}

.speechBubbleRight {
@include speechBubble(theme.$light-green, theme.$black);
}

.applyButton {
background-color: theme.$purple;
color: theme.$white;
border: 0px;
padding: 4px 24px;
font-weight: $text-font-weight;

@include bootstrap.media-breakpoint-up(md) {
padding: 4px 32px;
}

&::before {
background-color: theme.$purple;
color: theme.$white;
padding: 10px;
}
}
69 changes: 69 additions & 0 deletions apps/site/src/app/(home)/sections/GetInvolved/GetInvolved.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
"use client";
import Container from "react-bootstrap/Container";
import Button from "react-bootstrap/Button";

import anteater_left from "@/assets/images/involved_anteater_left.png";
import anteater_right from "@/assets/images/involved_anteater_right.png";

import styles from "./GetInvolved.module.scss";

import { motion } from "framer-motion";
jotalis marked this conversation as resolved.
Show resolved Hide resolved

const GetInvolved = () => {
const sectionHeading = <h2 className={styles.headingText}>GET INVOLVED</h2>;
const leftBubbleText = <p>Want to develop your first project?</p>;
const rightBubbleText = (
<p>Otherwise, if you have some experience under your belt,</p>
);
const applyLink = (
<Button href="#" type="button" className={styles.applyButton}>
jotalis marked this conversation as resolved.
Show resolved Hide resolved
Apply as a Hacker
</Button>
);

const mentorLink = (
<Button href="#" type="button" className={styles.applyButton}>
jotalis marked this conversation as resolved.
Show resolved Hide resolved
Apply as a Mentor
</Button>
);

return (
<Container as="section">
{sectionHeading}
<div>
<div className={styles.speechSectionLeft}>
<div className={styles.speechBubbleOuterLeft}>
<div className={styles.speechBubbleLeft}>
{leftBubbleText}
{applyLink}
</div>
</div>
<div className={styles.anteaterContainerLeft}>
<img
className={styles.anteaterImage}
src={anteater_left.src}
alt="A cartoon anteater sitting on a ring buoy coding"
/>
</div>
</div>
<div className={styles.speechSectionRight}>
<div className={styles.speechBubbleOuterRight}>
<div className={styles.speechBubbleRight}>
{rightBubbleText}
{mentorLink}
</div>
</div>
<div className={styles.anteaterContainerRight}>
<img
className={styles.anteaterImage}
src={anteater_right.src}
alt="A cartoon anteater captain sitting on a ring buoy"
/>
</div>
</div>
</div>
</Container>
);
};

export default GetInvolved;
1 change: 1 addition & 0 deletions apps/site/src/app/(home)/sections/GetInvolved/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./GetInvolved";
134 changes: 0 additions & 134 deletions apps/site/src/app/(home)/sections/Mentor/Mentor.module.scss

This file was deleted.

Loading
Loading