Skip to content

Commit

Permalink
fix business with biomes, step towards better design
Browse files Browse the repository at this point in the history
  • Loading branch information
argyleink committed Oct 30, 2024
1 parent 2a0d127 commit 60bea33
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
17 changes: 13 additions & 4 deletions src/components/biome.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,25 @@ const { title, description, features } = Astro.props;
grid-column: main-features;

> header {
display: grid;
place-items: start;
gap: var(--size-2);
margin-block-end: var(--size-8);
padding-block-end: var(--size-10);
padding-block: var(--size-10);
background: var(--surface-1);
border-image: conic-gradient(var(--surface-document) 0 0) fill 0
//0 100vw;;
border-image: var(--_biome-image) repeat fill 0 //0 100vw;;

> h2 {
line-height: 1;
font-family: "Jersey10", sans-serif;
font-weight: normal;
font-size: var(--font-size-8);
font-size: clamp(1.25rem, 5vw, 5rem);

&,
& + p {
color: lime;
background: #000d;
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@ const timelines = biomes.reduce(
background-position: top center;

&.desert {
background-image: url(/biomes/desert.svg);
--_biome-image: url(/biomes/desert.svg);
}

&.arctic {
background-image: url(/biomes/arctic.svg);
--_biome-image: url(/biomes/arctic.svg);
}

&.jungle {
background-image: url(/biomes/jungle.svg);
--_biome-image: url(/biomes/jungle.svg);
}
}
}
Expand Down

0 comments on commit 60bea33

Please sign in to comment.