Glass card
This commit is contained in:
parent
5023ecb984
commit
d5ba60a95d
15
index.html
15
index.html
@ -7,15 +7,16 @@
|
|||||||
<title>Portfolio</title>
|
<title>Portfolio</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="layer-2"></div>
|
<div class="container">
|
||||||
<div class="layer-1">
|
<div class="layer-2"></div>
|
||||||
<div class="card">
|
<div class="layer-1">
|
||||||
<h4>Title</h4>
|
<div class="card">
|
||||||
<p>Content of the card.</p>
|
<h4>Title</h4>
|
||||||
<div class="btn" type="button" >Click</div>
|
<p>Content of the card.</p>
|
||||||
|
<div class="btn" type="button" >Click</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
</html>
|
</html>
|
||||||
29
style.css
29
style.css
@ -1,28 +1,39 @@
|
|||||||
html {
|
/* html {
|
||||||
background-image: url("bg1.jpg");
|
|
||||||
}
|
} */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
background-image: url("bg2.jpg");
|
||||||
|
/* background-position: 0vw 100vh; */
|
||||||
|
background-position: 0vw 0vh;
|
||||||
|
background-repeat: no-repeat; /* Do not repeat the image */
|
||||||
|
background-size: auto; /* Resize the background image to cover the entire container */
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
color: aliceblue;
|
color: rgb(225, 225, 225);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.container .card {
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 20vw;
|
width: 20vw;
|
||||||
|
padding: 0em 1em 0 1em;
|
||||||
|
min-width: fit-content;
|
||||||
border-color: black;
|
border-color: black;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
background: linear-gradient(90deg, rgba(28,212,82,0.8323530095632002) 3%, rgba(109, 236, 131, 0.747) 100%);
|
border-top: 1px solid rgba(255,255,255, 0.5);
|
||||||
|
border-left: 1px solid rgba(255,255,255, 0.5);
|
||||||
|
backdrop-filter: blur(5px);
|
||||||
|
/* background: linear-gradient(90deg, rgba(28,212,82,0.8323530095632002) 3%, rgba(109, 236, 131, 0.747) 100%); */
|
||||||
|
box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card h4 {
|
.container .card h4 {
|
||||||
height: 0.1vh;
|
height: 0.1vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,7 +45,7 @@ body {
|
|||||||
background-color: aliceblue;
|
background-color: aliceblue;
|
||||||
border-radius: 0.2em;
|
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%);
|
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;
|
color: rgb(32, 0, 19);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover {
|
.btn:hover {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user