-
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.
- Loading branch information
Showing
8 changed files
with
160 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
95 changes: 95 additions & 0 deletions
95
apps/site/src/views/Resources/sections/Figures/Figures.module.scss
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,95 @@ | ||
@use "bootstrap-utils" as bootstrap; | ||
|
||
.hammerhead { | ||
position: absolute; | ||
visibility: hidden; | ||
transform: translateY(10vh); | ||
} | ||
|
||
.birds { | ||
position: absolute; | ||
visibility: hidden; | ||
width: 275px; | ||
} | ||
|
||
.palmTree { | ||
position: absolute; | ||
right: 0; | ||
transform: translateY(90vh); | ||
width: 30vw; | ||
|
||
z-index: 2; | ||
visibility: hidden; | ||
height: auto; | ||
} | ||
|
||
.palmTreeShade { | ||
position: absolute; | ||
right: 0; | ||
transform: translateY(calc(100vh + 50%)); | ||
width: 30vw; | ||
|
||
z-index: 1; | ||
visibility: hidden; | ||
height: auto; | ||
} | ||
|
||
@include bootstrap.media-breakpoint-up(md) { | ||
.palmTree { | ||
visibility: visible; | ||
} | ||
|
||
.palmTreeShade { | ||
visibility: visible; | ||
} | ||
} | ||
|
||
@include bootstrap.media-breakpoint-up(lg) { | ||
.hammerhead { | ||
visibility: visible; | ||
left: 5vh; | ||
} | ||
|
||
.birds { | ||
visibility: visible; | ||
right: 2vh; | ||
} | ||
|
||
.palmTree { | ||
visibility: visible; | ||
} | ||
|
||
.palmTreeShade { | ||
visibility: visible; | ||
} | ||
} | ||
|
||
@media (min-width: 1200px) { | ||
.hammerhead { | ||
left: 10vh; | ||
} | ||
|
||
.birds { | ||
right: 10vh; | ||
} | ||
|
||
.palmTree { | ||
transform: translateY(75vh); | ||
width: 20vw; | ||
} | ||
|
||
.palmTreeShade { | ||
transform: translateY(calc(80vh + 50%)); | ||
width: 20vw; | ||
} | ||
} | ||
|
||
@media (min-width: 1600px) { | ||
.hammerhead { | ||
left: 20vh; | ||
} | ||
|
||
.birds { | ||
right: 20vh; | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
apps/site/src/views/Resources/sections/Figures/Figures.tsx
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,38 @@ | ||
"use client"; | ||
|
||
import Image from "next/image"; | ||
|
||
import { motion } from "framer-motion"; | ||
|
||
import palmTree from "@/assets/images/resources-palm-tree.png"; | ||
import palmTreeShade from "@/assets/images/resources-palm-tree-shade.png"; | ||
import hammerhead from "@/assets/images/resources-hammerhead.svg"; | ||
import birds from "@/assets/images/resources-birds.svg"; | ||
|
||
import styles from "./Figures.module.scss"; | ||
|
||
export default function Figures() { | ||
return ( | ||
<div> | ||
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ duration: 2 }} > | ||
<Image | ||
src={hammerhead} | ||
alt="Hammerhead shark swimming in water" | ||
className={styles.hammerhead} | ||
/> | ||
|
||
<Image | ||
src={birds} | ||
alt="Birds flying above water" | ||
className={styles.birds} | ||
/> | ||
<Image | ||
src={palmTreeShade} | ||
alt="Palm tree shadow" | ||
className={styles.palmTreeShade} | ||
/> | ||
<Image src={palmTree} alt="Palm tree" className={styles.palmTree} /> | ||
</motion.div> | ||
</div> | ||
); | ||
} |
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