-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from gdsc-ncku/zhihao
add: `Forum` page
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |