Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshvardhan-Patidar authored Oct 15, 2023
1 parent 2066600 commit 1229356
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 0 deletions.
104 changes: 104 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
@import url("https://fonts.googleapis.com/css2?family=Bodon+Moda:opsz,[email protected],400;6..96,900&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Bodoni Moda", serif;
font-size: 1.2rem;
}
.container {
height: 100vh;
display: flex;
justify-content: space-evenly;
align-items: center;
gap: 20px;
background: linear-gradient(to right, #041308, #0b3317);
}
.text {
flex-basis: 30%;
}
.heading {
font-size: 3rem;
color: white;
text-align: center;
}
.subheading {
color: #ddd;
margin-top: 10px;
text-align: center;
}
.gallery {
flex-basis: 50%;
display: grid;
gap: 5px;
grid-template-columns: 1fr 1fr 1fr;
grid-auto-rows: 120px;
}
.box {
background-size: cover;
background-position: top;
color: white;
display: flex;
justify-content: center;
align-items: center;
background-color: #222;
background-blend-mode: hard-light;
transition: all 1s ease-in-out;
cursor: pointer;
}
#box-1{
grid-row: span 2;
}
#box-2{
grid-column: span 2;
}
#box-4{
grid-row: span 2;
}
#box-5{
grid-column: span 2;
}
#box-7{
grid-column: span 2;
}
.box:hover{
background-color: #999999d8;
background-position: center;
box-shadow: 0 0 4px #fff;
}

/* media queries */

@media screen and (max-width: 1024px){
.container{
height: 100%;
flex-direction: column;
padding-block: 20px;
}
.text{
padding-top: 20px;
padding-bottom: 20px;
}
.gallery{
width: 100%;
padding-inline: 20px;
grid-auto-rows: 220px;
}
}

@media screen and (max-width: 412px){
.container{
flex-direction: column;
padding-block: 20px;
}
.gallery{
width: 100%;
padding-inline: 12px;
}
.box{
grid-column: span 3;
grid-row: span 1;
}
}
26 changes: 26 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="gallery.css">
</head>
<body>
<div class="container">
<div class="text">
<h2 class="heading">My Portfolio</h2>
<p class="subheading">Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni delectus odit minima beatae expedita possimus in aliquam pariatur, sunt fuga.</p>
</div>
<div class="gallery">
<div class="box" id="box-1" style="background-image: url(https://images.unsplash.com/photo-1440589473619-3cde28941638?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80);">cutest</div>
<div class="box" id="box-2" style="background-image: url(https://images.unsplash.com/photo-1543466835-00a7907e9de1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80);">Dog</div>
<div class="box" id="box-3" style="background-image: url(https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80);">Mountain</div>
<div class="box" id="box-4" style="background-image: url(https://images.unsplash.com/photo-1630305130588-0e08d0d6965e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80);">Baby</div>
<div class="box" id="box-5" style="background-image: url(https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80);">Horse</div>
<div class="box" id="box-6" style="background-image: url(https://images.unsplash.com/photo-1527153857715-3908f2bae5e8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1988&q=80);">Cow</div>
<div class="box" id="box-7" style="background-image: url(https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2074&q=80);">Nature</div>
</div>
</div>
</body>
</html>

0 comments on commit 1229356

Please sign in to comment.