Initial commit

This commit is contained in:
Eero Holmala 2022-09-12 11:17:09 +03:00
commit 5023ecb984
6 changed files with 67 additions and 0 deletions

BIN
bg1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 MiB

BIN
bg2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 MiB

21
index.html Normal file
View File

@ -0,0 +1,21 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Portfolio</title>
</head>
<body>
<div class="layer-2"></div>
<div class="layer-1">
<div class="card">
<h4>Title</h4>
<p>Content of the card.</p>
<div class="btn" type="button" >Click</div>
</div>
</div>
</body>
<script src="script.js"></script>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

1
script.js Normal file
View File

@ -0,0 +1 @@
// document.write("Test")

45
style.css Normal file
View File

@ -0,0 +1,45 @@
html {
background-image: url("bg1.jpg");
}
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
color: aliceblue;
}
.card {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 20vw;
border-color: black;
border-radius: 1em;
background: linear-gradient(90deg, rgba(28,212,82,0.8323530095632002) 3%, rgba(109, 236, 131, 0.747) 100%);
}
.card h4 {
height: 0.1vh;
}
.btn {
margin: 1em;
padding: 0.3em;
padding-left: 2em;
padding-right: 2em;
background-color: aliceblue;
border-radius: 0.2em;
background: linear-gradient(90deg, rgb(151, 255, 119) 0%, rgb(204, 255, 188) 30%, rgb(204, 255, 188) 60%, rgba(151, 255, 119,1) 100%);
color: black;
}
.btn:hover {
transition: 0.3s opacity ease-in-out;
cursor: pointer;
background: linear-gradient(90deg, rgb(151, 255, 119) 0%, rgb(234, 255, 228) 30%, rgb(234, 255, 228) 60%, rgba(151, 255, 119,1) 100%);
}