summaryrefslogtreecommitdiff
path: root/src/components/NavigationComponent.astro
blob: 9987c2fbb99ca234128e7c7f8657d06db90a73b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
const { title, variation, bordered = true } = Astro.props;
---

<section class="saira uppercase my-4">
    <div class="text-xl flex flex-row gap-2 justify-center items-center">
        <div class={`${
            variation === "alternate" ? "bg-pagodapink" : "bg-pagodapurple"
        }
        rounded-l-2xl px-4 h-6`}></div>
        <div>{title}</div>
        <div class={`${
            variation === "alternate" ? "bg-pagodapurple" : "bg-pagodapink"
        } ${
            bordered ? "rounded-tr-2xl" : "rounded-r-2xl"
        }
        flex-grow h-6`}></div>
    </div>
    <div class={`
    ${
        bordered ? variation === "alternate" ? "border-pagodapurple bg-pagodapurple" : "border-pagodapink bg-pagodapink" : ""
    }
    ${
        bordered ? "border-r-8 border-b-2 border-solid relative bottom-1" : ""
    }
    rounded-br ml-8`}>
        <slot />
    </div>
</section>