Skip to content

Commit b9ac70f

Browse files
committed
road map pages
1 parent ceb167a commit b9ac70f

File tree

2 files changed

+82
-4
lines changed

2 files changed

+82
-4
lines changed
+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
import Layout from "../../../layouts/Layout.astro";
3+
4+
5+
const { version_id } = Astro.params;
6+
console.log("version", version_id);
7+
8+
9+
const roadmapContent = await Astro.glob(`../../../content/roadmap/${version_id}/*.md`);
10+
11+
const roadmapVersion = await Astro.glob(
12+
"../../../content/roadmapVersions/*.md"
13+
);
14+
---
15+
16+
<Layout title="roadmap">
17+
<section class="roadmap my-32">
18+
<div class="relative w-full">
19+
<img src="/public/roadmap-line.svg" class="w-full" />
20+
<div
21+
class="absolute -top-10 flex flex-row justify-evenly w-full md:-top-14"
22+
>
23+
{
24+
roadmapVersion.map((version) => {
25+
const {id, title, backgroundColor, color } = version.frontmatter;
26+
return (
27+
<div>
28+
<div>
29+
<h3 class={` text-xs w-full ${color} sm:text-sm md:text-3xl`}>
30+
{title}
31+
</h3>
32+
</div>
33+
<a href=`${id}`>
34+
<div
35+
class={`${backgroundColor} w-14 h-14 rounded-full opacity-20 relative`}
36+
/>
37+
<div
38+
class={`${backgroundColor} w-8 h-8 absolute top-7 ml-3 rounded-full md:top-12`}
39+
/>
40+
</a>
41+
</div>
42+
);
43+
})
44+
}
45+
</div>
46+
</div>
47+
48+
<div>
49+
<h1 class="text-4xl text-[#5BFFB0] mt-20 text-center">Mindplex 2.0</h1>
50+
<div>
51+
{
52+
roadmapContent.map((content) => {
53+
const { title, description, color } = content.frontmatter;
54+
return (
55+
<div class="flex flex-row mb-6 w-full mt-12 gap-4 md:gap-28 lg:gap-36">
56+
<div
57+
class={`${color} py-5 px-2 rounded-xl text-center text-xs sm:px-8 sm:text-sm w-[251px] lg:w-[985px] md:text-3xl lg:px-20 `}
58+
>
59+
{title}
60+
</div>
61+
62+
<div class=" w-full flex flex-row gap-4 lg:gap-10">
63+
<div class="bg-[#5BFFB0] min-w-[8px] rounded-2xl sm:min-w-[15px] " />
64+
<p class=" w-full text-xs sm:text-sm sm:w-fit md:text-2xl">
65+
{description}
66+
</p>
67+
</div>
68+
</div>
69+
);
70+
})
71+
}
72+
</div>
73+
</div>
74+
</section>
75+
</Layout>

src/pages/roadmap/index.astro

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
import Layout from "../../layouts/Layout.astro";
3+
4+
5+
36
const roadmapVersion = await Astro.glob("../../content/roadmapVersions/*.md");
4-
const roadmapContent = await Astro.glob("../../content/roadmap/2.0/*.md");
7+
const roadmapContent = await Astro.glob("../../content/roadmap/Q1/*.md");
58
---
69

710
<Layout title="roadmap">
@@ -13,22 +16,22 @@ const roadmapContent = await Astro.glob("../../content/roadmap/2.0/*.md");
1316
>
1417
{
1518
roadmapVersion.map((version) => {
16-
const { title, backgroundColor, color } = version.frontmatter;
19+
const {id, title, backgroundColor, color } = version.frontmatter;
1720
return (
1821
<div>
1922
<div>
2023
<h3 class={` text-xs w-full ${color} sm:text-sm md:text-3xl`}>
2124
{title}
2225
</h3>
2326
</div>
24-
<div>
27+
<a href=`roadmap/${id}`>
2528
<div
2629
class={`${backgroundColor} w-14 h-14 rounded-full opacity-20 relative`}
2730
/>
2831
<div
2932
class={`${backgroundColor} w-8 h-8 absolute top-7 ml-3 rounded-full md:top-12`}
3033
/>
31-
</div>
34+
</a>
3235
</div>
3336
);
3437
})

0 commit comments

Comments
 (0)