mirror of
https://github.com/YouHaveTrouble/youhavetrouble.github.io.git
synced 2026-05-11 22:06:56 +00:00
new layout test
This commit is contained in:
+5
-86
@@ -13,97 +13,16 @@
|
|||||||
<meta property="og:image" content="https://youhavetrouble.me/img/avatar.png"/>
|
<meta property="og:image" content="https://youhavetrouble.me/img/avatar.png"/>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="stylesheet" href="reset.css">
|
||||||
<link rel="stylesheet" href="main.css">
|
<link rel="stylesheet" href="main.css">
|
||||||
<link rel="icon" href="/favicon.ico"/>
|
<link rel="icon" href="/favicon.ico"/>
|
||||||
<script src="index.js" defer></script>
|
<script src="index.js" defer></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<nav>
|
||||||
|
<a href="#" class="active">Home</a>
|
||||||
|
<a href="#projects">Projects</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
<header>
|
|
||||||
<div class="avatar"><img draggable="false" src="img/avatar.png" alt="YouHaveTrouble's avatar by PikachuTurnip"></div>
|
|
||||||
<div class="status">
|
|
||||||
<p id="status">Online status unknown</p>
|
|
||||||
<p id="status-action"></p>
|
|
||||||
</div>
|
|
||||||
<div class="bio">
|
|
||||||
<p>
|
|
||||||
Hi! I'm Trouble, and I'm currently working as a fullstack developer. In my free time I enjoy working on my
|
|
||||||
side projects that mostly include programming. I'm extremely passionate about games and what goes into
|
|
||||||
creating them. I'm also "that one person" of every friend group that sets game servers up! Additionally,
|
|
||||||
I own and am slowly learning bass.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
<main>
|
|
||||||
<article>
|
|
||||||
<h1 id="projects">Featured Projects</h1>
|
|
||||||
<div class="projects">
|
|
||||||
<a href="https://yht.one/">
|
|
||||||
<article class="vertical-screen side-projects">
|
|
||||||
<div class="bg"></div>
|
|
||||||
<div class="logo">
|
|
||||||
<span class="small">YouHaveTrouble's</span>
|
|
||||||
<span class="big">Side Project Den</span>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h2>Side Project Den</h2>
|
|
||||||
<p>A list of my side projects</p>
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
</a>
|
|
||||||
<a href="https://purpurmc.org/">
|
|
||||||
<article class="vertical-screen purpur">
|
|
||||||
<div class="bg"></div>
|
|
||||||
<div class="logo">
|
|
||||||
<img src="img/purpur.svg" alt="" draggable="false">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h2>Purpur</h2>
|
|
||||||
<p>Minecraft server software</p>
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
<article>
|
|
||||||
<h1>Socials</h1>
|
|
||||||
<div class="flex-row">
|
|
||||||
<a href="https://github.com/YouHaveTrouble" class="icon-square">
|
|
||||||
<img src="img/icon/github.svg" alt="GitHub" loading="lazy"/>
|
|
||||||
<span>GitHub</span>
|
|
||||||
</a>
|
|
||||||
<a href="https://discord.gg/j8KK5dGBps" class="icon-square">
|
|
||||||
<img src="img/icon/discord.svg" alt="Discord" loading="lazy"/>
|
|
||||||
<span>Discord</span>
|
|
||||||
</a>
|
|
||||||
<a href="https://ko-fi.com/youhavetrouble" class="icon-square">
|
|
||||||
<img src="img/icon/kofi.svg" alt="Ko-fi" loading="lazy"/>
|
|
||||||
<span>Ko-fi</span>
|
|
||||||
</a>
|
|
||||||
<a href="https://steamcommunity.com/id/YouHavetrouble" class="icon-square">
|
|
||||||
<img src="img/icon/steam.svg" alt="Steam" loading="lazy"/>
|
|
||||||
<span>Steam</span>
|
|
||||||
</a>
|
|
||||||
<a href="https://www.youtube.com/@YouHaveTrouble" class="icon-square">
|
|
||||||
<img src="img/icon/youtube.svg" alt="YouTube" loading="lazy"/>
|
|
||||||
<span>YouTube</span>
|
|
||||||
</a>
|
|
||||||
<a href="https://modrinth.com/user/YouHaveTrouble" class="icon-square">
|
|
||||||
<img src="img/icon/modrinth.svg" alt="Modrinth" loading="lazy"/>
|
|
||||||
<span>Modrinth</span>
|
|
||||||
</a>
|
|
||||||
<a href="https://wakatime.com/@YouHaveTrouble" class="icon-square">
|
|
||||||
<img src="img/icon/wakatime.svg" alt="Wakatime" loading="lazy"/>
|
|
||||||
<span>Wakatime</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<small>© Paweł "YouHaveTrouble" Michalewski</small>
|
|
||||||
</footer>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
const status = document.querySelector("#status");
|
|
||||||
const action = document.querySelector("#status-action");
|
|
||||||
const avatar = document.querySelector(".avatar");
|
|
||||||
|
|
||||||
updateStatus();
|
|
||||||
window.setInterval(updateStatus, 10000);
|
|
||||||
|
|
||||||
async function updateStatus() {
|
|
||||||
const result = await fetch("https://api.youhavetrouble.me/online");
|
|
||||||
|
|
||||||
if (result.status !== 200) return;
|
|
||||||
|
|
||||||
const json = await result.json();
|
|
||||||
switch (json.steam.status) {
|
|
||||||
case "ONLINE":
|
|
||||||
status.innerText = "Currently Online";
|
|
||||||
action.innerText = "";
|
|
||||||
setavatarBg("online")
|
|
||||||
return;
|
|
||||||
case "IN_GAME":
|
|
||||||
status.innerText = "Currently Online";
|
|
||||||
action.innerText = `Playing ${json.steam.game}`;
|
|
||||||
setavatarBg("online")
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (json.discord === "DO_NOT_DISTURB" || json.discord === "ONLINE") {
|
|
||||||
status.innerText = "Currently Online";
|
|
||||||
action.innerText = "";
|
|
||||||
setavatarBg("online")
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
status.innerText = "Currently Offline";
|
|
||||||
action.innerText = "";
|
|
||||||
setavatarBg("offline")
|
|
||||||
}
|
|
||||||
|
|
||||||
function setavatarBg(status) {
|
|
||||||
if (status === "online") {
|
|
||||||
avatar.style.backgroundColor = "#5a9a5a"
|
|
||||||
} else if (status === "offline") {
|
|
||||||
avatar.style.backgroundColor = "#a62d2d"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,302 +1,69 @@
|
|||||||
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
margin: 0;
|
--text-color: #cccccc;
|
||||||
padding: 0;
|
--text-color-highlight: #ffffff;
|
||||||
--max-width: 40rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-moz-selection {
|
|
||||||
background: rgba(255,255,255, 0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
::selection {
|
|
||||||
background: rgba(255,255,255, 0.2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
color: white;
|
color: var(--text-color);
|
||||||
background-size: cover;
|
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
|
||||||
background-color: rgba(16, 16, 16, 0.7);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
justify-content: start;
|
||||||
align-items: center;
|
align-items: start;
|
||||||
gap: 1rem;
|
color: var(--text-color);
|
||||||
width: 100%;
|
|
||||||
min-height: 100vh;
|
|
||||||
padding: 0;
|
|
||||||
background-image: url("img/bg.jpeg");
|
|
||||||
background-position: center;
|
|
||||||
background-attachment: fixed;
|
|
||||||
background-size: cover;
|
|
||||||
background-blend-mode: overlay;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
nav {
|
||||||
font-size: 0.6rem;
|
padding-block: 0.5rem;
|
||||||
}
|
background-color: #232323;
|
||||||
|
height: 100vh;
|
||||||
p, h1, h2, h3, h4, h5, h6 {
|
|
||||||
text-align: center;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
header {
|
|
||||||
padding-block: 2rem;
|
|
||||||
padding-inline: 1rem;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
position: sticky;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
nav a {
|
||||||
width: calc(100% - 2rem);
|
writing-mode: tb-rl;
|
||||||
max-width: var(--max-width);
|
transform: rotate(-180deg);
|
||||||
padding-inline: 1rem;
|
color: #cccccc;
|
||||||
display: flex;
|
transition: color 0.2s;
|
||||||
flex-direction: column;
|
padding-block: 0.2rem;
|
||||||
gap: 3rem;
|
padding-inline: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
main article {
|
nav a.active {
|
||||||
display: flex;
|
background-color: rgba(255,255,255, 0.1);
|
||||||
flex-direction: column;
|
color: var(--text-color-highlight);
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar {
|
nav a.active::after {
|
||||||
width: min(16rem, 100%);
|
opacity: 1;
|
||||||
height: min(16rem, 100%);
|
background-color: var(--text-color-highlight);
|
||||||
aspect-ratio: 1/1;
|
|
||||||
border-radius: 50%;
|
|
||||||
border: 3px solid #44251a;
|
|
||||||
background-color: gray;
|
|
||||||
overflow: clip;
|
|
||||||
transition: background-color 0.3s linear;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar img {
|
nav a::after {
|
||||||
width: 100%;
|
content: '';
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status {
|
|
||||||
max-width: var(--max-width);
|
|
||||||
width: min(100%, 16rem);
|
|
||||||
border: 2px solid #000;
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
background-color: rgba(0,0,0, 0.5);
|
|
||||||
backdrop-filter: blur(4px);
|
|
||||||
box-sizing: border-box;
|
|
||||||
min-height: 5rem;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status #status-action:empty {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bio {
|
|
||||||
padding: 1rem;
|
|
||||||
max-width: var(--max-width);
|
|
||||||
width: 100%;
|
|
||||||
border: 2px solid #000;
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
background-color: rgba(0,0,0, 0.5);
|
|
||||||
backdrop-filter: blur(4px);
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.projects {
|
|
||||||
text-align: center;
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-screen {
|
|
||||||
padding: 1rem;
|
|
||||||
border: 2px solid #000;
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
position: relative;
|
|
||||||
background-color: rgba(0,0,0, 0.5);
|
|
||||||
backdrop-filter: blur(4px);
|
|
||||||
box-sizing: border-box;
|
|
||||||
min-height: 20rem;
|
|
||||||
width: 12rem;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
text-decoration: none;
|
|
||||||
color: #fff;
|
|
||||||
transition: border-color 0.1s linear;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-screen:hover {
|
|
||||||
border-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-screen p {
|
|
||||||
font-size: 0.8rem;
|
|
||||||
color: rgba(255,255,255, 0.75);
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-screen .logo {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
opacity: 0.75;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 15rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-screen .bg {
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0.1rem;
|
||||||
width: 100%;
|
width: 1px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: -1;
|
background-color: var(--text-color);
|
||||||
overflow: hidden;
|
opacity: 0;
|
||||||
opacity: 0.075;
|
transition: opacity 0.2s;
|
||||||
transition: opacity 0.1s linear;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.vertical-screen:hover .bg {
|
nav a:hover {
|
||||||
opacity: 0.15;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vertical-screen.side-projects .bg {
|
nav a:hover::after {
|
||||||
background-image: url("img/board.jpeg");
|
|
||||||
background-position: center;
|
|
||||||
animation: pan-image-1 60s infinite alternate both ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-screen.side-projects .logo {
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
color: #cccccc;
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 15rem;
|
|
||||||
opacity: 0.75;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-screen.side-projects .logo .small {
|
|
||||||
font-size: 0.6rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-screen.side-projects .logo .big {
|
|
||||||
font-size: 1.3rem;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical-screen.purpur .bg {
|
|
||||||
background-image: url("img/minecraft-hobbit-hole.jpeg");
|
|
||||||
background-position: center;
|
|
||||||
animation: pan-image-2 90s infinite alternate both ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flex-row {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 1rem;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-square {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
flex-direction: column;
|
|
||||||
width: 6rem;
|
|
||||||
height: 6rem;
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
background-color: rgba(0,0,0, 0.4);
|
|
||||||
backdrop-filter: blur(4px);
|
|
||||||
box-sizing: border-box;
|
|
||||||
border: 2px solid #000;
|
|
||||||
transition: border 0.1s linear, background 0.1s linear;
|
|
||||||
padding: 1rem;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-square img {
|
|
||||||
width: 100%;
|
|
||||||
aspect-ratio: 1/1;
|
|
||||||
opacity: 0.8;
|
|
||||||
transition: opacity 0.1s linear, transform 0.1s linear;
|
|
||||||
transform: scale(0.8);
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-square:hover img {
|
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: scale(0.85);
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-square:hover {
|
|
||||||
border-color: #fff;
|
|
||||||
background-color: rgba(0,0,0, 0.6);
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes pan-image-1 {
|
|
||||||
0% {
|
|
||||||
background-position: 36% 42%;
|
|
||||||
}
|
|
||||||
25% {
|
|
||||||
background-position: 60% 84%;
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
background-position: 45% 60%;
|
|
||||||
}
|
|
||||||
75% {
|
|
||||||
background-position: 12% 20%;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background-position: 36% 42%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes pan-image-2 {
|
|
||||||
0% {
|
|
||||||
background-position: 0 0;
|
|
||||||
}
|
|
||||||
33% {
|
|
||||||
background-position: 56% 60%;
|
|
||||||
}
|
|
||||||
66% {
|
|
||||||
background-position: 77% 42%;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background-position: 0 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
:root {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-moz-selection {
|
||||||
|
background: rgba(255,255,255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background: rgba(255,255,255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
background-size: cover;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
background-color: rgba(16, 16, 16, 0.7);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 100vh;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 0.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
p, h1, h2, h3, h4, h5, h6 {
|
||||||
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user