diff --git a/css/index.css b/css/index.css index e764f2b01f..eb006e2d07 100644 --- a/css/index.css +++ b/css/index.css @@ -1 +1,405 @@ -/* LESS needs to be processed */ \ No newline at end of file +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ +html, +body, +div, +span, +applet, +object, +iframe, +h1, +h2, +h3, +h4, +h5, +h6, +p, +blockquote, +pre, +a, +abbr, +acronym, +address, +big, +cite, +code, +del, +dfn, +em, +img, +ins, +kbd, +q, +s, +samp, +small, +strike, +strong, +sub, +sup, +tt, +var, +b, +u, +i, +center, +dl, +dt, +dd, +ol, +ul, +li, +fieldset, +form, +label, +legend, +table, +caption, +tbody, +tfoot, +thead, +tr, +th, +td, +article, +aside, +canvas, +details, +embed, +figure, +figcaption, +footer, +header, +hgroup, +menu, +nav, +output, +ruby, +section, +summary, +time, +mark, +audio, +video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +menu, +nav, +section { + display: block; +} +body { + line-height: 1; +} +ol, +ul { + list-style: none; +} +blockquote, +q { + quotes: none; +} +blockquote:before, +blockquote:after, +q:before, +q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} +* { + box-sizing: border-box; +} +html { + font-size: 62.5%; +} +html, +body { + font-family: 'Roboto', sans-serif; +} +h1, +h2, +h3, +h4, +h5 { + font-family: 'Indie Flower', cursive; +} +h1 { + font-size: 4rem; +} +h2 { + font-size: 3.2rem; + padding-bottom: 10px; +} +h4 { + font-size: 2.5rem; + padding-bottom: 10px; +} +p { + line-height: 1.5; + font-size: 1.6rem; + padding-bottom: 10px; +} +img { + max-width: 100%; + height: auto; +} +.container { + max-width: 800px; + width: 100%; + margin: 0 auto; + padding-left: 20px; + padding-right: 20px; +} +@media only screen and (max-width: 500px) { + .container { + padding-left: 0; + padding-right: 0; + width: 100%; + } +} +.navigation { + padding-right: 1%; + padding-top: 30px; + padding-bottom: 30px; + border-bottom: 2px dashed #C0C0C0; +} +@media only screen and (max-width: 500px) { + .navigation { + padding-bottom: 5px; + } +} +.navigation .nav { + width: 100%; + margin: 0 auto; + display: flex; + align-items: center; + justify-content: space-between; + max-width: 780px; +} +@media only screen and (max-width: 500px) { + .navigation .nav { + display: flex; + flex-direction: column; + align-items: center; + } +} +@media only screen and (max-width: 500px) { + .navigation .nav h1 { + font-size: 3rem; + font-weight: 550; + } +} +.navigation .nav .nav-items { + display: flex; + justify-content: space-between; + align-items: center; + width: 40%; +} +@media only screen and (max-width: 500px) { + .navigation .nav .nav-items { + width: 100%; + display: flex; + justify-content: space-evenly; + padding-top: 15px; + padding-bottom: 5px; + font-weight: 600; + } +} +.navigation .nav .nav-items a { + text-decoration: none; + font-size: 1.6rem; + font-family: 'Roboto', sans-serif; + color: #212529; +} +.navigation .nav .nav-items a:hover { + color: #17A2B8; +} +.footer { + width: 100%; + border-top: 2px dashed silver; + background: #FFEBCD; +} +.footer p { + text-align: center; + color: #212529; + font-size: 1.6rem; + padding: 20px; +} +.home .header { + margin: 0 auto; + border-bottom: 2px dashed #C0C0C0; + padding-bottom: 10px; +} +.home .header h2 { + padding-top: 30px; +} +@media only screen and (max-width: 500px) { + .home .header p { + font-size: 1.4rem; + font-weight: 600; + } +} +@media only screen and (max-width: 500px) { + .home .header { + width: 90%; + display: flex; + flex-direction: column; + } +} +.home .content-section { + margin: 30px 0; + display: flex; + flex-wrap: wrap; + justify-content: space-between; +} +@media only screen and (max-width: 500px) { + .home .content-section { + width: 90%; + margin: 0 auto; + padding-top: 30px; + flex-direction: column; + align-items: center; + } +} +.home .content-section .text-content { + width: 48%; + padding-right: 1%; +} +@media only screen and (max-width: 500px) { + .home .content-section .text-content { + width: 100%; + padding-right: 0%; + } +} +@media only screen and (max-width: 500px) { + .home .content-section .text-content p { + font-size: 1.4rem; + font-weight: 600; + } +} +.home .content-section .img-content { + width: 48%; + padding-left: 1%; +} +@media only screen and (max-width: 500px) { + .home .content-section .img-content { + width: 100%; + padding-left: 0%; + } +} +.home .content-section .img-content img { + width: 100%; + border-radius: 10px; +} +@media only screen and (max-width: 500px) { + .home .content-section:nth-child(3) { + flex-direction: column-reverse; + } +} +.home .inverse-content { + padding-bottom: 30px; + border-bottom: 2px dashed #C0C0C0; +} +.home .inverse-content .text-content { + padding-left: 1%; + padding-right: 0; +} +.home .inverse-content .img-content { + padding-right: 1%; + padding-left: 0; +} +.home .content-destination { + width: 75%; + margin: 0 auto 30px; +} +@media only screen and (max-width: 500px) { + .home .content-destination { + width: 90%; + padding-top: 30px; + } +} +@media only screen and (max-width: 500px) { + .home .content-destination p { + font-size: 1.4rem; + font-weight: 600; + } +} +.home .content-destination img { + border-radius: 10px; +} +.home .content-pick { + padding-top: 30px; + border-top: 2px dashed #C0C0C0; + display: flex; + justify-content: space-between; +} +@media only screen and (max-width: 500px) { + .home .content-pick { + width: 90%; + margin: 0 auto; + flex-direction: column; + } +} +.home .content-pick .destination { + width: 30%; + margin-bottom: 30px; +} +@media only screen and (max-width: 500px) { + .home .content-pick .destination { + width: 100%; + padding-left: 40px; + padding-right: 30px; + } +} +@media only screen and (max-width: 500px) { + .home .content-pick .destination p { + font-size: 1.4rem; + font-weight: 600; + } +} +.home .content-pick .destination .btn { + background-color: #17A2B8; + border-radius: 10px; + color: white; + display: flex; + flex-wrap: wrap; + font-size: 1.4rem; + width: 80%; + height: 15%; + justify-content: center; + align-items: center; + border: solid 1px #17A2B8; +} +@media only screen and (max-width: 500px) { + .home .content-pick .destination .btn { + width: 100%; + height: 45px; + font-size: 1.8rem; + font-weight: 600; + } +} +.home .content-pick .destination .btn:hover { + background-color: white; + color: #17A2B8; + border: solid 1px #17A2B8; +} diff --git a/index.html b/index.html index bb8663b768..fd41db02a5 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,7 @@ Fun Bus Travel Agency - Solution + @@ -15,10 +16,26 @@ + - - -
+ + +
+
+ fun-bus +

Welcome To Fun Bus!

+

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.

+
diff --git a/less/global.less b/less/global.less index abe21bf970..a3609f7bf3 100644 --- a/less/global.less +++ b/less/global.less @@ -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%; + } } diff --git a/less/home-page.less b/less/home-page.less index 5528d8a7a5..42ab93deb3 100644 --- a/less/home-page.less +++ b/less/home-page.less @@ -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; @@ -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; } @@ -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 \ No newline at end of file diff --git a/less/index.less b/less/index.less index c113ca2c46..8145c99f92 100644 --- a/less/index.less +++ b/less/index.less @@ -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'; \ No newline at end of file diff --git a/less/mixins.less b/less/mixins.less index 2d5c603558..674d2b0878 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -1 +1,18 @@ -// Mixins in here \ No newline at end of file +// 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; +} + diff --git a/less/navigation.less b/less/navigation.less index f89120a0f1..b9f0e73ea1 100644 --- a/less/navigation.less +++ b/less/navigation.less @@ -1 +1,53 @@ -// Navigation Styles here \ No newline at end of file +// 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; + } + } + } +} \ No newline at end of file diff --git a/less/variables.less b/less/variables.less index 916eb0b7e0..1408293a11 100644 --- a/less/variables.less +++ b/less/variables.less @@ -11,4 +11,7 @@ @silver: #C0C0C0; @shark: #212529; @eastern-blue: #17A2B8; -@sandy-beach: #FFEBCD; \ No newline at end of file +@sandy-beach: #FFEBCD; + +//mobile +@mobile: ~"only screen and (max-width: 500px)"; \ No newline at end of file