Skip to content

Commit ac8c19c

Browse files
committed
build(website): Add Footer component and update styles
1 parent 676273f commit ac8c19c

File tree

6 files changed

+55
-22
lines changed

6 files changed

+55
-22
lines changed

website/astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default defineConfig({
3232
},
3333
components: {
3434
Head: "./src/components/Head.astro",
35+
Footer: "./src/components/Footer.astro",
3536
SocialIcons: "./src/components/SocialIcons.astro",
3637
Search: "./src/components/Search.astro",
3738
SiteTitle: "./src/components/SiteTitle.astro",
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
import type { Props } from "@astrojs/starlight/props";
3+
import Default from "@astrojs/starlight/components/Footer.astro";
4+
5+
const year = new Date().getFullYear();
6+
---
7+
8+
<>
9+
{
10+
Astro.props.entry.data.hero ? (
11+
<>
12+
<footer class="hero-footer flex flex-col items-center justify-center text-sm font-medium text-center">
13+
<p>Released under the MIT License.</p>
14+
<p>
15+
Copyright &copy; <span id="footer-year">{year}</span> Reactter.
16+
</p>
17+
</footer>
18+
19+
<script is:inline>
20+
document.getElementById("footer-year").innerText = new
21+
Date().getFullYear();
22+
</script>
23+
</>
24+
) : (
25+
<Default {...Astro.props} />
26+
)
27+
}
28+
</>

website/src/components/SiteTitle.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const href = Astro.props.locale ?? "/";
3232
}
3333
<span
3434
class:list={{
35-
"bg-gradient-to-b from-accent-500 to-accent-200 bg-clip-text text-transparent": true,
35+
"text-accent-300": true,
3636
"sr-only": config.logo?.replacesTitle,
3737
}}
3838
>

website/src/content/docs/index.mdx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@ title: Reactter
33
description: A light, powerful and quick Reactive State Management, Dependency Injection and Event Handler for Dart/Flutter.
44
template: splash
55
hero:
6-
title: <h1 class="text-5xl sm:text-6xl bg-gradient-to-b from-accent-600 to-accent-300 bg-clip-text text-transparent">Reactter</h1>
6+
title: <h1 class="text-5xl sm:text-6xl bg-gradient-to-b from-accent-400 to-accent-300 md:bg-gradient-to-l md:from-accent-300 md:to-accent-400 bg-clip-text text-transparent">Reactter</h1>
77
tagline:
8-
<p class="text-xl sm:text-2xl">
8+
<h3 class="font-normal text-xl sm:text-2xl md:text-3xl sm:mt-2 sm:mb-1 text-gray-200">
99
A
10-
<span class="font-bold bg-gradient-to-b from-slate-100 to-slate-400 bg-clip-text text-transparent">lightweight</span>,
11-
<span class="font-bold bg-gradient-to-b from-slate-100 to-slate-400 bg-clip-text text-transparent">powerful</span>, and
12-
<span class="font-bold bg-gradient-to-b from-slate-100 to-slate-400 bg-clip-text text-transparent">reactive</span>
13-
</p>
14-
<p class="text-2xl sm:text-3xl">
15-
<span class="font-semibold bg-gradient-to-b from-accent-500 to-accent-200 bg-clip-text text-transparent">State Management</span>,
16-
<span class="font-semibold bg-gradient-to-b from-accent-500 to-accent-200 bg-clip-text text-transparent">Dependency Injection</span> and
17-
<span class="font-semibold bg-gradient-to-b from-accent-500 to-accent-200 bg-clip-text text-transparent">Event Handler</span> for Dart/Flutter.
18-
</p>
10+
<span class="font-semibold text-accent-100">lightweight</span>,
11+
<span class="font-semibold text-accent-100">powerful</span>, and
12+
<span class="font-semibold text-accent-100">reactive</span>
13+
</h3>
14+
<h2 class="font-normal text-2xl sm:text-3xl md:text-4xl text-gray-200">
15+
<span class="font-semibold text-accent-300">State Management</span>,
16+
<span class="font-semibold text-accent-300">Dependency Injection</span> and
17+
<span class="font-semibold text-accent-300">Event Handler</span> for
18+
<span class="font-semibold text-accent-100">Dart</span>/<span class="font-semibold text-accent-100">Flutter</span>.
19+
</h2>
1920
image:
2021
html: <div id="hero_logo"></div>
2122
actions:
@@ -28,6 +29,7 @@ hero:
2829
icon: external
2930
attrs:
3031
target: _blank
32+
footer: TEST
3133
---
3234

3335
import { CardGrid } from "@astrojs/starlight/components";
@@ -81,5 +83,4 @@ import Card from "@/components/Card.astro";
8183
Reduce code significantly and simplify your app.
8284
</Card>
8385
</CardGrid>
84-
</div>
85-
86+
</div>

website/src/styles/custom.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212

1313
body {
14-
background-color: hsl(from var(--sl-color-accent-low) h s 05% / 100%);
14+
background-color: hsl(from var(--sl-color-accent-low) h s 08% / 100%);
1515
}
1616

1717
[data-has-hero] header {
@@ -48,21 +48,24 @@ body {
4848
background-position: center;
4949
width: 100%;
5050
height: 100%;
51+
max-width: 300px;
5152
}
5253

5354
[data-has-hero] .hero #hero_logo::after {
5455
content: "";
55-
background: inherit;
56-
width: 100%;
57-
height: 100%;
5856
position: absolute;
59-
filter: drop-shadow(0px 0px) blur(80px);
57+
width: 100%;
58+
aspect-ratio: 1/1;
59+
border-radius: 50%;
60+
background: linear-gradient(45deg, var(--sl-color-accent) 15%, var(--sl-color-accent-low) 75%);
61+
filter: blur(72px);
6062
z-index: -1;
6163
}
6264

6365
[data-has-hero] .page {
64-
background:
65-
linear-gradient(215deg, transparent 0%, rgb(from var(--sl-color-accent-low) r g b / 0.5) 45%, rgb(from var(--sl-color-accent-low) r g b / 0.5) 55%, transparent 100%);
66+
background:
67+
radial-gradient(var(--sl-color-accent-low),transparent 50%) no-repeat -60vw -40vh / 105vw 200vh,
68+
radial-gradient(var(--sl-color-accent), var(--sl-color-accent-low), transparent 60%) no-repeat 50% calc(100% + 21rem) / 62rem 32rem;
6669
}
6770

6871
[data-has-hero] .action.primary {

website/tailwind.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
gray,
3535
},
3636
fontFamily: {
37-
sans: ['"Atkinson Hyperlegible"'],
37+
sans: ['"Inter"'],
3838
mono: ['"IBM Plex Mono"'],
3939
},
4040
},

0 commit comments

Comments
 (0)