Skip to content

Commit 95cd85d

Browse files
committed
Add DojoBay section to homepage
- create new `DojoBay` homepage component with CTA and logo image - add DojoBay logo asset - render the new section on `src/pages/index.astro`
1 parent 793b587 commit 95cd85d

3 files changed

Lines changed: 64 additions & 0 deletions

File tree

src/assets/homepage/dojobay.png

437 KB
Loading
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
import { Image } from "astro:assets";
3+
import dojobayLogo from "../../assets/homepage/dojobay.png";
4+
import "../../styles/global.css";
5+
import Button from "./Button.astro";
6+
---
7+
<!-- DojoBay -->
8+
<section class="border-t border-white/5 bg-[#0d0d0f]">
9+
<div class="mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8">
10+
<div class="relative overflow-hidden rounded-3xl border border-white/10 bg-gradient-to-br from-[#141416] via-[#101012] to-[#0b0b0c] p-8 sm:p-10 lg:p-12">
11+
<div aria-hidden="true" class="pointer-events-none absolute inset-0">
12+
<div class="absolute right-[-4rem] top-[-5rem] h-48 w-48 rounded-full bg-[#ed3b26]/12 blur-3xl"></div>
13+
<div class="absolute bottom-[-3rem] left-[-2rem] h-40 w-40 rounded-full bg-white/5 blur-3xl"></div>
14+
</div>
15+
16+
<div class="relative grid gap-10 lg:grid-cols-[1.15fr_0.85fr] lg:items-center">
17+
<div class="max-w-2xl">
18+
<p class="text-sm font-semibold uppercase tracking-[0.24em] text-[#ff9a8f]">Alternative access</p>
19+
<h3 class="mt-4 max-w-2xl text-2xl font-bold text-white sm:text-3xl">
20+
Unable to run your own Samourai Dojo?
21+
</h3>
22+
<p class="mt-4 max-w-2xl text-base leading-7 text-zinc-300">
23+
DojoBay exists to provide access for users who are not able to operate their own Samourai Dojo, while still
24+
giving them a path into the ecosystem.
25+
</p>
26+
27+
<div class="mt-8">
28+
<Button
29+
as="a"
30+
href="https://dojobay.pw/"
31+
target="_blank"
32+
rel="noreferrer"
33+
type="primary"
34+
>
35+
Visit DojoBay
36+
</Button>
37+
</div>
38+
</div>
39+
40+
<div class="relative mx-auto w-full max-w-[320px] lg:max-w-[360px]">
41+
<div aria-hidden="true" class="absolute inset-6 rounded-full bg-[#ed3b26]/20 blur-3xl"></div>
42+
<div class="relative overflow-hidden rounded-[2rem] border border-white/10 bg-black/30 p-4 shadow-[0_24px_60px_rgba(0,0,0,0.45)]">
43+
<div class="rounded-[1.5rem] border border-white/10 bg-gradient-to-b from-white/10 to-white/[0.02] p-4">
44+
<Image
45+
src={dojobayLogo}
46+
alt="DojoBay logo"
47+
widths={[320, 480]}
48+
sizes="(min-width: 1024px) 360px, 70vw"
49+
class="mx-auto aspect-square h-auto w-full rounded-full"
50+
/>
51+
</div>
52+
</div>
53+
54+
<div class="mt-4 text-center">
55+
<p class="text-xs font-semibold uppercase tracking-[0.22em] text-zinc-500">For users who cannot self-host</p>
56+
</div>
57+
</div>
58+
</div>
59+
</div>
60+
</div>
61+
</section>

src/pages/index.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import CallToAction from "../components/homepage/CallToAction.astro";
3+
import DojoBay from "../components/homepage/DojoBay.astro";
34
import Hero from "../components/homepage/Hero.astro";
45
import Platforms from "../components/homepage/Platforms.astro";
56
import SecondaryProjects from "../components/homepage/SecondaryProjects.astro";
@@ -14,6 +15,8 @@ import SiteLayout from "../layouts/site-layout.astro";
1415

1516
<Platforms />
1617

18+
<DojoBay />
19+
1720
<SecondaryProjects />
1821

1922
<CallToAction />

0 commit comments

Comments
 (0)