diff --git a/src/components/Clickable.astro b/src/components/Clickable.astro
index 08f88e5..ebc69ff 100644
--- a/src/components/Clickable.astro
+++ b/src/components/Clickable.astro
@@ -9,9 +9,19 @@ type Alignment =
| "evenly"
| "stretch";
const {
- className,
+ alt,
+ img,
+ href,
+ text,
+ maxWidth = true,
+ className = "",
justify = "center",
}: {
+ alt?: string;
+ img?: string;
+ text?: string;
+ href?: string;
+ maxWidth?: bool;
justify?: Alignment;
className?: string;
} = Astro.props;
@@ -19,8 +29,9 @@ const {
-
-
-
+
+{href &&
+
+ {img && }
+ {text && {text}
}
+
+
+}
+
+{!href &&
+
+ {img &&
}
+ {text &&
{text}
}
+
+
+}
diff --git a/src/globals.css b/src/globals.css
index 4edb1a5..0b9a376 100644
--- a/src/globals.css
+++ b/src/globals.css
@@ -5,7 +5,7 @@
:root {
--background: #fed7aa;
--orange: #f97316;
- --light-orange: #ffedd5;
+ --light-orange: #ffce9a;
--black: #000;
}
@@ -54,6 +54,10 @@ iframe {
height: 100%; /* Responsive height */
}
+footer {
+ background: #FFCE9A;
+}
+
.sec {
@apply sticky top-0;
background: var(--background);
diff --git a/src/layouts/ClickableGrid.astro b/src/layouts/ClickableGrid.astro
new file mode 100644
index 0000000..48cf796
--- /dev/null
+++ b/src/layouts/ClickableGrid.astro
@@ -0,0 +1,37 @@
+---
+import Clickable from '@components/Clickable.astro';
+
+interface ClickableItem {
+ t?: string;
+ text?: string;
+ href?: string;
+ img?: string;
+ alt?: string;
+ className?: string;
+}
+
+interface Props {
+ items: ClickableItem[][];
+ className?: string;
+}
+
+const { items, className = '' } = Astro.props;
+---
+
+
+ {items.map((row, rowIndex) => (
+
+ {row.map((item, colIndex) => (
+
+ {item.t}
+
+ ))}
+
+ ))}
+
diff --git a/src/sections/Community.astro b/src/sections/Community.astro
index 230932e..9eaca19 100644
--- a/src/sections/Community.astro
+++ b/src/sections/Community.astro
@@ -3,6 +3,7 @@ import image1 from "../../public/rust_book.png";
import image2 from "../../public/road_map.png";
import Clickable from "../components/Clickable.astro";
import Section from "@layouts/section.astro";
+import ClickableGrid from "@layouts/ClickableGrid.astro";
import { readTOMLFiles } from "../utils/readProjects";
interface Project {
@@ -49,19 +50,19 @@ const prebuiltData = await readTOMLFiles("proyectos-comunitarios/proyectos");
-
-
-
- Roadmap
- El Libro
-
-
-
-
- Rust para c# Developers
- Mas
-
-
+
diff --git a/src/sections/Footer.astro b/src/sections/Footer.astro
index b7c459b..491137d 100644
--- a/src/sections/Footer.astro
+++ b/src/sections/Footer.astro
@@ -5,39 +5,38 @@ import github_svg from "@assets/github.svg";
import discord_svg from "@assets/discord.svg";
import linkeding_svg from "@assets/Linkedin.svg";
import telegram_svg from "@assets/Telegram.svg";
----
-
-
-
-
Se parte de la
-
Comunidad
-
Y Descubre Como La
-
Comunidad Esta integrando
-
Rust en Distintas Areas
-
-
-
-
- Github
-
-
-
- Discord
-
-
+import ClickableGrid from "@layouts/ClickableGrid.astro";
+---
-
-
-
- Linkedin
-
-
-
- Telegram
-
-
-
-
-
+
diff --git a/src/sections/Intro.astro b/src/sections/Intro.astro
index 602b352..e39b35e 100644
--- a/src/sections/Intro.astro
+++ b/src/sections/Intro.astro
@@ -12,10 +12,8 @@ import discord_svg from "@assets/discord.svg";
Un espacio seguro
En Español
-
-
-
- Discord
-
-
+
+
+ Discord
+
diff --git a/src/sections/WhyRust.astro b/src/sections/WhyRust.astro
index c94d884..1666af3 100644
--- a/src/sections/WhyRust.astro
+++ b/src/sections/WhyRust.astro
@@ -2,6 +2,7 @@
import chart from "@assets/rust_performance.svg";
import Clickable from "@components/Clickable.astro";
import Section from "@layouts/section.astro";
+import ClickableGrid from "@layouts/ClickableGrid.astro";
---
-
-
- Formatter
- Gestor de paquetes
-
-
- Reglas para calidad
- Y mucho más
-
-
+