Skip to content

Commit

Permalink
Add new image, add more complex bootstrap layout to create hero image…
Browse files Browse the repository at this point in the history
…, intro and side bar. Delete nav bar.
  • Loading branch information
MadeleineWalder committed May 15, 2024
1 parent f031dd4 commit 966910b
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 41 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# In-Japan

Welcome to my Japam Blog!
Click here to view the live site:

## Click here to view the live site: https://madeleinewalder.github.io/In-Japan/

## Local Hosting

python -m http.server
Enter in terminal: ```python -m http.server```

<!--Hero image-->
<div class="hero justify-content-center">
<!--Contrast overlay with title-->
<div class="colour-overlay d-flex justify-content-center align-items-center">
<h1>Japan: Small Things Big Difference</h1>
</div>
</div>
Binary file removed cherry-blossom.JPG
Binary file not shown.
Binary file added images/cherry-blossom1.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 images/cherry-blossom2.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 30 additions & 6 deletions index.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,41 @@
/* Custom CSS for styling */
/* You can style your photos here */
.card-img-top {
max-height: 300px;
object-fit: cover;

/* Main image */
.hero {
background-image: url(/images/cherry-blossom1.JPG);
background-size: cover;
min-height: 60vh;
position: relative;
color: #ffffff;
text-shadow: 2px 2px 2px rgba(0, 0, 0, .4);
}

h1 {
font-size: 4rem;
}

/* Div on top of image that contains header and caption text */
.overlay {
position: absolute;
width: 100%;
height: 100%;
/*background-color: rgba(0, 0, 0, .1);*/
}

/* To make the header and caption stand out from the hero image*/
.contrast-overlay {
background-color: rgba(0, 0, 0, .6);
}

body {
background-color: #dedede;
background-color: whitesmoke;
}

.footer {
position: fixed;
bottom: 0;
width: 100%;
}
}

/* Don't forget media queries starting with hero image https://youtu.be/W87XNjvXiWw?si=y6wQXwiq8vla04F8 */

77 changes: 44 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,50 +9,61 @@
</head>
<body>



<div class="container mt-4">
<div class="row">
<div class="col-md-10">
<h1>In Japan: Small Things Big Difference</h1>
<p>7th April 2023</p>
<div class="card mb-3">
<img src="cherry-blossom.JPG" class="card-img-top" alt="cherry blossom in the sun">
<div class="card-body">
<h5 class="card-title">Introduction</h5>
<p class="card-text">
My first trip to Japan was incredible. During a roughly two week stay in Japan I was mesmerized by how different it was compared to back home in Europe.
It was such a cool experience that I never wanted to forget. In an attempt to explain in words what Japan is really like I ended up writing a list of little
things that are different over there. This list grew a lot larger than I was expecting so now it has become a blog I guess. (Also it's an excuse to use some
of the photos!)
</p>
</div>
<!--Hero image-->
<div class="hero justify-content-center">
<!--Overlay with title-->
<div class="overlay d-flex justify-content-center align-items-center">
<div class="col-md-1"></div>
<div class="col-md-2 contrast-overlay">
<!--Heading-->
<div class="row-1">
<h1>In Japan:</h1>
</div>
<!--Caption-->
<div class="row-2">
<h3>Small Things, Big Differences</h3>
</div>
<!-- More blog posts can be added here -->
</div>
<div class="col-md-2">
<h3>About Me</h3>
<div class="col-md-9"></div>
</div>
</div>

<!--Introduction-->
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-md-4"></div>
<div class="col-md-4 mt-5">
<h3>Introduction</h3>
<p>
My first trip to Japan was incredible. During a roughly two week stay in Japan I was mesmerized by how different it was compared to back home in Europe.
It was such a cool experience that I never wanted to forget. In an attempt to explain in words what Japan is really like I ended up writing a list of little
things that are different over there. This list grew a lot larger than I was expecting so now it has become a blog I guess! And a great use for our photos too.
</p>
</div>
<div class="col-md-1"></div>
<div class="col-md-2 mt-5">
<h3>Hi there!</h3>
<p>
Hi! I'm a web developer with a passion for frontend design.
I actually made this website from scratch for my blog!
I love working projects like this in my free time.
I'm a junior web developer and travel enthusiast.
I made this website for my blog and it was really fun to
combine my love for frontend design and travelling.
</p>
<p>
Like what you see? I'm open to work! Checkout my <a href="https://madeleinewalder.github.io/portfolio/" target="_blank">Portfolio</a> website and <a href="https://www.linkedin.com/in/madeleine-walder/" target="_blank">LinkedIn</a> profile.
</p>
<h3>I'm open to work!</h3>
<ul class="list-unstyled">
<li>[email protected]</li>
<li><a href="https://www.linkedin.com/in/madeleine-walder/" target="_blank">LinkedIn</a></li>
<li><a href="https://madeleinewalder.github.io/portfolio/" target="_blank">Portfolio</a></li>
</ul>
</div>
<div class="col-md-1"></div>
</div>
</div>

<!--Footer-->
<footer class="footer bg-dark text-white text-center py-3">
<div class="container">
<div class="container-fluid text-center">
<p>&copy; 2024 In Japan: Small Things Big Difference</p>
</div>
</footer>

</footer>

<!--Bootstrap-->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
Expand Down

0 comments on commit 966910b

Please sign in to comment.