Many improvements

This commit is contained in:
Trygve 2021-03-16 11:11:18 +01:00
parent 834ecdd929
commit b3d7fbe287
2 changed files with 107 additions and 16 deletions

View File

@ -1,15 +1,73 @@
:root {
--dark-accent-color: #5C6BC0;
--dark-bg-color: #121212;
--dark-alt-bg-color: #5c6bc0;
--dark-text-color: #eeeeee;
--dark-btn-color: #303f9f
}
body { body {
font-family: "Noto Sans", "Liberation Sans","Trebuchet MS", Arial, Helvetica, sans-serif; font-family: "Noto Sans", "Liberation Sans","Trebuchet MS", Arial, Helvetica, sans-serif;
margin: 0;
--accent-color: #1A237E;
--bg-color: none;
--alt-bg-color: #283593;
--text-color: black;
--btn-color: #303f9f;
background-color: var(--bg-color);
color: var(--text-color);
} }
header{
padding: 0.5rem;
}
.header-list{
align-items: center;
justify-content: center;
margin: auto;
min-height: 2rem;
display: flex;
flex-wrap: wrap;
list-style: none;
gap: 1rem;
}
.tab-button{
padding: 0.5rem 1rem;
border-radius: .25rem;
text-decoration: underline;
font-weight: 600;
transition: 0.15s;
color: var(--text-accent-color);
}
.tab-button.active{
color: #fff;
background-color: var(--btn-color);
}
.tab-button:focus {
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
outline: none;
box-shadow: 0 0 2px 2px var(--accent-color), 0 .5rem 1rem rgba(0,0,0,.15) !important;
}
.tab-button:hover {
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
background-color: var(--btn-color);
box-shadow: 0 0 2px 2px var(--accent-color), 0 .5rem 1rem rgba(0,0,0,.15) !important;
}
/* Container for main content */ /* Container for main content */
.cont { .cont {
margin: auto; margin: auto;
width: max-content;
} }
.service-list { .service-list {
padding: 0;
display: flex; display: flex;
flex-wrap: wrap;
justify-content: center;
list-style: none; list-style: none;
gap: 1rem; gap: 1rem;
} }
@ -26,20 +84,38 @@ body {
} }
.service-list li:hover { .service-list li:hover {
box-shadow: 0 1px 1px rgba(0,0,0,0.11), transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
0 2px 2px rgba(0,0,0,0.11), box-shadow: 0 0 2px 2px var(--accent-color), 0 .5rem 1rem rgba(0,0,0,.15) !important;
0 4px 4px rgba(0,0,0,0.11),
0 8px 8px rgba(0,0,0,0.11),
0 16px 16px rgba(0,0,0,0.11),
0 32px 32px rgba(0,0,0,0.11);
} }
.service-list li a { .service-list li a {
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
text-align: center; text-align: center;
vertical-align:middle;
} }
#li-nextcloud { background-image: url(./icons/Nextcloud_Logo.svg); } #li-nextcloud { background-image: url(./icons/Nextcloud_Logo.svg); }
#li-matrix { background-image: url(./icons/Matrix_Logo.svg); } #li-matrix { background-image: url(./icons/Matrix_Logo.svg); }
@media only screen and (min-width:1000px){
.cont {
width: 80%;
}
}
@media (prefers-color-scheme: dark) {
body.theme-auto {
--bg-color: var(--dark-bg-color);
--alt-bg-color: var(--dark-alt-bg-color);
--text-color: var(--dark-text-color);
--btn-color: var(--dark-btn-color);
--accent-color: var(--dark-accent-color);
}
#li-nextcloud { }
#li-matrix { filter: invert(); }
}

View File

@ -7,27 +7,42 @@
<link rel="icon" type="image/png" href="/dist/favicon.png"> <link rel="icon" type="image/png" href="/dist/favicon.png">
<link rel="stylesheet" href="./common/main.css"> <link rel="stylesheet" href="./common/main.css">
</head> </head>
<body> <body class="theme-auto">
<header> <header>
Trygves side <ul class="header-list">
<li>
<a class="tab-button" href="/">Hjem</a>
</li>
<li>
<a class="tab-button" href="/speedtest/">Nettverkstest</a>
</li>
<li>
<a class="tab-button" href="/filopplasting">Filopplasting</a>
</li>
<li>
<a class="tab-button" href="/diverse">Flere Saker</a>
</li>
</ul>
</header> </header>
<h1>Velkommen til sida mi</h1> <center>
<h1>Velkommen til Trygves side!</h1>
<div class="cont"> <div class="cont">
<h2>Mine prosjekter</h2> <h2>Mine prosjekter:</h2>
<ul class="service-list"> <ul class="service-list">
<li><a href="https://trygve.me/liveresultater/">Liveresultater</a></li> <li><a href="/liveresultater/">Liveresultater</a></li>
<li><a href="https://trygve.me/fuglekasse/">Fuglekasse</a></li> <li><a href="/fuglekasse/">Fuglekasse</a></li>
<li><a href="https://trygve.me/filopplasting/">Filopplasting</a></li> <li><a href="/filopplasting/">Filopplasting</a></li>
</ul> </ul>
<h2>Tjenester</h2> <h2>Tjenester:</h2>
<ul class="service-list"> <ul class="service-list">
<li id="li-matrix"><a href="https://riot.trygve.me"></a></li> <li id="li-matrix"><a href="https://riot.trygve.me"></a></li>
<li id="li-nextcloud"> <a href="https://nextcloud.trygve.me/"></a></li> <li id="li-nextcloud"> <a href="https://nextcloud.trygve.me/"></a></li>
</ul> </ul>
</div> </div>
</center>
</body> </body>
</html> </html>