From 7a55053941a60b1b7efdddd4bef381354375c95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Le=C3=B3n?= Date: Sat, 19 Oct 2024 02:10:03 -0600 Subject: [PATCH] build: Redesign home page --- website/package-lock.json | 9 ++ website/package.json | 3 +- website/src/components/Card.astro | 144 +++++-------------------- website/src/components/SiteTitle.astro | 4 +- website/src/content/docs/index.mdx | 110 ++++++++++--------- website/src/styles/custom.css | 62 +++++++---- website/tailwind.config.mjs | 20 ++-- 7 files changed, 151 insertions(+), 201 deletions(-) diff --git a/website/package-lock.json b/website/package-lock.json index fd556bdf..304a1946 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -15,6 +15,7 @@ "@astrojs/tailwind": "^5.1.0", "@expressive-code/plugin-collapsible-sections": "^0.35.3", "@expressive-code/plugin-line-numbers": "^0.35.3", + "@iconify-json/mdi": "^1.2.1", "@types/alpinejs": "^3.13.10", "alpinejs": "^3.13.10", "astro": "^4.7.1", @@ -1181,6 +1182,14 @@ "@expressive-code/core": "^0.35.3" } }, + "node_modules/@iconify-json/mdi": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@iconify-json/mdi/-/mdi-1.2.1.tgz", + "integrity": "sha512-dSkQU78gsZV6Yxnq78+LuX7jzeFC/5NAmz7O3rh558GimGFcwMVY/OtqRowIzjqJBmMmWZft7wkFV4TrwRXjlg==", + "dependencies": { + "@iconify/types": "*" + } + }, "node_modules/@iconify/tools": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/@iconify/tools/-/tools-3.0.7.tgz", diff --git a/website/package.json b/website/package.json index 6dd3a5ae..732935bc 100644 --- a/website/package.json +++ b/website/package.json @@ -17,6 +17,7 @@ "@astrojs/tailwind": "^5.1.0", "@expressive-code/plugin-collapsible-sections": "^0.35.3", "@expressive-code/plugin-line-numbers": "^0.35.3", + "@iconify-json/mdi": "^1.2.1", "@types/alpinejs": "^3.13.10", "alpinejs": "^3.13.10", "astro": "^4.7.1", @@ -31,4 +32,4 @@ "prettier-plugin-astro": "^0.13.0", "sass": "^1.76.0" } -} \ No newline at end of file +} diff --git a/website/src/components/Card.astro b/website/src/components/Card.astro index 5f9d69f3..cfbc396a 100644 --- a/website/src/components/Card.astro +++ b/website/src/components/Card.astro @@ -1,5 +1,5 @@ --- -import { Icon } from "@astrojs/starlight/components"; +import { Icon } from "astro-icon/components"; interface Props { icon?: string; @@ -10,125 +10,33 @@ const { icon, title } = Astro.props; ---
+
+ { + icon && ( +
+
+
+ +
+
+
+ ) + } +

+

+
-

- {icon && } - -

-
+
- - diff --git a/website/src/components/SiteTitle.astro b/website/src/components/SiteTitle.astro index b2d94da5..31f2e2c9 100644 --- a/website/src/components/SiteTitle.astro +++ b/website/src/components/SiteTitle.astro @@ -6,7 +6,7 @@ import type { Props } from "@astrojs/starlight/props"; const href = Astro.props.locale ?? "/"; --- - + { config.logo && logos.dark && ( <> @@ -32,7 +32,7 @@ const href = Astro.props.locale ?? "/"; } diff --git a/website/src/content/docs/index.mdx b/website/src/content/docs/index.mdx index b0b520a2..85b525b8 100644 --- a/website/src/content/docs/index.mdx +++ b/website/src/content/docs/index.mdx @@ -1,27 +1,29 @@ --- title: Reactter -description: A light, powerful and quick Reactive State Management, Dependency Injection and Event handler. +description: A light, powerful and quick Reactive State Management, Dependency Injection and Event Handler for Dart/Flutter. template: splash hero: - title:

Reactter

+ title:

Reactter

tagline: - A - lightweight, - powerful, and - reactive -
- State Management, - Dependency Injection - and - Event handler. +

+ A + lightweight, + powerful, and + reactive +

+

+ State Management, + Dependency Injection and + Event Handler for Dart/Flutter. +

image: html: actions: - - text: Get Started + - text: Get Started link: /reactter/getting_started/ - icon: right-arrow + icon: rocket variant: primary - - text: Explore on pub.dev + - text: Explore on pub.dev link: https://pub.dev/packages/reactter icon: external attrs: @@ -30,50 +32,54 @@ hero: import { CardGrid } from "@astrojs/starlight/components"; import Card from "@/components/Card.astro"; -import ScriptIndex from "@/components/ScriptIndex.astro";
## Try it - Experience the full potential of Reactter by trying it online on Zapp. +

Experience the full potential of Reactter by trying it online on Zapp.

+ /> +