Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
Signed-off-by: Jack <[email protected]>
  • Loading branch information
Jack5316 authored Nov 5, 2024
1 parent 1c10e9b commit 128273e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions _includes/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
<img src="/images/IMG_0040.jpeg" alt="Banner Image">

<style>
.banner {
width: 50%;
height: 50vh; /* Full viewport height */
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
/* Center the container and set a max width */
.container {
max-width: 900px; /* Adjust as needed */
margin: 0 auto;
padding: 0 20px; /* Optional: adds padding on the sides */
}

/* Ensure the banner image spans the full width of the container */
.banner img {
width: 50%;
width: 100%;
height: auto;
object-fit: cover;
display: block;
}
</style>

0 comments on commit 128273e

Please sign in to comment.