Basic stuff
commit
9f3619d6f4
@ -0,0 +1,23 @@
|
||||
function copyToClipboard(elementId) {
|
||||
|
||||
/* Get the text field */
|
||||
var copyText = document.getElementById(elementId);
|
||||
|
||||
/* Select the text field */
|
||||
copyText = copyText.textContent;
|
||||
|
||||
/* Copy the text inside the text field */
|
||||
navigator.clipboard.writeText(copyText);
|
||||
|
||||
var tooltip = document.getElementById("myTooltip");
|
||||
tooltip.innerHTML = "Copied";
|
||||
|
||||
}
|
||||
|
||||
function resetCopy() {
|
||||
|
||||
var tooltip = document.getElementById("myTooltip");
|
||||
tooltip.innerHTML = "Copy to clipboard";
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
@ -0,0 +1,106 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>aNetwork</title>
|
||||
<meta name="description" content="The home for a network of game servers, and a community of gamers.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="stylesheet" href="main.css">
|
||||
<script src="clipboard.js"></script>
|
||||
|
||||
<meta name="theme-color" content="#fafafa">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="layout-wrapper">
|
||||
<span class="logo">aNetwork</span>
|
||||
<nav>
|
||||
<ul class="inline-list">
|
||||
<li><a href="/">Home</a></li>
|
||||
<!--<li><a href="#">Servers</a></li>
|
||||
<li><a href="#">About</a></li>-->
|
||||
<li><a href="/discord">Discord</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="home-servers layout-wrapper">
|
||||
|
||||
<div class="home-server home-server-uno">
|
||||
<div class="content">
|
||||
<p class="heading">Want more servers?</p>
|
||||
<p class="content">
|
||||
Let the secretaries know over in aNetwork <a href="/discord" target="_blank">Discord's</a> #moar-servers channel. If there's enough want, we'll set it up.
|
||||
</p>
|
||||
<a class="button" href="/discord" target="_blank">Join Discord</a>
|
||||
</div>
|
||||
|
||||
<img class="centre-image" src="moo-cow.gif"/>
|
||||
</div>
|
||||
|
||||
<div class="home-server home-server--discord">
|
||||
<a href="/discord"><img class="centre-image" src="discord.png"/></a>
|
||||
<p class="heading">Discord</p>
|
||||
<p class="content">
|
||||
We are a toxic community
|
||||
</p>
|
||||
<a class="button" href="/discord">Join</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="home-server home-server--minecraft">
|
||||
<img class="centre-image" src="mc.png"/>
|
||||
<p class="heading">MC</p>
|
||||
<p class="content">
|
||||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis.
|
||||
</p>
|
||||
<p onclick="copyToClipboard('minecraft-server')" onmouseout="resetCopy()" class="tooltipped">
|
||||
IP:
|
||||
<span id="minecraft-server" class="clipboard" href="#">minecraft.anetwork.uk</span>
|
||||
<span class="tooltiptext" id="myTooltip">Copy to clipboard</span>
|
||||
</p>
|
||||
<p>Map: <a href="https://mcmap.anetwork.uk">mcmap.anetwork.uk</a></p>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="moar">
|
||||
<div class="layout-wrapper">
|
||||
<img class="centre-image" src="moo-cow.gif"/>
|
||||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibu</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="extra">
|
||||
<div class="layout-wrapper">
|
||||
<h2>YEEE HAAAWWW</h2>
|
||||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div class="layout-wrapper">
|
||||
|
||||
<div class="footer__column">
|
||||
<p>Games</p>
|
||||
<p><a href="/">Minecraft</a></p>
|
||||
</div>
|
||||
<div class="footer__column">
|
||||
<p>Community</p>
|
||||
</div>
|
||||
|
||||
<div class="sub-footer">
|
||||
<p>© aNetwork | Website by <a href="https://aney.co.uk" target="_blank" rel="noopener noreferrer">Aney</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@ -0,0 +1,185 @@
|
||||
/*
|
||||
320, 375, 425, 768, 1024, 1440, 2560
|
||||
*/
|
||||
html{
|
||||
box-sizing: border-box;
|
||||
color: #1A1A1D;
|
||||
}
|
||||
body{
|
||||
margin: 0;
|
||||
}
|
||||
*, *::before, *::after{
|
||||
box-sizing: inherit;
|
||||
}
|
||||
img{
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.layout-wrapper{
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
padding: 24px;
|
||||
}
|
||||
header{
|
||||
background-color: #C2CAD0;
|
||||
}
|
||||
header .layout-wrapper{
|
||||
display: flex;
|
||||
}
|
||||
.logo{
|
||||
flex: 1 0 64px;
|
||||
}
|
||||
.logo, nav{
|
||||
display: inline-block;
|
||||
}
|
||||
.home-servers{
|
||||
display: grid;
|
||||
margin: 0 auto;
|
||||
gap: 20px;
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
|
||||
}
|
||||
.home-server{
|
||||
text-align: center;
|
||||
min-height: 200px;
|
||||
background-color: #6BA8D7;
|
||||
border-radius: 24px;
|
||||
padding: 24px;
|
||||
}
|
||||
.home-server .button{
|
||||
margin-top: 16px;
|
||||
display: inline-block;
|
||||
}
|
||||
.home-server-uno{
|
||||
text-align: center;
|
||||
|
||||
display: flex;
|
||||
row-gap: 24px;
|
||||
column-gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.home-server-uno img{
|
||||
width: 100%;
|
||||
max-width: 224px;
|
||||
height: auto;
|
||||
}
|
||||
.home-server--minecraft{
|
||||
background-color: lightgreen;
|
||||
color: green;
|
||||
}
|
||||
.home-server--discord{
|
||||
background-color: mediumpurple;
|
||||
color: blueviolet;
|
||||
}
|
||||
.home-server .heading{
|
||||
font-size: 1.875rem;
|
||||
margin: 0.5rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
.home-server--minecraft .heading{
|
||||
color: darkgreen;
|
||||
}
|
||||
.home-server--discord .heading{
|
||||
color: purple;
|
||||
}
|
||||
.centre-image{
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.button{
|
||||
padding: 12px;
|
||||
border-radius: 12px;
|
||||
color: black;
|
||||
background-color: lightblue;
|
||||
}
|
||||
|
||||
.clipboard{
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
}
|
||||
.clipboard:hover{
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tooltipped {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tooltipped .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
max-width: 200px;
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 12px;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: 150%;
|
||||
left: 50%;
|
||||
margin-left: -75px;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.tooltipped .tooltiptext::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
border-width: 5px;
|
||||
border-style: solid;
|
||||
border-color: #555 transparent transparent transparent;
|
||||
}
|
||||
|
||||
.tooltipped:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.moar{
|
||||
background-color: #97CAEF;
|
||||
}
|
||||
footer{
|
||||
background-color: #1A1A1D;
|
||||
color: white;
|
||||
}
|
||||
.inline-list{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.inline-list li{
|
||||
display: inline-block;
|
||||
list-style-type: none;
|
||||
}
|
||||
.inline-list li a{
|
||||
text-decoration: none;
|
||||
}
|
||||
.content{
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@media (min-width: 375px){
|
||||
.home-servers{
|
||||
grid-template-columns: repeat(auto-fill, 1fr);
|
||||
}
|
||||
.home-server-uno div{
|
||||
flex: 1 0 200px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px){
|
||||
.home-servers{
|
||||
grid-template-columns: repeat(auto-fill, minmax(312px, 1fr));
|
||||
}
|
||||
.home-server-uno{
|
||||
/* Use two grid spaces on tablet+ */
|
||||
grid-column-start: 1;
|
||||
grid-column-end: 3;
|
||||
}
|
||||
.home-server-uno div{
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Loading…
Reference in New Issue