Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
coffandro committed Oct 2, 2024
0 parents commit 478f061
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 0 deletions.
1 change: 1 addition & 0 deletions img/about.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="stylesheet.css">
<title>Katastrofe</title>
</head>
<body>
<div class="cardContainer">
<div class="card">
<p class="cardText"><b></b></p>
<img class="cardIcon" src="img/about.svg" alt="">
</div>
<div class="card">
<p class="cardText"><b></b></p>
<img class="cardIcon" src="img/star.svg" alt="">
</div>
<div class="card">
<p class="cardText"><b></b></p>
<img class="cardIcon" src="img/play.svg" alt="">
</div>
</div>
<div class="TextBody">
<p>LEOIMFEOMW</p>
<p>LEOIMFEOMW</p>
<p>LEOIMFEOMW</p>
<p>LEOIMFEOMW</p>
<p>LEOIMFEOMW</p>
<p>LEOIMFEOMW</p>
<p>LEOIMFEOMW</p>
</div>
</body>
</html>
102 changes: 102 additions & 0 deletions stylesheet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
body {
background-color: black;
color: white;
}

.card {
position: absolute;
border: 5px solid green;
color: green;
background-color: black;
border-radius: 20px;
width: 200px;
height: 300px;
flex: 1;
margin: 10px;
transition: transform 0.5s;
}

.cardIcon {
display: block;
margin-left: auto;
margin-right: auto;
width: 75px;
}
.cardText {
font-family: 'Courier New', Courier, monospace;
font-size: 45px;
margin-top: 45px;
margin-bottom: 45px;
text-align: center;
align-items: center;
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
}

.cardContainer {
display: flex;
background-color: black;
height: 100vh;
position: relative;
}

.card:nth-child(2) {
position: absolute;
left: 50%;
margin-left: -150px;
top: 2.5vh;
z-index: 3;
}

.card:nth-child(1) {
left: 50%;
margin-left: -265px;
top: 10vh;
transform: rotate(-25deg);
z-index: 2;
}

.card:nth-child(3) {
left: 50%;
margin-left: -35px;
top: 10vh;
transform: rotate(25deg);
}

.card:nth-child(2):hover {
transform: translate(0,-25px);
}

.card:nth-child(1):hover {
transform: translate(-75px,-25px);
}

.card:nth-child(3):hover {
transform: translate(75px,-25px);
}

.card:nth-child(1) .cardText b:after {
content: 'KAT';
}

.card:nth-child(1):hover .cardText b:after {
content: 'ABOUT';
}

.card:nth-child(2) .cardText b:after {
content: 'ASTR';
}

.card:nth-child(2):hover .cardText b:after {
content: 'GO DOWN';
}

.card:nth-child(3) .cardText b:after {
content: 'OFE';
}

.card:nth-child(3):hover .cardText b:after {
content: 'PLAY';
}

0 comments on commit 478f061

Please sign in to comment.