feat(tag): better style and navbar to return home
This commit is contained in:
parent
964ae2b7f0
commit
1bd6521309
6 changed files with 27 additions and 10 deletions
|
@ -3,10 +3,10 @@
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build-sass": "sass --no-source-map --style=compressed scss/main.scss dist/styles.css",
|
"build:sass": "sass --no-source-map --style=compressed scss/main.scss dist/styles.css",
|
||||||
"watch-sass": "sass --watch scss/main.scss dist/styles.css",
|
"watch:sass": "sass --watch scss/main.scss dist/styles.css",
|
||||||
"build-js": "bun build ./index.ts --outdir ./dist --minify",
|
"build:js": "bun build ./index.ts --outdir ./dist --minify",
|
||||||
"build": "bun run build-sass && bun run build-js"
|
"build": "bun run build:sass && bun run build:js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bun": "latest"
|
"@types/bun": "latest"
|
||||||
|
|
|
@ -118,6 +118,17 @@ h4 {
|
||||||
font-size: 1.35rem;
|
font-size: 1.35rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
@media only screen and (max-width: vars.$bp-little) {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: normal;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.presentation {
|
.presentation {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -139,6 +150,7 @@ h4 {
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
@media only screen and (max-width: vars.$bp-little) {
|
@media only screen and (max-width: vars.$bp-little) {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
& p {
|
& p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -172,7 +184,7 @@ h4 {
|
||||||
column-gap: 1rem;
|
column-gap: 1rem;
|
||||||
row-gap: 0.5rem;
|
row-gap: 0.5rem;
|
||||||
@media only screen and (max-width: vars.$bp-little) {
|
@media only screen and (max-width: vars.$bp-little) {
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr;
|
||||||
column-gap: 0.5rem;
|
column-gap: 0.5rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
.tag {
|
.tag {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
border-radius: 16px;
|
border-radius: 8px;
|
||||||
@media only screen and (max-width: vars.$bp-little) {
|
@media only screen and (max-width: vars.$bp-little) {
|
||||||
cursor: auto;
|
cursor: auto;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<p class="description">
|
<p class="description">
|
||||||
{{ .Description }}
|
{{ .Description }}
|
||||||
</p>
|
</p>
|
||||||
<div class="links" style="{{ .Color.Button.GetBackground }}{{ .Color.Button.GetTextColor }}">
|
<nav class="links" style="{{ .Color.Button.GetBackground }}{{ .Color.Button.GetTextColor }}">
|
||||||
{{ range $link := .Links }}
|
{{ range $link := .Links }}
|
||||||
<div class="link">
|
<div class="link">
|
||||||
<a href="{{ .Link }}">{{ .Content }}</a>
|
<a href="{{ .Link }}">{{ .Content }}</a>
|
||||||
|
@ -21,6 +21,6 @@
|
||||||
<div class="link">
|
<div class="link">
|
||||||
<a href="/tags">Tags</a>
|
<a href="/tags">Tags</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</nav>
|
||||||
</main>
|
</main>
|
||||||
{{end}}
|
{{end}}
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="credits-legal">
|
<div class="credits-legal">
|
||||||
<h2>Legal information</h2>
|
<h2>Legal information</h2>
|
||||||
<p>
|
<p>
|
||||||
Legal information are available <a href="{{ .Legal.LegalInformationLink }}" target="_blank">here</a>.
|
Other legal information are available <a href="{{ .Legal.LegalInformationLink }}" target="_blank">here</a>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The software behind this website was made by <a href="https://www.anhgelus.world/" target="_blank">Anhgelus Morhtuuzh</a>.
|
The software behind this website was made by <a href="https://www.anhgelus.world/" target="_blank">Anhgelus Morhtuuzh</a>.
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
{{define "body"}}
|
{{define "body"}}
|
||||||
<main style="{{ .GetBackground }}">
|
<main style="{{ .GetBackground }}">
|
||||||
<h2>Tags</h2>
|
<div class="header">
|
||||||
|
<h2>Tags</h2>
|
||||||
|
<nav>
|
||||||
|
<a href="/">Home</a>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
<div class="tags" style="{{ .Color.GetTagColor }}">
|
<div class="tags" style="{{ .Color.GetTagColor }}">
|
||||||
{{ range $tag := .Person.Tags }}
|
{{ range $tag := .Person.Tags }}
|
||||||
<div class="tag" data-href="{{ .Link }}" title="{{ .Link }}">
|
<div class="tag" data-href="{{ .Link }}" title="{{ .Link }}">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue