Skip to content

Commit

Permalink
Finish homepage for desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlostorto committed Oct 30, 2023
1 parent e114442 commit 562caad
Show file tree
Hide file tree
Showing 21 changed files with 147 additions and 10 deletions.
Binary file removed gallery/home/1.jpg
Binary file not shown.
Binary file removed gallery/home/2.jpg
Binary file not shown.
Binary file removed gallery/home/3.jpg
Binary file not shown.
Binary file removed gallery/home/4.jpg
Binary file not shown.
Binary file added gallery/home/architecture/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/architecture/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/architecture/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/architecture/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/architecture/original1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/architecture/original2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/architecture/original3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/architecture/original4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/nature/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/nature/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/nature/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/nature/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/people/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/people/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/people/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gallery/home/people/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
157 changes: 147 additions & 10 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,32 +77,147 @@
font-weight: 300;
}

main #side-text p {
main #side-text #theme-overflow {
font-family: "Quicksand", sans-serif;
font-size: 1.5rem;
margin-top: 0.3rem;
margin-left: 10rem;
}

#theme-overflow {
overflow: hidden;
height: 2.8rem;
padding: 0.1rem 1rem;
border: solid var(--accent) 2px;
}

main #gallery {
#theme-container p {
height: 2.5rem;
margin-bottom: 2.5rem;
display: inline-block;
}

#theme-container p:first-child {
animation: text-animation 20s infinite;
}

@keyframes text-animation {
0% {margin-top: 0;}
16% {margin-top: 0;}
21% {margin-top: -5rem;}
37% {margin-top: -5rem;}
42% {margin-top: -10rem;}
58% {margin-top: -10rem;}
63% {margin-top: -5rem;}
79% {margin-top: -5rem;}
84% {margin-top: 0;}
100% {margin-top: 0;}
}

@keyframes top-left-animation {
0% {left: 0;}
16% {left: 0;}
21% {left: 100%;}
37% {left: 100%;}
42% {left: 200%;}
58% {left: 200%;}
63% {left: 100%;}
79% {left: 100%;}
84% {left: 0;}
100% {left: 0;}
}

@keyframes top-right-animation {
0% {top: 0;}
16% {top: 0;}
21% {top: 100%;}
37% {top: 100%;}
42% {top: 200%;}
58% {top: 200%;}
63% {top: 100%;}
79% {top: 100%;}
84% {top: 0;}
100% {top: 0;}
}

@keyframes bottom-left-animation {
0% {top: 0;}
16% {top: 0;}
21% {top: -100%;}
37% {top: -100%;}
42% {top: -200%;}
58% {top: -200%;}
63% {top: -100%;}
79% {top: -100%;}
84% {top: 0;}
100% {top: 0;}
}

@keyframes bottom-right-animation {
0% {left: 0;}
16% {left: 0;}
21% {left: -100%;}
37% {left: -100%;}
42% {left: -200%;}
58% {left: -200%;}
63% {left: -100%;}
79% {left: -100%;}
84% {left: 0;}
100% {left: 0;}
}

#gallery {
height: 100%;
width: 70%;
display: grid;
grid-template-columns: 1fr 1.8fr 1fr; /* 3 columns with equal width */
grid-template-rows: 1fr 1fr; /* 2 rows with equal height */
grid-gap: 10px; /* Add a gap between grid items */
grid-gap: 1rem; /* Add a gap between grid items */
}

main #gallery img {
#gallery .images-container {
display: flex;
overflow: hidden;
width: 100%; /* Ensure the image takes up the available space */
height: 100%;
}

#gallery .images-container img {
min-height: 100%;
min-width: 100%;
object-fit: cover;
}

main #gallery .large {
#gallery .images-container.top-left {
flex-direction: row-reverse;
}

#gallery .images-container.top-right {
flex-direction: column-reverse;
}

#gallery .images-container.top-left img {
position: relative;
animation: top-left-animation 20s infinite;
}

#gallery .images-container.top-right img {
position: relative;
animation: top-right-animation 20s infinite;
}

#gallery .images-container.bottom-left img {
position: relative;
animation: bottom-left-animation 20s infinite;
}

#gallery .images-container.bottom-right img {
position: relative;
animation: bottom-right-animation 20s infinite;
flex-direction: row-reverse;
}

#gallery .large {
grid-column: span 2;
}

Expand All @@ -113,13 +228,35 @@
<div id="side-text" class="d-flex flex-column align-items-center justify-content-center">
<h2>PHOTOGRAPHY</h2>
<h1>what I do</h1>
<p>nature</p>
<div id="theme-overflow">
<div id="theme-container" class="d-flex flex-column text-center position-relative">
<p>architecture</p>
<p>nature</p>
<p>people</p>
</div>
</div>
</div>
<section id="gallery">
<img src="./gallery/home/1.jpg" alt="">
<img class="large" src="./gallery/home/2.jpg" alt="">
<img class="large" src="./gallery/home/3.jpg" alt="">
<img src="./gallery/home/4.jpg" alt="">
<div class="images-container top-left">
<img src="./gallery/home/architecture/1.jpg" alt="">
<img src="./gallery/home/nature/1.jpg" alt="">
<img src="./gallery/home/people/1.jpg" alt="">
</div>
<div class="images-container large top-right">
<img src="./gallery/home/architecture/2.jpg" alt="">
<img src="./gallery/home/nature/2.jpg" alt="">
<img src="./gallery/home/people/2.jpg" alt="">
</div>
<div class="images-container large bottom-left flex-column">
<img src="./gallery/home/architecture/3.jpg" alt="">
<img src="./gallery/home/nature/3.jpg" alt="">
<img src="./gallery/home/people/3.jpg" alt="">
</div>
<div class="images-container bottom-right">
<img src="./gallery/home/architecture/4.jpg" alt="">
<img src="./gallery/home/nature/4.jpg" alt="">
<img src="./gallery/home/people/4.jpg" alt="">
</div>
</section>
</main>

Expand Down

0 comments on commit 562caad

Please sign in to comment.