diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-04-01 07:47:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-01 07:47:54 +0200 |
commit | e2165854a6c40a4ce95b81911d06e311217ba028 (patch) | |
tree | 12863a109564241bb7c0a23a3fe57ade4508f9a8 /templates/home.tmpl | |
parent | Make first section on home page full width (#23854) (diff) | |
download | forgejo-e2165854a6c40a4ce95b81911d06e311217ba028.tar.xz forgejo-e2165854a6c40a4ce95b81911d06e311217ba028.zip |
Improve home page template, fix Sort dropdown menu flash (#23856)
Follow #23854
Major changes:
1. The old `<div class="ui"><div class="six wide column ...">
</div></div>` doesn't have affect any more
* So clean them, and remove other unnecessary elements/styles.
2. Add padding for narrow view.
Before
![image](https://user-images.githubusercontent.com/2114189/229262177-e8cf6c9b-b17b-482c-83fe-a84579e01e8e.png)
After:
![image](https://user-images.githubusercontent.com/2114189/229262166-d46134b0-2117-4d5c-a469-a2115cbd4b6c.png)
Diffstat (limited to 'templates/home.tmpl')
-rw-r--r-- | templates/home.tmpl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/home.tmpl b/templates/home.tmpl index 57f0709a9f..1f10f3c8d2 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -1,10 +1,8 @@ {{template "base/head" .}} <div role="main" aria-label="{{if .IsSigned}}{{.locale.Tr "dashboard"}}{{else}}{{.locale.Tr "home"}}{{end}}" class="page-content home"> - <div class="ui middle very relaxed page gt-mb-5"> - <div class="sixteen wide center aligned centered column"> - <div> - <img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.locale.Tr "logo"}}"> - </div> + <div class="gt-mb-5 gt-px-5"> + <div class="center"> + <img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.locale.Tr "logo"}}"> <div class="hero"> <h1 class="ui icon header title"> {{AppName}} |