styling of links
This commit is contained in:
parent
dc527da736
commit
5175cb3150
3 changed files with 25 additions and 3 deletions
2
src/public/util/colors.scss
Normal file
2
src/public/util/colors.scss
Normal file
|
@ -0,0 +1,2 @@
|
|||
$no_alpha: #00000000;
|
||||
$white: #FFFFFF;
|
|
@ -1,3 +1,5 @@
|
|||
@import "colors.scss";
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
@ -26,8 +28,24 @@ body {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
>a{
|
||||
>button {
|
||||
background-color: #000;
|
||||
font-family: monospace;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
background-color: $no_alpha;
|
||||
color: $white;
|
||||
border: 4px solid $white;
|
||||
width: 750px;
|
||||
height: 3rem;
|
||||
cursor: pointer;
|
||||
transition: background-color .25s ease-in-out, color .25s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
background-color: $white;
|
||||
color: #ff9601;
|
||||
background-position: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -9,7 +9,9 @@
|
|||
</div>
|
||||
<div class="linkbox">
|
||||
<% links.forEach(link => { %>
|
||||
<a href="<%= link.hyperlink %>">
|
||||
<button class="<%= `${link.brandcolor} ${link.color}` %>"><%= link.text %></button>
|
||||
</a>
|
||||
<% }) %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue