File tree 2 files changed +31
-4
lines changed
2 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 1
1
<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' );
3
7
</script >
4
8
5
9
<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 >
7
21
</template >
8
22
9
23
<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 (100 dvh - #{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
+ }
11
38
</style >
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ onDeactivated(() => {
64
64
class =" content"
65
65
:native-scrollbar =" false"
66
66
:content-style =" {
67
- padding: '1rem 1rem ',
67
+ padding: '1rem',
68
68
}"
69
69
>
70
70
<NCard
You can’t perform that action at this time.
0 commit comments