Skip to content

Commit 5f7333f

Browse files
committed
feat: celebration layout
1 parent 216e691 commit 5f7333f

3 files changed

Lines changed: 47 additions & 0 deletions

File tree

src/celebration.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: page
3+
sidebar: false
4+
---
5+
6+
<script setup lang="ts">
7+
import CelebrationView from './views/CelebrationView.vue'
8+
</script>
9+
10+
<CelebrationView />

src/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ hero:
1010
- theme: brand
1111
text: 项目
1212
link: /project
13+
- theme: brand
14+
text: 周年庆
15+
link: /celebration
1316
- theme: alt
1417
text: 文档
1518
link: /doc

src/views/CelebrationView.vue

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<script setup lang="ts">
2+
const mockMessage = [
3+
{
4+
content: "祝蛋挞生日快乐!",
5+
name: "某旦夕用户",
6+
}
7+
]
8+
9+
</script>
10+
11+
<template>
12+
<div class="w-full p-10 h-[64rem] flex flex-col gap-2">
13+
<div class="w-full h-10 bg-red-500"></div>
14+
<div class="grid grid-cols-2 grid-rows-3 gap-5 md:grid-cols-3 md:grid-rows-2 w-full flex-grow">
15+
<div
16+
class=" md:row-span-2 md:col-span-1 col-span-2 row rounded-xl flex justify-center items-center bg-gray-100 shadow-sm hover:shadow-xl transition-all duration-300 ease-in-out hover:cursor-pointer">
17+
one</div>
18+
<div
19+
class="bg-gray-100 rounded-xl flex justify-center items-center shadow-sm hover:shadow-xl transition-all duration-300 ease-in-out hover:cursor-pointer">
20+
two</div>
21+
<div
22+
class="bg-gray-100 rounded-xl flex justify-center items-center shadow-sm hover:shadow-xl transition-all duration-300 ease-in-out hover:cursor-pointer">
23+
three</div>
24+
<div
25+
class="bg-gray-100 rounded-xl flex justify-center items-center shadow-sm hover:shadow-xl transition-all duration-300 ease-in-out hover:cursor-pointer">
26+
four</div>
27+
<div
28+
class="bg-gray-100 rounded-xl flex justify-center items-center shadow-sm hover:shadow-xl transition-all duration-300 ease-in-out hover:cursor-pointer">
29+
five</div>
30+
</div>
31+
</div>
32+
</template>
33+
34+
<style module></style>

0 commit comments

Comments
 (0)