feat(tag): better link to page
This commit is contained in:
parent
dd8495d596
commit
c8ea8d4cd3
2 changed files with 8 additions and 5 deletions
|
@ -162,12 +162,13 @@ h4 {
|
|||
--background: #000;
|
||||
--background-hover: var(--background);
|
||||
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
margin-top: 2rem;
|
||||
width: 100%;
|
||||
gap: 1rem;
|
||||
@media only screen and (max-width: vars.$bp-little) {
|
||||
flex-direction: column;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
@ -175,7 +176,7 @@ h4 {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 33%;
|
||||
width: 100%;
|
||||
box-shadow: 0 0 50px -20px rgba(0,0,0,0.75);
|
||||
border-radius: 16px;
|
||||
background: var(--background);
|
||||
|
|
|
@ -11,14 +11,16 @@
|
|||
</div>
|
||||
<p class="description">
|
||||
{{ .Description }}
|
||||
<a href="/tags">More information...</a>
|
||||
</p>
|
||||
<div class="links">
|
||||
{{ range $link := .Links }}
|
||||
<div class="link" style="{{ .GetBackground }}">
|
||||
<a href="{{ .Link }}" style="{{ .GetLinkColor }}">{{ .Content }}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
{{ end }}
|
||||
<div class="link" style="--background: #000;--background-hover: #333;">
|
||||
<a href="/tags" style="--text-color: #ddd;--text-color-hover: #fff;">Tags</a>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue