mirror of
https://github.com/planetrenox/planetrenox.com.git
synced 2026-01-14 00:28:04 +00:00
Refactor: Add sidebar layout with logo in top-left
This commit is contained in:
70
index.html
70
index.html
@@ -5,40 +5,66 @@
|
|||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<title>Planet Renox</title>
|
<title>Planet Renox</title>
|
||||||
<style>
|
<style>
|
||||||
:root{--c1:#000;--c2:#0ff;--c3:#fff}
|
:root{--c1:#000;--c2:#666;--c3:#fff}
|
||||||
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
|
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
|
||||||
@keyframes blink{50%{opacity:0}}
|
@keyframes blink{50%{opacity:0}}
|
||||||
body{
|
body{
|
||||||
background:var(--c1);
|
background:var(--c1);
|
||||||
color:var(--c3);
|
color:var(--c3);
|
||||||
font-family:monospace;
|
font-family:monospace;
|
||||||
display:flex;
|
|
||||||
flex-direction:column;
|
|
||||||
align-items:center;
|
|
||||||
justify-content:center;
|
|
||||||
min-height:100vh;
|
min-height:100vh;
|
||||||
text-align:center;
|
|
||||||
padding:1rem
|
padding:1rem
|
||||||
}
|
}
|
||||||
h1{font-size:clamp(2rem,8vw,4rem);text-transform:lowercase;color:var(--c3)}
|
.logo{
|
||||||
h1 span{animation:blink 1s step-end infinite}
|
position:fixed;
|
||||||
main{display:flex;flex-direction:column;align-items:center;gap:2rem;width:100%}
|
top:1rem;
|
||||||
.widget-wrapper{max-width:646px;width:100%}
|
left:1rem;
|
||||||
iframe{width:100%;height:190px;border:0}
|
font-size:1rem;
|
||||||
|
color:var(--c3);
|
||||||
|
z-index:10
|
||||||
|
}
|
||||||
|
.logo span{animation:blink 1s step-end infinite}
|
||||||
|
.container{display:flex;gap:2rem;padding-top:3rem}
|
||||||
|
.sidebar{min-width:200px}
|
||||||
|
.sidebar a{
|
||||||
|
display:block;
|
||||||
|
color:var(--c3);
|
||||||
|
text-decoration:none;
|
||||||
|
padding:.5rem 0
|
||||||
|
}
|
||||||
|
.sidebar a:hover{background:var(--c2);color:var(--c1)}
|
||||||
|
main{flex:1}
|
||||||
|
h2{margin-bottom:1rem}
|
||||||
|
.widget-wrapper{margin-bottom:2rem}
|
||||||
|
iframe{width:100%;max-width:646px;height:190px;border:0}
|
||||||
footer{margin-top:2rem}
|
footer{margin-top:2rem}
|
||||||
a{color:var(--c3);text-decoration:none}
|
footer a{color:var(--c3);text-decoration:none}
|
||||||
a:hover{background:var(--c2);color:var(--c1)}
|
footer a:hover{background:var(--c2);color:var(--c1)}
|
||||||
|
::selection{background:var(--c2);color:var(--c1)}
|
||||||
|
@media(max-width:768px){
|
||||||
|
.container{flex-direction:column}
|
||||||
|
.sidebar{min-width:auto}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<div class="logo">planetrenox<span>_</span></div>
|
||||||
<h1>planetrenox<span>_</span></h1>
|
<div class="container">
|
||||||
<div class="widget-wrapper">
|
<aside class="sidebar">
|
||||||
<iframe src="https://store.steampowered.com/widget/1745790/"></iframe>
|
<a href="https://lynchmark.com" target="_blank" rel="noopener noreferrer">Lynchmark</a>
|
||||||
</div>
|
<a href="https://github.com/planetrenox/inzerosight" target="_blank" rel="noopener noreferrer">inzerosight</a>
|
||||||
<footer>
|
</aside>
|
||||||
<a href="https://github.com/planetrenox" target="_blank" rel="noopener noreferrer">> GITHUB</a>
|
<main>
|
||||||
</footer>
|
<section>
|
||||||
</main>
|
<h2>Games</h2>
|
||||||
|
<div class="widget-wrapper">
|
||||||
|
<iframe src="https://store.steampowered.com/widget/1745790/"></iframe>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<footer>
|
||||||
|
<a href="https://github.com/planetrenox" target="_blank" rel="noopener noreferrer">> GITHUB</a>
|
||||||
|
</footer>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user