Skip to content

Commit ce937ee

Browse files
committed
feat(about): create empty about component
1 parent 3802384 commit ce937ee

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed
+30-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
11
<script lang="ts" setup>
2-
// TODO
2+
import { NCard, NLayout } from 'naive-ui';
3+
4+
import { useI18n } from '~/utils';
5+
6+
const i18n = useI18n('about');
37
</script>
48

59
<template>
6-
<span>This is a about component</span>
10+
<NLayout
11+
class="container"
12+
:content-style="{
13+
padding: '0.75rem 1rem',
14+
}"
15+
:native-scrollbar="false"
16+
>
17+
<NCard class="card" :title="i18n('title')">
18+
{{ i18n('content') }}
19+
</NCard>
20+
</NLayout>
721
</template>
822

923
<style lang="scss" scoped>
10-
// TODO
24+
@use '~/styles/mixin' as mixin;
25+
@use '~/styles/layout' as layout;
26+
27+
.container {
28+
width: 100%;
29+
height: calc(100dvh - #{layout.$header-navbar-height});
30+
background: transparent;
31+
32+
.card {
33+
@include mixin.hover-background($from: var(--bg-black-50), $to: var(--bg-color-80));
34+
35+
min-height: 50rem;
36+
}
37+
}
1138
</style>

src/components/views/settings/SettingsComponent.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ onDeactivated(() => {
6464
class="content"
6565
:native-scrollbar="false"
6666
:content-style="{
67-
padding: '1rem 1rem',
67+
padding: '1rem',
6868
}"
6969
>
7070
<NCard

0 commit comments

Comments
 (0)