Skip to content

Commit 19db8cb

Browse files
committed
improve
1 parent e5aa248 commit 19db8cb

File tree

3 files changed

+6
-26
lines changed

3 files changed

+6
-26
lines changed

options/locale/locale_en-US.ini

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ license_desc = Go get <a target="_blank" rel="noopener noreferrer" href="%[1]s">
244244

245245
[install]
246246
install = Installation
247-
installing = Installing
248247
installing_desc = Installing now, please wait...
249248
title = Initial Configuration
250249
docker_helper = If you run Gitea inside Docker, please read the <a target="_blank" rel="noopener noreferrer" href="%s">documentation</a> before changing any settings.

templates/post-install.tmpl

+6-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
{{template "base/head" .}}
2-
<div role="main" aria-label="{{.Title}}" class="page-content install post-install">
3-
<div class="ui container">
4-
<div class="ui grid">
5-
<div class="sixteen wide column content">
6-
<div class="home">
7-
<div class="ui stackable middle very relaxed page grid">
8-
<div class="sixteen wide center aligned centered column">
9-
<div class="loading">
10-
<img src="{{AssetUrlPrefix}}/img/loading.png" alt="{{ctx.Locale.Tr "install.installing"}}">
11-
</div>
12-
<p><a id="goto-user-login" href="{{AppSubUrl}}/user/login">{{ctx.Locale.Tr "install.installing_desc"}}</a></p>
13-
</div>
14-
</div>
15-
</div>
16-
</div>
2+
<div role="main" aria-label="{{.Title}}" class="page-content install post-install tw-h-full">
3+
<div class="home tw-text-center tw-h-full tw-flex tw-flex-col tw-justify-center"><!-- the "home" class makes the links green -->
4+
<!-- the "cup" has a handler, so move it a little leftward to make it visually in the center -->
5+
<div class="tw-ml-[-30px]"><img width="160" src="{{AssetUrlPrefix}}/img/loading.png" alt="" aria-hidden="true"></div>
6+
<div class="tw-my-[2em] tw-text-[18px]">
7+
<a id="goto-user-login" href="{{AppSubUrl}}/user/login">{{ctx.Locale.Tr "install.installing_desc"}}</a>
178
</div>
189
</div>
1910
</div>

web_src/css/install.css

-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
.page-content.install.post-install {
2-
height: 100%;
3-
display: flex;
4-
align-items: center;
5-
}
6-
71
.page-content.install .install-config-container {
82
max-width: 900px;
93
margin: auto;
@@ -59,7 +53,3 @@
5953
text-align: left;
6054
margin: 10px auto;
6155
}
62-
63-
.page-content.install .loading img {
64-
width: 128px;
65-
}

0 commit comments

Comments
 (0)