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

Add characters to resources page #202

Merged
merged 23 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e645e40
Add characters. Fix intro section
noahk004 Oct 29, 2024
79cb004
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
e57e284
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
97debfb
Update apps/site/src/app/(home)/sections/Landing/Characters.tsx
noahk004 Oct 29, 2024
996b3a2
Update apps/site/src/app/(home)/sections/Landing/Characters.tsx
noahk004 Oct 29, 2024
36c9fdf
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
51a9305
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
a40dd52
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
e9accc8
Update apps/site/src/app/(home)/sections/Landing/Characters.tsx
noahk004 Oct 29, 2024
745942c
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
0c694ab
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
439f676
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
758e771
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
ec2aedc
Update apps/site/src/app/(home)/sections/Landing/Characters.module.scss
noahk004 Oct 29, 2024
dbdd1b7
Update apps/site/src/app/(home)/sections/Landing/Characters.tsx
noahk004 Oct 29, 2024
4c5f52a
Fix description spacing
noahk004 Oct 29, 2024
d11a237
Merge branch 'noah/add-characters-fix-intro' of https://github.com/Ha…
noahk004 Oct 29, 2024
205b186
Update alt text
noahk004 Oct 29, 2024
5bf6777
Add characters
noahk004 Oct 29, 2024
22c65e8
Prettier
noahk004 Oct 30, 2024
7fada0f
Merge branch 'main' into noah/add-characters-to-resources-page
noahk004 Nov 1, 2024
f2e5dad
Change png to svg, use bootstrap media queries
noahk004 Nov 1, 2024
8cf760f
Updated resource top margin. Fixed palm tree oversize on zoom out. Up…
noahk004 Nov 1, 2024
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: 10 additions & 0 deletions apps/site/src/assets/images/resources-birds.svg
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/assets/images/resources-hammerhead.svg
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/assets/images/resources-palm-tree-shade.svg
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/assets/images/resources-palm-tree.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions apps/site/src/views/Resources/Resources.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import styles from "./Resources.module.scss";
import Figures from "./sections/Figures/Figures";
import Landing from "./sections/Landing/Landing";
import ApiResources from "./sections/ApiResources/ApiResources";
import BackendResources from "./sections/BackendResources/BackendResources";
Expand All @@ -8,6 +9,7 @@ import StarterPacks from "./sections/StarterPacks/StarterPacks";
export default function Resources() {
return (
<div className={styles.resources}>
<Figures />
<Landing />
<ApiResources />
<BackendResources />
Expand Down
85 changes: 85 additions & 0 deletions apps/site/src/views/Resources/sections/Figures/Figures.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
@use "bootstrap-utils" as bootstrap;

.landingFigures {
position: absolute;
z-index: 1000;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 80vw;
min-width: 1100px;
max-width: 1200px;
height: 300px;
}

.hammerhead {
position: absolute;
visibility: hidden;
bottom: 0;
left: 0;
}

.birds {
position: absolute;
visibility: hidden;
width: 275px;
right: 0;
bottom: 0;
}

.palmTree {
position: absolute;
right: 0;
transform: translateY(95vh);
width: 30vw;

z-index: 2;
visibility: hidden;
height: auto;
}

.palmTreeShade {
position: absolute;
right: 0;
transform: translateY(calc(105vh + 50%));
width: 30vw;

z-index: 1;
visibility: hidden;
height: auto;
}

@include bootstrap.media-breakpoint-up(sm) {
.palmTree {
visibility: visible;
}
.palmTreeShade {
visibility: visible;
}
}

@include bootstrap.media-breakpoint-up(lg) {
.palmTree {
transform: translateY(95vh);
width: 20vw;
}
.palmTreeShade {
transform: translateY(calc(105vh + 50%));
width: 20vw;
}
.hammerhead {
visibility: visible;
}
.birds {
visibility: visible;
}
}

@include bootstrap.media-breakpoint-up(xxl) {
.palmTree {
max-width: 500px;
}
.palmTreeShade {
max-width: 500px;
}
}
45 changes: 45 additions & 0 deletions apps/site/src/views/Resources/sections/Figures/Figures.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
"use client";

import Image from "next/image";

import { motion } from "framer-motion";

import palmTree from "@/assets/images/resources-palm-tree.svg";
import palmTreeShade from "@/assets/images/resources-palm-tree-shade.svg";
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 }}
>
<div className={styles.landingFigures}>
<Image
src={hammerhead}
alt="Hammerhead shark swimming in water"
className={styles.hammerhead}
/>

<Image
src={birds}
alt="Birds flying above water"
className={styles.birds}
/>
</div>

<Image
src={palmTreeShade}
alt="Palm tree shadow"
className={styles.palmTreeShade}
/>
<Image src={palmTree} alt="Palm tree" className={styles.palmTree} />
</motion.div>
</div>
);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "bootstrap-utils" as utils;
@use "bootstrap-utils" as bootstrap;

.landing {
display: flex;
Expand All @@ -12,5 +12,12 @@
}

.title {
width: 75%;
width: 60%;
}

@include bootstrap.media-breakpoint-up(lg) {
.landing {
margin-top: 200px;
margin-bottom: 300px;
}
}
Loading