Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed May 1, 2024
1 parent 2ed6eff commit 971057a
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 8 deletions.
16 changes: 13 additions & 3 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,28 @@ body {
gap: 1em;
}

/* GitHub链接样式 */
/* 链接样式 */
.github-link {
position: absolute;
top: 15px;
right: 15px;
}

.github-icon {
width: 40px;
width: 48px;
height: auto;
}

.table-link {
position: absolute;
top: 15px;
left: 15px;
}

.material-symbols-outlined.md-48 {
font-size: 48px;
}

/* 标题样式 */
.title {
font-family: 'Noto Serif', SimSun, 'Times New Roman', Times, serif;
Expand Down Expand Up @@ -225,4 +235,4 @@ table tr:nth-child(even) {
width: 60%;
font-size: 1em;
}
}
}
22 changes: 22 additions & 0 deletions static/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,28 @@ body {
background-color: #f9f2e0;
}

.header {
text-align: center;
font-weight: bold;
font-size: larger;
}

.github-icon {
width: 2ex;
height: inherit;
display: inline-block;
line-height: inherit;
vertical-align: middle;
transform: translateY(-.1em);
}

.material-symbols-outlined.b {
display: inline-block;
line-height: inherit;
vertical-align: middle;
transform: translateY(-.1em);
}

table {
border-collapse: collapse;
}
Expand Down
11 changes: 9 additions & 2 deletions table.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon.png') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='table.css') }}" type="text/css">
<link rel="stylesheet" href="https://fonts.font.im/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
</head>
<body>
<div style="text-align: center; font-weight: bold; font-size: larger;">Minecraft Standard Translation Table. Latest
Update: {{ date_str }}</div>
<div class="header">
Minecraft Standard Translation Table. Latest Update: {{ date_str }}<br>Made by SkyEye_FAST.&emsp;
<a href="../"><span class="material-symbols-outlined b">home</span>Main Page</a>&emsp;
<a class="github-link" href="https://github.com/SkyEye-FAST/minecraft_translation_flask">
<img class="github-icon" src="{{ url_for('static', filename='images/github-icon.svg') }}" alt="GitHub">
GitHub
</a>
</div>
<table>
<thead>
<tr>
Expand Down
5 changes: 5 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon.png') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" type="text/css">
<link rel="stylesheet"
href="https://fonts.font.im/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0" />
</head>

<body>
<a class="table-link" href="/table">
<span class="material-symbols-outlined md-48">table</span>
</a>
<a class="github-link" href="https://github.com/SkyEye-FAST/minecraft_translation_flask">
<img class="github-icon" src="{{ url_for('static', filename='images/github-icon.svg') }}" alt="GitHub">
</a>
Expand Down
13 changes: 10 additions & 3 deletions templates/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@
<link href="{{ url_for('static', filename='favicon.ico') }}" rel="icon"/>
<link href="{{ url_for('static', filename='apple-touch-icon.png') }}" rel="apple-touch-icon"/>
<link href="{{ url_for('static', filename='table.css') }}" rel="stylesheet" type="text/css"/>
</head>
<link href="https://fonts.font.im/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" rel="stylesheet">
</link></head>
<body>
<div style="text-align: center; font-weight: bold; font-size: larger;">Minecraft Standard Translation Table. Latest
Update: {{ date_str }}</div>
<div class="header">
Minecraft Standard Translation Table. Latest Update: {{ date_str }}<br/>Made by SkyEye_FAST. 
<a href="../"><span class="material-symbols-outlined b">home</span>Main Page</a> 
<a class="github-link" href="https://github.com/SkyEye-FAST/minecraft_translation_flask">
<img alt="GitHub" class="github-icon" src="{{ url_for('static', filename='images/github-icon.svg') }}"/>
GitHub
</a>
</div>
<table>
<thead>
<tr>
Expand Down

0 comments on commit 971057a

Please sign in to comment.