Skip to content

Commit

Permalink
Merge pull request #20 from gdsc-ncku/zhihao
Browse files Browse the repository at this point in the history
add: `Forum` page
  • Loading branch information
蘇奕幃 Alex Su authored Jan 17, 2024
2 parents ded5056 + af1d786 commit 366670a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/views/forum/Forum.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,45 @@
<template>
<Breadcrumb />
<div class="flex flex-col sm:gap-[4.81rem] gap-[0.62rem] sm:w-[63.875rem] w-[calc(100vw_-_3.2rem)] sm:mx-auto mb-[8.25rem] ml-[3.06rem] mr-auto">
<div v-for="d in data" class="flex sm:gap-20 gap-3 sm:h-[13.875rem] h-[11.25rem] items-center">
<img :src="d.imgLink" class="sm:w-[23.5rem] w-[6.875rem] sm:h-[13.875rem] h-[6.5rem] bg-[#ADADAD] sm:rounded-[0.625rem] rounded-[0.3125rem]" >
<div class="flex flex-col sm:gap-4 gap-[0.38rem] flex-1">
<div class="sm:hidden text-xs text-primary-900">{{ d.class_ }}</div>
<!-- <div class="sm:text-4xl text-xl font-bold">{{ d.name }}</div> -->
<RouterLink class="sm:text-4xl text-xl font-bold" :to="d.link">
{{ d.name }}
</RouterLink>
<div class="sm:text-xl text-sm sm:h-[8.25rem] h-[4.4375rem]">{{ d.context }}</div>
</div>
</div>
</div>
</template>

<script setup>
import Breadcrumb from '@/components/Breadcrumb.vue';
import { RouterLink } from "vue-router";
const data = [
{
class_: "分類",
name: "科系手冊",
context: "123456 abcdefg",
link: "/forum/departmentHandbook",
imgLink: "",
},
{
class_: "分類",
name: "專欄文章",
context: "123456 abcdefg",
link: "/forum/featuredArticles",
imgLink: "",
},
{
class_: "分類",
name: "給高中生的一封信",
context: "123456 abcdefg",
link: "/forum/letterToHighSchoolStudents",
imgLink: "",
},
]
</script>

0 comments on commit 366670a

Please sign in to comment.