Skip to content

Commit

Permalink
fix: background using twMerge
Browse files Browse the repository at this point in the history
  • Loading branch information
mildrrnt committed Jan 19, 2024
1 parent 704c82b commit 589f22c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/layouts/CocktailCard.astro
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
---
import { twMerge } from "tailwind-merge";
import {twMerge} from "tailwind-merge"
import BaseLayout from "@/layouts/BaseLayout.astro";
import Card from "@/components/story/Card.tsx";
import ButtonSet from "@/components/story/ButtonSet.tsx";
import FooterDecorator from "@/components/story/FooterDecorator.tsx";
import Logo from "@/assets/elements/logo.png";
const { id, name, img, bgbox, bg, accent, download } = Astro.props;
const classname = twMerge(
`relative flex w-full flex-col items-center justify-center gap-4 overflow-hidden bg-cover bg-repeat pb-8`,
`bg-${bg}`
);
const background = {
raspberry: "bg-raspberry",
cosmo: "bg-cosmo",
pina: "bg-pina",
gin: "bg-gin",
lagoon: "bg-lagoon",
lalemon: "bg-lalemon",
};
const classname = twMerge(`relative flex w-full flex-col items-center justify-center gap-4 overflow-hidden bg-cover bg-repeat pb-8`,background[bg]);
---

<BaseLayout>
Expand Down

0 comments on commit 589f22c

Please sign in to comment.