Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Blog section #16

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/views/home.view.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@

<?php require_once('../app/views/sections/guide.php');
?>

<?php require_once('../app/views/sections/rental-service.php');
?>

<?php require_once('../app/views/sections/blog.php');
?>
<!-- <h1> Home page view </h1>


Expand Down
14 changes: 14 additions & 0 deletions app/views/sections/blog.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="guide">
<div class="home-container row">
<div class="col col-2">
<h2 class="about-subtitle">Blogs</h2>
<h1 class="guide-title">Explore: Add Your Adventure!</h1>
<p class="hero-description">Dive into our blog section for insightful tips, adventure stories, and expert advice to enhance your camping experience. Add your own blog filled with outdoor experiences.</p>
<div class="section-button"><a href="#">Blogs</a></div>
</div>
<div class="col col-2">
<img class=" locked-aspect-ratio" src=" <?= ROOT_DIR ?>/assets/images/guide.png" alt="Mask group Image">
</div>
</div>

</div>
9 changes: 6 additions & 3 deletions app/views/sections/guide.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<div class="guide">
<div class="home-container row">
<div class="col col-4-3">
<h2 class="about-subtitle">Guides </h2>
<div class="col col-2">
<h2 class="about-subtitle">Guides</h2>
<h1 class="guide-title">Find Guides with Ease!</h1>
<p class="hero-description"> Find your ideal camping guides to simplify your<br> outdoor adventures with ease, ensuring a <br>memorable and stress-free experience.</p>
<p class="hero-description">Find your ideal camping guides to simplify your<br> outdoor adventures with ease, ensuring a <br>memorable and stress-free experience.</p>
<div class="section-button"><a href="#">Book now</a></div>
</div>
<div class="col col-2">
<img class=" locked-aspect-ratio" src=" <?= ROOT_DIR ?>/assets/images/guide.png" alt="Mask group Image">
</div>
</div>

</div>
17 changes: 17 additions & 0 deletions app/views/sections/rental-service.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div class="guide">
<div class="home-container row">

<div class="col col-2">
<img src="<?= ROOT_DIR ?>/assets/images/Mask group.png" alt="Hero Image">
</div>
<div class="col col-4-3-end">
<h2 class="about-subtitle">Rental Services</h2>
<h1 class="rental-title">Diverse Gear Selection!</h1>
<p class="hero-description">Explore a diverse range of camping equipment in<br>one place, making your outdoor adventures<br>simpler and more convenient.</p>
<div class="center-right">
<div class="section-button "><a href="#">Book now</a></div>
</div>
</div>
</div>

</div>
39 changes: 37 additions & 2 deletions public/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,33 @@ body {
max-width:80%;
}

.col-4-3-end{
justify-content:right!important;
text-align: right!important;
align-items: right!important;
padding-right: 10%;
}

.center-all {
justify-content: center!important;
text-align: center!important;
align-items: center;
}
.locked-aspect-ratio {
width: 50%; /* Automatically calculates width to maintain aspect ratio */
height: auto; /* Set your desired height */
width: 50%;
height: auto;
}

.center-right {
justify-content: right!important;
text-align: right!important;
align-items: right;
}

.center-left {
justify-content: left!important;
text-align: left!important;
align-items: left;
}

.home-container {
Expand Down Expand Up @@ -197,6 +216,21 @@ body {
text-align: left!important;
}

.rental-title {
color: #4C5039;
text-shadow: 0px 2.5296311378479004px 2.5296311378479004px rgba(0, 0, 0, 0.25);
font-family: Fredoka;
font-size: 79px;
font-style: normal;
font-weight: 500;
line-height: 117.9%; /* 136.826px */
margin-bottom: 0%!important;
margin-top: 0%!important;
text-align: right!important;
}



.about-subtitle {
color:#BCAB86;;
font-family: Fredoka;
Expand All @@ -209,6 +243,7 @@ body {




/* Login Page */

.login-container {
Expand Down
Binary file added public/assets/images/guide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.