Skip to content
Open
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
406 changes: 405 additions & 1 deletion css/index.css

Large diffs are not rendered by default.

23 changes: 20 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<title>Fun Bus Travel Agency - Solution</title>

<meta name="viewport" content= "width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Indie+Flower|Roboto" rel="stylesheet">
<link href="css/index.css" rel="stylesheet">

Expand All @@ -15,10 +16,26 @@
</head>

<body>
<div class="navigation">
<nav class="nav container">
<h1>Fun Bus</h1>
<div class="nav-items">
<a href="">Home</a>
<a href="">About Us</a>
<a href="">Blog</a>
<a href="">Contact</a>
</div>
</nav>
</div>



<div class="container home">


<div class="container home">
<header class="header">
<img src="./img/fun-bus.jpg" alt="fun-bus">
<h2>Welcome To Fun Bus!</h2>
<p>Traveling expedition modern, clean webdesign blogger clean website theme website modern. Design pretty design, travelblogger adventure WordPress wanderlust theme blogger website expedition theme travelblogger. Adventure fun traveler pretty design website expedition.</p>
</header>

<section class="content-section">
<div class="text-content">
Expand Down
7 changes: 7 additions & 0 deletions less/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ img {
max-width: 800px;
width: 100%;
margin: 0 auto;
padding-left:20px;
padding-right:20px;
@media @mobile {
padding-left:0;
padding-right:0;
width: 100%;
}
}
96 changes: 89 additions & 7 deletions less/home-page.less
Original file line number Diff line number Diff line change
@@ -1,28 +1,71 @@
.home {

.header {
margin: 0 auto;
border-bottom: 2px dashed @silver;
padding-bottom: 10px;
h2 {
padding-top: 30px;
}
p {
@media @mobile {
font-size: 1.4rem;
font-weight: 600;
}
}
@media @mobile {
width: 90%;
display: flex;
flex-direction: column;
}
}

.content-section {
margin: 30px 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;



@media @mobile {
width: 90%;
margin: 0 auto;
padding-top: 30px;
flex-direction: column;
align-items: center;
}

.text-content {
width: 48%;
padding-right: 1%;
@media @mobile {
width: 100%;
padding-right: 0%;
}
p {
@media @mobile {
font-size: 1.4rem;
font-weight: 600;
}
}
}

.img-content {
width: 48%;
padding-left: 1%;

@media @mobile {
width: 100%;
padding-left: 0%;
}
img {
width: 100%;
border-radius: 10px;
}
}
}

.content-section:nth-child(3) {
@media @mobile {
flex-direction: column-reverse;
}
}
.inverse-content {
padding-bottom: 30px;
border-bottom: 2px dashed @navigation-border;
Expand All @@ -41,7 +84,16 @@
.content-destination {
width: 75%;
margin: 0 auto 30px;

@media @mobile {
width: 90%;
padding-top: 30px;
}
p {
@media @mobile {
font-size: 1.4rem;
font-weight: 600;
}
}
img {
border-radius: 10px;
}
Expand All @@ -52,10 +104,40 @@
border-top: 2px dashed @navigation-border;
display: flex;
justify-content: space-between;

@media @mobile {
width: 90%;
margin: 0 auto;
flex-direction: column;

}
.destination {
width: 30%;
margin-bottom: 30px;
@media @mobile {
width: 100%;
padding-left: 40px;
padding-right: 30px;
}
p {
@media @mobile {
font-size: 1.4rem;
font-weight: 600;
}
}
.btn {
.btn(@eastern-blue, 10px);
@media @mobile {
width: 100%;
height: 45px;
font-size: 1.8rem;
font-weight: 600;
}
}
.btn:hover {
background-color: white;
color: @eastern-blue;
border: solid 1px @eastern-blue;
}
}
}
}// home
8 changes: 8 additions & 0 deletions less/index.less
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
// Follow the order in the readme

@import 'variables.less';
@import 'mixins.less';
@import 'reset.less';
@import 'global.less';
@import 'navigation.less';
@import 'footer.less';
@import 'home-page.less';
19 changes: 18 additions & 1 deletion less/mixins.less
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
// Mixins in here
// Mixins in here

@button-bg: @eastern-blue;

.btn(@background, @border-radius) {
background-color: @background;
border-radius: @border-radius;
color: white;
display: flex;
flex-wrap: wrap;
font-size: 1.4rem;
width: 80%;
height: 15%;
justify-content: center;
align-items: center;
border: solid 1px @eastern-blue;
}

54 changes: 53 additions & 1 deletion less/navigation.less
Original file line number Diff line number Diff line change
@@ -1 +1,53 @@
// Navigation Styles here
// Navigation Styles here

.navigation {
padding-right: 1%;
padding-top: 30px;
padding-bottom: 30px;
border-bottom: 2px dashed @silver;
@media @mobile {
padding-bottom: 5px;
}
.nav{
width: 100%;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
max-width: 780px;
@media @mobile {
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
@media @mobile {
font-size: 3rem;
font-weight: 550;
}
}
.nav-items {
display: flex;
justify-content: space-between;
align-items: center;
width: 40%;
@media @mobile {
width: 100%;
display: flex;
justify-content: space-evenly;
padding-top: 15px;
padding-bottom: 5px;
font-weight: 600;
}
a {
text-decoration: none;
font-size: 1.6rem;
font-family: 'Roboto', sans-serif;
color: @shark;
}
a:hover {
color: @eastern-blue;
}
}
}
}
5 changes: 4 additions & 1 deletion less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@
@silver: #C0C0C0;
@shark: #212529;
@eastern-blue: #17A2B8;
@sandy-beach: #FFEBCD;
@sandy-beach: #FFEBCD;

//mobile
@mobile: ~"only screen and (max-width: 500px)";