Skip to content

Commit 3a4b74d

Browse files
FIX: Issue with background pattern on staff augmentation page (#650)
* FIX: Issue with background pattern on staff augmentation page * chore: Remove unused image
1 parent 846ef85 commit 3a4b74d

File tree

5 files changed

+8
-34
lines changed

5 files changed

+8
-34
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 10 deletions
Loading

apps/website/src/assets/staff-hero.svg

Lines changed: 0 additions & 10 deletions
This file was deleted.

apps/website/src/components/staff-agmentation/Hero.astro

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
---
2-
import { Picture } from "astro:assets";
32
import { getCollection } from "astro:content";
43
import classnames from "classnames";
5-
import hero from "../../assets/mobile-staff-hero.svg";
6-
import heroWide from "../../assets/wide-staff-hero.svg";
74
import Pill from "../../components/Pill.astro";
85
import Section from "../../components/Section.astro";
96
import { grid_classes } from "../../components/_grid";
@@ -44,19 +41,9 @@ if (!content) {
4441
>
4542
<div
4643
class={classnames(
47-
"mx-auto xl:px-0 bg-[#FFF1E1] rounded-b-4xl md:rounded-b-[96px] relative overflow-hidden"
44+
"mx-auto xl:px-0 bg-[#FFF1E1] rounded-b-4xl md:rounded-b-[96px] relative overflow-hidden bg-staff-hero-mobile md:bg-staff-hero-desktop lg:bg-staff-hero-wide lg:bg-center bg-cover min-[1920px]:bg-size-[1920px] bg-no-repeat"
4845
)}
4946
>
50-
<Picture
51-
src={hero}
52-
alt=""
53-
class="xl:min-w-[1400px] h-full absolute top-0 left-1/2 -translate-x-1/2 z-[1] bg-[#FFF1E1] min-[1600px]:hidden"
54-
/>
55-
<Picture
56-
src={heroWide}
57-
alt=""
58-
class="h-full absolute top-0 left-0 z-[1] bg-[#FFF1E1] hidden min-[1600px]:block"
59-
/>
6047
<div
6148
class={`${grid_classes} md:max-w-[var(--max-width)] px-4 md:px-7 !pt-[75px] md:mx-auto relative z-[2]`}
6249
>

apps/website/tailwind.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ module.exports = {
7171
primary: "var(--font-primary)",
7272
secondary: "var(--font-secondary)",
7373
},
74+
backgroundImage: {
75+
"staff-hero-mobile": "url('./src/assets/mobile-staff-hero.svg')",
76+
"staff-hero-desktop": "url('./src/assets/desktop-staff-hero.svg')",
77+
"staff-hero-wide": "url('./src/assets/wide-staff-hero.svg')",
78+
},
7479
},
7580
},
7681
plugins: [

0 commit comments

Comments
 (0)