|
| 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> |
0 commit comments