Skip to content

Commit a5e21c8

Browse files
committed
fix: fix layout bug
1 parent 5f97f02 commit a5e21c8

File tree

7 files changed

+32
-23
lines changed

7 files changed

+32
-23
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# HackHTU UI
22

3-
> v2 正在快速迭代中,欢迎提供反馈和建议!
3+
<p align="center">
4+
<img src="icon.svg" alt="icon" width="100" height="100"/>
5+
</p>
46

57
这里是 HackHTU v2 的 UI Library,设计文件遵循 CC-BY-SA-4.0 协议。
68

79
<a href="https://www.figma.com/design/dg892ShubXBBfJQ8PANbMk/UI?node-id=0-1&t=voNFXUZztkQaqr5C-1">
810
<img src="public/Cover.png" alt="Figma Design" align=center />
9-
10-
点击查看 Figma 设计文件
11-
<img src="public/Badge.png" width="150" alt="Figma Design" align=center />
1211
</a>
1312

1413
## 加入我们

icon.svg

Lines changed: 10 additions & 0 deletions
Loading

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Display/Collapse.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ let isOpen = ref(false);
4545
<hr class="border-primary my-2 w-full" />
4646

4747
<p class="text-2xl font-bold">Title</p>
48-
<p class="text-lg">Content</p>
48+
<p class="text-lg whitespace-pre-line">Content</p>
4949
</div>
5050
</div>
5151
</template>

src/components/Form/Button.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
2-
<div
2+
<button
33
class="border-primary text-primary bg-background m-1 cursor-pointer rounded-xl border-2 px-2 py-1 select-none hover:invert">
44
Button
5-
</div>
5+
</button>
66

7-
<div
7+
<button
88
class="border-primary bg-primary text-background m-1 cursor-pointer rounded-xl border px-2 py-1 select-none hover:invert">
99
Button
10-
</div>
10+
</button>
1111

12-
<div
12+
<button
1313
class="hover:text-primary m-1 cursor-pointer rounded-xl border border-red-600 bg-red-600 px-2 py-1 text-neutral-50 select-none hover:border-neutral-300 hover:bg-neutral-200">
1414
Button
15-
</div>
15+
</button>
1616
</template>

src/components/Navigation/Footer.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div
3-
class="bg-primary dark:text-primary text-background flex w-full max-w-dvw items-start justify-between gap-5 rounded-3xl p-6 dark:bg-neutral-800">
2+
<footer
3+
class="bg-primary dark:text-primary text-background flex w-full max-w-dvw items-start justify-between gap-5 rounded-bl-3xl rounded-br-3xl px-6 pt-6 pb-10 select-none dark:bg-neutral-800">
44
<div class="flex flex-col items-start gap-1.5">
55
<svg
66
xmlns="http://www.w3.org/2000/svg"
@@ -17,7 +17,7 @@
1717
>
1818
</div>
1919

20-
<div class="flex flex-wrap gap-5">
20+
<div class="flex flex-wrap gap-10">
2121
<ul class="space-y-1">
2222
<li class="text-lg font-bold">产品</li>
2323
<li>NekoEVAL</li>
@@ -39,8 +39,8 @@
3939
<li>Telegram 群组</li>
4040
<li>Discord 服务器</li>
4141
<li>Github 团队</li>
42-
<li>邮箱</li>
42+
<li>Email 邮箱</li>
4343
</ul>
4444
</div>
45-
</div>
45+
</footer>
4646
</template>

src/components/Navigation/NavigationBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="text-background dark:text-primary flex w-[80dvw] max-w-full items-center justify-between rounded-2xl border border-neutral-300 bg-neutral-900">
3+
class="text-background dark:text-primary mx-2 flex w-200 max-w-full items-center justify-between rounded-2xl border border-neutral-300 bg-neutral-900 text-nowrap select-none">
44
<svg
55
xmlns="http://www.w3.org/2000/svg"
66
class="h-14 w-20"

0 commit comments

Comments
 (0)