Make links box as flex box

This commit is contained in:
ChronosX88 2022-01-09 18:28:10 +03:00
parent 8d3984c9e6
commit 37ea2122b0
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
2 changed files with 102 additions and 83 deletions

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Amalthea</title> <title>Amalthea</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="color-scheme" content="dark"> <meta name="color-scheme" content="dark">
<meta name="robots" content="none noarchive"> <meta name="robots" content="none noarchive">
<link rel="shortcut icon" href="server-icon.png" type="image/x-icon"> <link rel="shortcut icon" href="server-icon.png" type="image/x-icon">
@ -13,18 +13,12 @@
<div class="content"> <div class="content">
<h1 class="address">mc.amalthea.one</h1> <h1 class="address">mc.amalthea.one</h1>
<div class="address-desc">Java + Bedrock</div> <div class="address-desc">Java + Bedrock</div>
<table class="links"> <div class="links">
<tbody> <a href="https://t.me/+1brxlMQR7kk5YzQy">Telegram chat</a>
<tr> <a href="https://discord.gg/9adwzUt76M">Discord</a>
<td><a href="https://t.me/+1brxlMQR7kk5YzQy">Telegram chat</a></td> <a href="#">Support us</a>
<td style="text-align: right;"><a href="https://discord.gg/9adwzUt76M">Discord</a></td> <a href="#">Server map</a>
</tr> </div>
<tr>
<td><a href="#">Support us</a></td>
<td style="text-align: right;"><a href="#">Server map</a></td>
</tr>
</tbody>
</table>
</div> </div>
</div> </div>
</body> </body>

View File

@ -10,23 +10,43 @@
background-color: beige; background-color: beige;
color: black; color: black;
} }
body { body {
padding: 0px; display: flex;
margin: 0px; align-items: center;
display: table; justify-content: center;
position: absolute;
top: 0;
left: 0; left: 0;
top: 0;
height: 100%; height: 100%;
width: 100%; width: 100%;
position: fixed;
background-color: black; background-color: black;
color: beige; color: beige;
text-shadow: 1px 1px black; text-shadow: 1px 1px black;
font-family: PRegular; font-family: PRegular;
} }
td {
padding: 10px; @media only screen and (max-width: 768px) {
.content {
width: 100vw;
} }
.address {
font-size: 160%;
}
.address-desc {
font-size: 140%;
}
.links {
margin-top: 10px;
font-size: 140%;
}
}
a { a {
color: beige; color: beige;
} }
@ -39,10 +59,7 @@ a:focus-visible {
color: midnightblue; color: midnightblue;
outline: none; outline: none;
} }
.card {
display: table-cell;
vertical-align: middle;
}
.content { .content {
padding: 20px 50px; padding: 20px 50px;
margin-left: auto; margin-left: auto;
@ -65,6 +82,14 @@ a:focus-visible {
.links { .links {
width: 100%; width: 100%;
margin: auto; margin: auto;
display: flex;
flex-wrap: wrap;
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px;
font-size: 24px; font-size: 24px;
justify-content: space-between;
}
.links > a {
margin: 10px;
} }