tools / style.css
sh20raj's picture
tried to blur background
20e78d0
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
margin: 0;
padding: 0;
}
body {
font-family: Poppins, sans-serif;
min-height: 100vh;
overflow-x: hidden;
}
.hidden {
display: none;
}
nav {
background: #19274d;
color: aliceblue;
justify-content: flex-end;
display: flex;
align-items: center;
}
nav h1 {
left: 0;
margin: 20px;
margin-right:auto ;
margin-top: 10px;
margin-bottom: 10px;
}
nav span, .hero-section span {
color: rgb(126, 194, 49);
}
nav ul {
display: flex;
justify-content: space-between;
/* border: 2px solid red; */
height: 4rem;
}
/* Nav */
nav ul li {
display: flex;
transition: all 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}
nav ul li a {
padding: 10px;
margin: 10px;
border: 2px;
background: #5582f3;
color: rgb(255, 255, 255);
text-decoration: none;
transition: all 0.3s linear;
border-bottom: 1px solid #5582f3;
}
nav ul li a:hover {
cursor: pointer;
background-color: rgba(234, 136, 208, 0.464);
border-bottom: 1px solid red;
}
.container {
color: aqua;
background-color: rgba(226, 159, 229, 0.321);
min-height: 100vh;
display: flex;
background: url(pic.avif) ;
background-repeat: no-repeat;
background-size: cover;
}
.container .hero-section h1 {
color: aliceblue;
font-size: 40px;
margin: 20px;
margin-left: 0;
}
.container .hero-section p {
color: rgb(205, 239, 184);
}
.container .hero-section {
/* background: red; */
width: 100%;
padding: 20px;
display: flex;
}
.container .hero-section .hero-container {
margin-top: 200px;
margin-left: 50px;
max-width: 50%;
/* background: url(repo.gif); */
background-repeat: no-repeat;
background-size: contain;
backdrop-filter: blur(2px);
height: fit-content;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.container .hero-section .hero-image{
width: 50%;
margin: auto;
flex-grow: 3;
}
@media (max-width:700px) {
nav {
display: inline-block;
width: 100%;
/* height: 100%; */
}
nav ul {
display: none;
position: absolute;
height: 100%;
background: #5582f3;
width: 50%;
z-index: 2;
padding-top: 50px;
transition: all 0.3s ease;
}
nav ul::before {
content: "";
position: absolute;
display: block;
width: 5000px;
height: 100vh;
background: rgba(255, 0, 0, 0);
backdrop-filter: blur(20px);
z-index: -1;
}
nav .active {
transition: all 0.3s ease;
display: inline-block;
}
nav ul li a {
width: 100%;
}
nav ul li a:hover {
background: #5582f39a;
}
.nav-close {
display: block;
float: right;
color: white;
font-weight: bold;
transition: all 0.3s ease;
cursor: pointer;
margin-right: 20px ;
}
.hiddenonmobile {
display: none;
}
}