Compare commits

...

6 commits

Author SHA1 Message Date
Michael Rodin 441e4781de PHP 2024-06-13 13:15:47 +02:00
Michael Rodin b125f86fa9 White box not centering 2024-05-16 16:35:47 +02:00
Michael Rodin cae4cc03fb White box at least box 2024-05-16 01:04:18 +02:00
Michael Rodin 0f33db1175 Added PeerTube as tile 2024-05-16 01:01:59 +02:00
Michael Rodin d8c6c2036f Added viewport stuff 2024-04-23 18:15:52 +02:00
Michael Rodin e83758fc07 Added Uptime Kuma 2024-04-22 13:45:28 +02:00
4 changed files with 62 additions and 23 deletions

View file

@ -8,6 +8,8 @@
}
body {
position: relative;
min-height: 100em;
padding: 0;
margin: 0;
font-family: Roboto;
@ -42,6 +44,7 @@ main > p {
#links-container {
justify-content: center;
display: flex;
flex-flow: row wrap;
width: 100%;
}
@ -63,7 +66,7 @@ div.item > a {
}
div.item:hover {
animation:hover 0.2s forwards;
animation: hover 0.2s forwards;
}
@keyframes hover {
@ -73,30 +76,42 @@ div.item:hover {
img.item {
height: inherit;
margin: 0 auto;
}
div.image {
border-radius: 15pt;
height: 58pt;
width: auto;
display: inline-block;
min-width: 58pt;
display: block;
width: fit-content;
padding: 5pt;
margin: 12pt 10pt 12pt 12pt;
text-align: center;
background: white;
}
div.desc {
margin: auto 6pt auto 0;
text-align: center;
font-weight: 700;
font-size:15pt;
font-weight: 800;
font-size: 14pt;
}
footer {
position: fixed;
display: flex;
left: 0;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 10em;
border-top: grey 1px solid;
display: flex;
justify-content: center;
align-items: center;
}
@media screen and (max-width: 600px) {
div.item {
width: 70%;
}
}

View file

@ -2,9 +2,17 @@
<html>
<?php
$title = "Marcel's Homepage";
$services = [
array("name" => "authentik","displayname" => "Authentik", "link" => "https://auth.marcelsite.com", "image" => "/static/authentik.svg"),
array("name" => "uptime-kuma","displayname" => "Uptime Kuma", "link" => "https://status.marcelsite.com", "image" => "/static/uptime-kuma.svg"),
array("name" => "forgejo","displayname" => "Forgejo", "link" => "https://git.marcelsite.com", "image" => "/static/forgejo.svg"),
array("name" => "peertube","displayname" => "Peertube", "link" => "https://peertube.marcelsite.com", "image" => "/static/peertube.svg"),
array("name" => "element","displayname" => "Matrix (Element)", "link" => "https://element.marcelsite.com", "image" => "/static/element.svg"),
];
?>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/base.css" type="text/css">
<title> <?php echo $title; ?> </title>
</head>
@ -13,26 +21,25 @@ $title = "Marcel's Homepage";
<header id="topbar" class="darkerbar"><h1><?php echo $title; ?></h1> </header>
<main>
<div id="links-container">
<div class="item" id="authentik">
<div class="image"><img class="item" src="static/authentik.svg"></div><div class="desc">authentik</div>
<a href="https://auth.marcelsite.com"></a>
</div>
<div class="item" id="forgejo">
<div class="image"><img class="item" src="static/forgejo.svg"></div><div class="desc">Forgejo</div>
<a href="https://git.marcelsite.com"></a>
</div>
<div class="item" id="element">
<div class="image"><img class="item" src="static/element.svg"></div><div class="desc">Matrix (Element)</div>
<a href="https://element.marcelsite.com"></a>
</div>
</div>
<p>
You've reached my realm. Now look around or leave.
</p>
<div id="links-container">
<?php
foreach ($services as $service) {
echo " <div class='item' id='$service[name]'>";
echo " <div class='image'><img class='item' alt='logo' src='$service[image]'></div><div class='desc'>$service[displayname]</div>";
echo " <a href='$service[link]'></a>";
echo " </div>";
}
?>
</div>
</main>
<footer id="bottombar" class="darkerbar"> </footer>
<footer id="bottombar" class="darkerbar">
Footer currently completely empty.
</footer>
</body>
</html>

8
root/static/peertube.svg Normal file
View file

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="2799 -911 16 22">
<g>
<path fill="#211f20" d="M2799-911v11l8-5" />
<path fill="#737373" d="M2799-900v11l8-6" />
<path fill="#f1680d" d="M2807-905v10l8-5" />
<path fill="transparent" d="M2807-895v-10l-8 5z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 290 B

View file

@ -0,0 +1,9 @@
<svg width="640" height="640" viewBox="0 0 640 640" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(1 0 0 1 320 320)">
<linearGradient id="S3" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1 0 0 1 -319.99875 -320.0001577393)" x1="259.78" y1="261.15" x2="463.85" y2="456.49">
<stop stop-color="#5CDD8B"/>
<stop offset="1" stop-color="#86E6A9"/>
</linearGradient>
<path style="stroke: rgb(242,242,242); stroke-opacity: 0.51; stroke-width: 200; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: url(#S3); fill-rule: nonzero; opacity: 1;" transform=" translate(0, 0)" d="M 170.40125 -84.36016 C 224.09125 38.37984 224.09125 115.33984 170.40125 146.49984 C 89.85125000000001 193.23984000000002 -120.03875 207.48984000000002 -180.45875 135.63984 C -220.73875 87.73983999999999 -220.73875 14.399839999999998 -180.45875 -84.36016000000001 C -139.49875 -151.82016 -81.28875000000001 -185.55016 -5.828750000000014 -185.55016 C 69.64124999999999 -185.55016 128.38125 -151.82016000000002 170.40124999999998 -84.36016000000001 z" stroke-linecap="round" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB