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

Commit ff6aa21

Browse files
author
Noah Hanjun Lee
authored
Change the logo (#144)
* Change the logo in the application * Change the logo in the doc
1 parent d7daad0 commit ff6aa21

File tree

9 files changed

+49
-5
lines changed

9 files changed

+49
-5
lines changed

docs/images/favicon.ico

1.52 KB
Binary file not shown.

docs/images/logo.svg

Lines changed: 17 additions & 0 deletions
Loading

internal/server/router.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ func NewRouter(c *RouterConfig) *gin.Engine {
240240
// Static files
241241
// Files in ui/public
242242
r.StaticFile("/favicon.ico", "./favicon.ico")
243-
r.StaticFile("/logo192.png", "./logo192.png")
244-
r.StaticFile("/logo512.png", "./logo512.png")
245243
r.StaticFile("/manifest.json", "./manifest.json")
246244
r.StaticFile("/robots.txt", "./robots.txt")
247245
r.Static("/static", "./static")

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ theme:
55
palette:
66
primary: deep purple
77
accent: deep purple
8+
logo: images/logo.svg
9+
favicon: images/favicon.ico
810
icon:
911
repo: fontawesome/brands/github
1012
nav:

ui/public/favicon.ico

-2.26 KB
Binary file not shown.

ui/public/logo192.png

-5.22 KB
Binary file not shown.

ui/public/logo512.png

-9.44 KB
Binary file not shown.

ui/src/logo.svg

Lines changed: 26 additions & 1 deletion
Loading

ui/src/views/Main.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { subscribeEvents } from "../apis"
1010
import RecentActivities from "../components/RecentActivities"
1111
import LicenseFooter from "../components/LicenseFooter"
1212

13+
import Logo from "../logo.svg"
14+
1315
const { Header, Content, Footer } = Layout
1416

1517
// eslint-disable-next-line
@@ -86,8 +88,8 @@ export default function Main(props: any) {
8688
<Header>
8789
<Row>
8890
<Col span="16">
89-
<Menu theme="dark" mode="horizontal" defaultActiveFirst>
90-
<Menu.Item key={0}>Gitploy</Menu.Item>
91+
<Menu theme="dark" mode="horizontal" >
92+
<Menu.Item key={0}><a href="/"><img src={Logo} style={{width: 62}}/></a></Menu.Item>
9193
<Menu.Item key={1}><a href="/">Home</a></Menu.Item>
9294
{(user?.admin)? <Menu.Item key={2}><a href="/members">Members</a></Menu.Item>: null}
9395
</Menu>

0 commit comments

Comments
 (0)