Skip to content

Commit

Permalink
close #6
Browse files Browse the repository at this point in the history
  • Loading branch information
bestian committed Oct 16, 2024
1 parent 0d066fa commit 3de3c48
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 9 deletions.
9 changes: 8 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@
router-link.item(to="/core")
i.suitcase.icon
| 精華
router-link(class="item" to="/book")
i.book.icon
| 相關書籍
router-link(class="item" to="/faq")
i.info.icon
| 常見問題
router-link(class="item" to="/statues")
// router-link(class="item" to="/statues")
i.users.icon
| 流動塑像
.ui.sidebar.vertical.menu#side-menu(:class="{'hidden': !sidebarVisible}")
Expand Down Expand Up @@ -177,4 +180,8 @@ p {
transform: translateX(-100%); /* 隱藏時向左滑動 */
}
.filler {
flex: 1;
}
</style>
45 changes: 37 additions & 8 deletions src/views/Book.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,44 @@
.faq
.ui.segment.container
h2.ui.header 相關書籍
a(href="https://www.psy.com.tw/ec99/ushop20128/goodsdescr.asp?category_id=72&parent_id=87&prod_id=41505",
target="_blank", rel="noopener noreferrer")
img(src="https://www.psy.com.tw/ecmas0128/Store/bImages/41505.jpg")
p 即興真實人生-一人一故事劇場中的個人故事

.ui.two.column.grid
.column(v-for="book in books" :key="book.id")
a(:href="book.url" target="_blank" rel="noopener noreferrer")
img(:src="book.imageUrl")
.filler
p
a(:href="book.url" target="_blank" rel="noopener noreferrer") {{ book.title }}
</template>

<script>
export default {
name: 'Faq',
name: 'Book',
data() {
return {
books: [
{
id: 1,
url: "https://www.psy.com.tw/ec99/ushop20128/goodsdescr.asp?category_id=72&parent_id=87&prod_id=41505",
imageUrl: "https://www.psy.com.tw/ecmas0128/Store/bImages/41505.jpg",
title: "即興真實人生-一人一故事劇場中的個人故事"
},
{
id: 2,
url: "https://webpac.tphcc.gov.tw/webpac/content.cfm?mid=217151&m=ss&k0=%E8%96%A9%E6%8F%90%E7%88%BE%20((satir%2C%20virginia))&t0=k&c0=and&list_num=10&current_page=1&mt=&at=&sj=&py=&pr=&it=&lr=&lg=&si=1&view=d",
imageUrl: "https://toread3.tphcc.gov.tw/toread/covers.svc?h=260&t=m&w=194&rid=217151",
title: "薩提爾的家族治療模式"
}
]
}
}
}
</script>

<style scoped>
img {
max-width: 88%;
max-width: 160px;
margin-top: 10px;
}
p {
font-size: 18px;
Expand All @@ -28,4 +48,13 @@ export default {
margin: .6em auto;
color: rgb(64, 3, 206);
}
.column {
padding: 10px;
height: 360px;
display: flex !important;
flex-direction: column;
justify-content: center;
align-items: center;
}
</style>

0 comments on commit 3de3c48

Please sign in to comment.