Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 31d8583

Browse files
committed
feat: update home page style
1 parent 529861c commit 31d8583

File tree

3 files changed

+27
-14
lines changed

3 files changed

+27
-14
lines changed

app/assets/views/home.xml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<lcui-app>
33
<ui>
4-
<w class="v-home__cards container d-flex justify-content-center">
5-
<router-link class="v-home__card" to="/welcome">
6-
<icon class="v-home__card-icon text-pink" name="emoticon-cool-outline" />
7-
<text class="v-home__card-title">Welcome!</text>
8-
</router-link>
9-
<router-link class="v-home__card" to="/file">
10-
<icon class="v-home__card-icon text-orange" name="folder-search" />
11-
<text class="v-home__card-title">File</text>
12-
</router-link>
13-
<router-link class="v-home__card" to="/help">
14-
<icon class="v-home__card-icon text-blue" name="help-box" />
15-
<text class="v-home__card-title">About</text>
16-
</router-link>
17-
</w>
4+
<w class=" container">
5+
<w class="v-home__cards d-flex justify-content-center align-items-center">
6+
<router-link class="v-home__card" to="/welcome">
7+
<icon class="v-home__card-icon text-pink" name="emoticon-cool-outline" />
8+
<text class="v-home__card-title">Welcome!</text>
9+
</router-link>
10+
<router-link class="v-home__card" to="/file">
11+
<icon class="v-home__card-icon text-orange" name="folder-search" />
12+
<text class="v-home__card-title">File</text>
13+
</router-link>
14+
<router-link class="v-home__card" to="/help">
15+
<icon class="v-home__card-icon text-blue" name="help-box" />
16+
<text class="v-home__card-title">About</text>
17+
</router-link>
18+
</w>
19+
</w>
1820
</ui>
1921
</lcui-app>

src/ui/stylesheets/components/_frame-tab.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
position: relative;
6868
margin-right: -1px;
6969
padding: 8px;
70+
display: flex;
7071
border-top-left-radius: 8px;
7172
border-top-right-radius: 8px;
7273

src/ui/stylesheets/views/_home.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
.v-home {
2+
display: flex;
3+
height: 100%;
4+
padding-bottom: 60px;
5+
align-items: center;
26

7+
.container {
8+
display: flex;
9+
justify-content: center;
10+
max-width: $home-card-width * 4;
11+
}
312
}
413

514
.v-home__card-icon {
@@ -18,6 +27,7 @@
1827
display: block;
1928
text-align: center;
2029
line-height: $home-card-title-line-height;
30+
margin-bottom: $home-card-spacing / 2;
2131
}
2232

2333
.v-home__card {

0 commit comments

Comments
 (0)