ProxmoxAAS-Dashboard/index.html
Arthur Lu 15f14215d1 bad fix for responsive instance container
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-06 21:55:31 +00:00

77 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>tronnet - client</title>
<link rel="icon" href="images/favicon.svg" sizes="any" type="image/svg+xml">
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="css/button.css" type="text/css">
<script src="scripts/index.js" type="module"></script>
<script src="scripts/instance.js" type="module"></script>
<style>
@media screen and (min-width: 1000px) {
#instance-container {
display: grid;
grid-template-columns: auto auto auto auto auto 1fr auto;
column-gap: 2.5em;
align-items: center;
}
#instance-container-header * {
margin-top: 0px;
}
instance-obj {
display: contents;
}
instance-obj:after, instance-obj:first-of-type:before {
content: " ";
border-bottom: 1px solid var(--content-txt-color);
grid-column: 1 / span 8;
}
}
@media screen and (max-width: 1000px) {
#instance-container {
display: flex;
flex-direction: column;
}
#instance-container-header * {
display: none;
}
instance-obj {
display: grid;
grid-template-columns: auto auto auto 1fr;
gap: 20px;
padding-top: 20px;
padding-bottom: 20px;
border-bottom: 1px solid var(--content-txt-color);
}
instance-obj:first-of-type {
border-top: 1px solid var(--content-txt-color);
}
.btn-group {
grid-column: 3 / span 2;
}
}
</style>
</head>
<body>
<header>
<h1>tronnet</h1>
<hr>
<nav id="nav">
<a href="index.html" aria-current="true">Instances</a>
<a href="account.html">Account</a>
<a href="login.html">Logout</a>
</nav>
</header>
<main>
<h2>Instances</h2><hr>
<div id="instance-container">
</div>
<div class="center-div" style="text-align: center;">
<img id="instance-add" src="images/actions/instance/add-instance.svg" class="clickable" alt="Create New Instance" title="Create New Instance">
</div>
</main>
<footer><p>&copy; tronnet</p></footer>
</body>
</html>