Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
14 changes: 14 additions & 0 deletions apps/website/src/assets/wide-staff-hero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 6 additions & 18 deletions apps/website/src/components/staff-agmentation/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Picture } from "astro:assets";
import { getCollection } from "astro:content";
import classnames from "classnames";
import hero from "../../assets/mobile-staff-hero.svg";
import heroWide from "../../assets/wide-staff-hero.svg";
import Pill from "../../components/Pill.astro";
import Section from "../../components/Section.astro";
import { grid_classes } from "../../components/_grid";
Expand All @@ -15,7 +16,7 @@ const staff = (await getCollection("staff_members")) as {
}[];

const contentVariantID = String(
Astro.url.searchParams.get("id") || "backfill-your-developer-gap",
Astro.url.searchParams.get("id") || "backfill-your-developer-gap"
);

const staffContent = (await getCollection("staff_augmentation")) as {
Expand Down Expand Up @@ -43,31 +44,18 @@ if (!content) {
>
<div
class={classnames(
"mx-auto xl:px-0 bg-[#FFF1E1] rounded-b-4xl md:rounded-b-[96px] relative overflow-hidden",
"mx-auto xl:px-0 bg-[#FFF1E1] rounded-b-4xl md:rounded-b-[96px] relative overflow-hidden"
)}
>
<!-- Fills the empty left gap on wide screens.
Simulates `background-repeat`, because we can’t use
an SVG as background-image in combination with background-repeat
because it gets blurry. -->
<Picture
src={hero}
alt=""
class="w-[1400px] h-full absolute top-0 -translate-x-full left-[calc(50%-800px)] z-[1] bg-[#FFF1E1] hidden min-[1600px]:block"
class="xl:min-w-[1400px] h-full absolute top-0 left-1/2 -translate-x-1/2 z-[1] bg-[#FFF1E1] min-[1600px]:hidden"
/>
<!-- Fills the empty right gap on wide screens.
Simulates `background-repeat`, because we can’t use
an SVG as background-image in combination with background-repeat
because it gets blurry. -->
<Picture
src={hero}
alt=""
class="w-[1400px] h-full absolute top-0 left-[calc((50%-600px)+1400px)] z-[1] bg-[#FFF1E1] hidden min-[1600px]:block"
/>
<Picture
src={hero}
src={heroWide}
alt=""
class="w-[1400px] h-full absolute top-0 left-1/2 -translate-x-1/2 z-[1] bg-[#FFF1E1]"
class="h-full absolute top-0 left-0 z-[1] bg-[#FFF1E1] hidden min-[1600px]:block"
/>
<div
class={`${grid_classes} md:max-w-[var(--max-width)] px-4 md:px-7 !pt-[75px] md:mx-auto relative z-[2]`}
Expand Down
11 changes: 9 additions & 2 deletions apps/website/src/components/staff-agmentation/StaffMember.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Props = {
const { name, imagePath, role, idx } = Astro.props;

const images = import.meta.glob<{ default: ImageMetadata }>(
"/src/assets/staff/*.{jpg, png}",
"/src/assets/staff/*.{jpg, png}"
);
---

Expand All @@ -29,7 +29,14 @@ const images = import.meta.glob<{ default: ImageMetadata }>(
"rotate-z-[15deg]": idx === 2,
})}
>
<Image width={230} height={230} src={images[imagePath]()} alt="" />
<Image
width={230}
height={230}
src={images[imagePath]()}
alt=""
widths={[320, 640]}
sizes={"320px"}
/>
</div>
<div
class={classnames("absolute w-full h-full top-0 left-0", {
Expand Down