+
April 5–6, 2025 • hosted by ACM at UC San Diego
+
+ April 5–6, 2025
+
+ Hosted by ACM at UC San Diego
+
+
DiamondHacks
diff --git a/src/components/LandingText/style.module.scss b/src/components/LandingText/style.module.scss
index d7ff9ef..248b21c 100644
--- a/src/components/LandingText/style.module.scss
+++ b/src/components/LandingText/style.module.scss
@@ -9,9 +9,19 @@
align-self: flex-start;
margin-top: 10%;
- .subheading {
- @media screen and (max-width: vars.$breakpoint-md) {
- font-size: 1rem !important;
+ .subheadingMobile {
+ display: none;
+ font-size: 1rem !important;
+ line-height: 1.5rem !important;
+ flex-direction: column;
+ }
+ @media screen and (max-width: vars.$breakpoint-md) {
+ .subheadingDesktop {
+ display: none;
+ }
+
+ .subheadingMobile {
+ display: flex;
}
}
diff --git a/src/sections/Hero/index.tsx b/src/sections/Hero/index.tsx
index 4f2ab09..e537ec9 100644
--- a/src/sections/Hero/index.tsx
+++ b/src/sections/Hero/index.tsx
@@ -1,12 +1,24 @@
import LandingText from '@/components/LandingText';
-import LandingImage from '@/components/LandingImage';
+import HeistPeekers from '../../../public/assets/heist_peekers.svg';
+import HeistJewelDisplay from '../../../public/assets/heist_jewel_display.svg';
import styles from './style.module.scss';
const Hero = () => {
return (
);
};
diff --git a/src/sections/Hero/style.module.scss b/src/sections/Hero/style.module.scss
index c2ebff3..7daaa4d 100644
--- a/src/sections/Hero/style.module.scss
+++ b/src/sections/Hero/style.module.scss
@@ -1,16 +1,84 @@
@use '../../styles/vars.scss' as vars;
.container {
- display: flex;
- flex-direction: row;
+ display: grid;
+ grid-template-areas:
+ 'text peekers'
+ 'text display';
+ grid-template-columns: auto 1fr;
align-items: flex-start;
- max-height: min(1000px, 100vh);
- justify-content: center;
+ padding: 0 vars.$side-padding;
+ margin: 0 calc(vars.$side-padding * -1);
+ overflow: hidden;
+ margin-bottom: -35rem;
+
+ @media screen and (max-width: vars.$breakpoint-md) {
+ padding: 0 vars.$side-padding-mobile;
+ margin: 0 calc(vars.$side-padding-mobile * -1);
+ }
+
+ .text {
+ grid-area: text;
+ max-height: min(60rem, 100vh);
+ margin-top: 10rem;
+ }
@media screen and (max-width: vars.$breakpoint-lg) {
+ display: flex;
flex-direction: column;
- justify-content: center;
+ align-items: center;
gap: 4rem;
- max-height: unset;
+ margin-bottom: -30rem;
+
+ .text {
+ max-height: unset;
+ margin-top: 0;
+ }
+ }
+
+ .imageWrapper {
+ justify-self: center;
+ width: 100%;
+
+ .image {
+ pointer-events: none;
+ }
+ }
+
+ .peekersWrapper {
+ $peekersImageWidth: 916;
+ $peekHoleWidth: 571;
+ $peekHoleHeight: 155;
+
+ grid-area: peekers;
+ max-width: calc($peekHoleWidth * 1px);
+ aspect-ratio: $peekHoleWidth / $peekHoleHeight;
+ margin-bottom: 5rem;
+ position: relative;
+
+ .peekers {
+ position: absolute;
+ top: 0;
+ left: -30rem;
+ right: -30rem;
+ margin: 0 auto;
+ width: calc($peekersImageWidth / $peekHoleWidth * 100%);
+ }
+ }
+
+ .displayWrapper {
+ $displayImageWidth: 788;
+ $pillarWidth: 430;
+
+ grid-area: display;
+ max-width: calc($pillarWidth * 1px);
+ display: flex;
+ justify-content: center;
+
+ .display {
+ flex: none;
+ width: calc($displayImageWidth / $pillarWidth * 100%);
+ margin-top: -60%;
+ }
}
}