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>
<head>
<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="robots" content="none noarchive">
<link rel="shortcut icon" href="server-icon.png" type="image/x-icon">
@ -13,18 +13,12 @@
<div class="content">
<h1 class="address">mc.amalthea.one</h1>
<div class="address-desc">Java + Bedrock</div>
<table class="links">
<tbody>
<tr>
<td><a href="https://t.me/+1brxlMQR7kk5YzQy">Telegram chat</a></td>
<td style="text-align: right;"><a href="https://discord.gg/9adwzUt76M">Discord</a></td>
</tr>
<tr>
<td><a href="#">Support us</a></td>
<td style="text-align: right;"><a href="#">Server map</a></td>
</tr>
</tbody>
</table>
<div class="links">
<a href="https://t.me/+1brxlMQR7kk5YzQy">Telegram chat</a>
<a href="https://discord.gg/9adwzUt76M">Discord</a>
<a href="#">Support us</a>
<a href="#">Server map</a>
</div>
</div>
</div>
</body>

165
style.css
View File

@ -1,70 +1,95 @@
@font-face {
font-family: "PRegular";
src: url("8bitOperatorPlus8-Regular.ttf");
}
@font-face {
font-family: "PBold";
src: url("8bitOperatorPlus8-Bold.ttf"); /* see /license.txt */
}
::selection {
background-color: beige;
color: black;
}
body {
padding: 0px;
margin: 0px;
display: table;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: black;
color: beige;
text-shadow: 1px 1px black;
font-family: PRegular;
}
td {
padding: 10px;
}
a {
color: beige;
}
a:hover {
background-color: beige;
color: midnightblue;
}
a:focus-visible {
background-color: beige;
color: midnightblue;
outline: none;
}
.card {
display: table-cell;
vertical-align: middle;
}
.content {
padding: 20px 50px;
margin-left: auto;
margin-right: auto;
width: 400px;
background-color: midnightblue;
border: 5px solid beige;
}
.address {
text-align: center;
margin: 0px;
text-shadow: 3px 3px black;
font-family: PBold;
}
.address-desc {
text-align: center;
text-shadow: 2px 2px black;
font-size: 24px;
}
.links {
width: 100%;
margin: auto;
margin-top: 10px;
font-size: 24px;
}
@font-face {
font-family: "PRegular";
src: url("8bitOperatorPlus8-Regular.ttf");
}
@font-face {
font-family: "PBold";
src: url("8bitOperatorPlus8-Bold.ttf"); /* see /license.txt */
}
::selection {
background-color: beige;
color: black;
}
body {
display: flex;
align-items: center;
justify-content: center;
left: 0;
top: 0;
height: 100%;
width: 100%;
position: fixed;
background-color: black;
color: beige;
text-shadow: 1px 1px black;
font-family: PRegular;
}
@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 {
color: beige;
}
a:hover {
background-color: beige;
color: midnightblue;
}
a:focus-visible {
background-color: beige;
color: midnightblue;
outline: none;
}
.content {
padding: 20px 50px;
margin-left: auto;
margin-right: auto;
width: 400px;
background-color: midnightblue;
border: 5px solid beige;
}
.address {
text-align: center;
margin: 0px;
text-shadow: 3px 3px black;
font-family: PBold;
}
.address-desc {
text-align: center;
text-shadow: 2px 2px black;
font-size: 24px;
}
.links {
width: 100%;
margin: auto;
display: flex;
flex-wrap: wrap;
margin-top: 10px;
margin-bottom: 10px;
font-size: 24px;
justify-content: space-between;
}
.links > a {
margin: 10px;
}