-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13c6814
commit 7504dc2
Showing
52 changed files
with
10,910 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "natours", | ||
"version": "1.0.0", | ||
"description": "Landing page for natours", | ||
"main": "index.js", | ||
"scripts": { | ||
"watch:sass": "node-sass sass/main.scss css/style.css -w", | ||
"devserver": "live-server", | ||
"start": "npm-run-all --parallel devserver watch:sass", | ||
"compile:sass": "node-sass sass/main.scss css/style.comp.css", | ||
"concat:css": "concat -o css/style.concat.css css/icon-font.css css/style.comp.css", | ||
"prefix:css": "postcss --use autoprefixer -b 'last 10 versions' css/style.concat.css -o css/style.prefix.css", | ||
"compress:css": "node-sass css/style.prefix.css css/style.css --output-style compressed", | ||
"build:css": "npm-run-all compile:sass concat:css prefix:css compress:css" | ||
}, | ||
"author": "Dennis", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"autoprefixer": "^10.4.16", | ||
"concat": "^1.0.3", | ||
"node-sass": "^9.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"postcss-cli": "^11.0.0" | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
@mixin clearfix { | ||
&::after { | ||
content: ""; | ||
display: table; | ||
clear: both; | ||
} | ||
} | ||
|
||
@mixin absCenter { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
// MEDIA QUERY MANAGER | ||
/* | ||
0 - 600px: Phone | ||
600-900px: Tablet portrait | ||
900px-1200px: Tablet landscape | ||
[1200px-1800px] is where our normal style apply | ||
18000px * Big desktop | ||
Breakpoint argument choices: | ||
- phone | ||
- tab-port | ||
- tab-land | ||
- big-desktop | ||
ORDER: base + typography > general layout + grid > page layout > components | ||
Best use em for media queries | ||
1em = 16px | ||
*/ | ||
|
||
@mixin respond($breakpoint) { | ||
@if $breakpoint == phone { | ||
@media only screen and (max-width: 37.5em) { | ||
// 600px | ||
@content; | ||
} | ||
} | ||
|
||
@if $breakpoint == tab-port { | ||
@media only screen and (max-width: 56.25em) { | ||
// 900px | ||
@content; | ||
} | ||
} | ||
|
||
@if $breakpoint == tab-land { | ||
@media only screen and (max-width: 75em) { | ||
// 1200px | ||
@content; | ||
} | ||
} | ||
|
||
@if $breakpoint == big-desktop { | ||
@media only screen and (min-width: 112.5em) { | ||
// 1800px | ||
@content; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// colours | ||
$color-primary: #55c57a; | ||
$color-primary-light: #7ed56f; | ||
$color-primary-dark: #28b485; | ||
|
||
$color-secondary-light: #ffb900; | ||
$color-secondary-dark: #ff7730; | ||
|
||
$color-tertiary-light: #2998ff; | ||
$color-tertiary-dark: #5643fa; | ||
|
||
$color-grey-light-1: #f7f7f7; | ||
$color-grey-light-2: #eee; | ||
|
||
$color-grey-dark: #777; | ||
$color-grey-dark-2: #999; | ||
$color-grey-dark-3: #333; | ||
|
||
$color-white: #fff; | ||
$color-black: #000; | ||
|
||
//font | ||
$default-font-size: 1.6rem; | ||
|
||
//grid | ||
$grid-width: 114rem; | ||
$gutter-vertical: 8rem; | ||
$gutter-vertical-small: 6rem; | ||
$gutter-horizontal: 6rem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@keyframes moveInLeft { | ||
0% { | ||
opacity: 0; /* ath the beginning of animation the opacity will be at 0*/ | ||
transform: translateX(-10rem); | ||
} | ||
|
||
80% { | ||
transform: translateX(1rem); | ||
} | ||
|
||
100% { | ||
opacity: 1; /*at the end of opacity we want it to be at 1 */ | ||
transform: translate(0); | ||
} | ||
} | ||
|
||
@keyframes moveInRight { | ||
0% { | ||
opacity: 0; /* ath the beginning of animation the opacity will be at 0*/ | ||
transform: translateX(10rem); | ||
} | ||
|
||
80% { | ||
transform: translateX(-1rem); | ||
} | ||
|
||
100% { | ||
opacity: 1; /*at the end of opacity we want it to be at 1 */ | ||
transform: translate(0); | ||
} | ||
} | ||
|
||
@keyframes moveInBottom { | ||
0% { | ||
opacity: 0; /* ath the beginning of animation the opacity will be at 0*/ | ||
transform: translateY(3rem); | ||
} | ||
|
||
100% { | ||
opacity: 1; /*at the end of opacity we want it to be at 1 */ | ||
transform: translate(0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
*, | ||
*::after, | ||
*::before { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: inherit; | ||
} | ||
|
||
html { | ||
// this defines what 1 rem is | ||
font-size: 62.5%; // 1rem = 10px; 10px/16px = 62.5% | ||
|
||
@include respond(tab-land) { | ||
// width < 1200? | ||
font-size: 56.25%; // 1rem = 9px, 9/16 = 0.5; => 56.25% | ||
} | ||
|
||
@include respond(tab-port) { | ||
// width < 900? | ||
font-size: 50%; // 1rem = 8px, 8/16 = 0.5; => 50% | ||
} | ||
|
||
@include respond(big-desktop) { | ||
font-size: 75%; // 1rem = 12px, 12/16 = 0.5; => 75% | ||
} | ||
} | ||
/* we apply fonts in body, bc properties related to fonts are usually inherited */ | ||
/* font-family will get inhereted of all child elements in body section*/ | ||
body { | ||
box-sizing: border-box; | ||
padding: 3rem; | ||
|
||
@include respond(tab-port) { | ||
padding: 0; | ||
} | ||
} | ||
|
||
::selection { | ||
background-color: $color-primary; | ||
color: $color-white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
.heading-primary { | ||
color: $color-white; | ||
text-transform: uppercase; | ||
backface-visibility: hidden; /* the animation at the end moves a little to the top, | ||
we dont know why, but this is the way to fix it */ | ||
margin-bottom: 6rem; | ||
|
||
&--main { | ||
display: block; | ||
font-size: 6rem; | ||
font-weight: 400; | ||
letter-spacing: 3.5rem; | ||
animation-name: moveInLeft; | ||
animation-duration: 1s; | ||
animation-timing-function: ease-out; /* fast at the beginning and slower at the end*/ | ||
|
||
@include respond(phone) { | ||
letter-spacing: 1rem; | ||
font-family: 5rem; | ||
} | ||
|
||
/* animation-timing-function: ease-in; /* slow at the beginning and faster at the end */ | ||
} | ||
|
||
&--sub { | ||
display: block; | ||
font-size: 2rem; | ||
font-weight: 700; | ||
letter-spacing: 1.75rem; | ||
animation: moveInRight 1s ease-out; | ||
/* animation-name: moveInRight; | ||
animation-duration: 1s; | ||
animation-timing-function: ease-out; */ | ||
|
||
@include respond(phone) { | ||
letter-spacing: 0.5rem; | ||
} | ||
} | ||
} | ||
|
||
body { | ||
font-family: "Lato", sans-serif; | ||
font-weight: 400; | ||
font-size: 1rem; | ||
line-height: 1.7; | ||
color: $color-grey-dark; | ||
box-sizing: border-box; | ||
} | ||
|
||
.heading-secondary { | ||
font-size: 3.5rem; | ||
text-transform: uppercase; | ||
font-weight: 700; | ||
display: inline-block; | ||
background-image: linear-gradient( | ||
to right, | ||
$color-primary-light, | ||
$color-primary-dark | ||
); | ||
|
||
-webkit-background-clip: text; | ||
color: transparent; | ||
letter-spacing: 0.2rem; | ||
transition: all 0.2s; | ||
|
||
@include respond(tab-port) { | ||
font-size: 3rem; | ||
} | ||
|
||
@include respond(phone) { | ||
font-size: 2.5rem; | ||
} | ||
|
||
&:hover { | ||
transform: skewY(2deg) skewX(15deg) scale(1.1); | ||
text-shadow: 0.5rem 1rem 2rem rgba($color-black, 0.2); | ||
} | ||
} | ||
|
||
.heading-tertiary { | ||
font-size: $default-font-size; | ||
font-weight: 700; | ||
text-transform: uppercase; | ||
} | ||
|
||
.paragraph { | ||
font-size: $default-font-size; | ||
|
||
&:not(:last-child) { | ||
margin-bottom: 3rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.u-center-text { | ||
text-align: center !important; | ||
} | ||
|
||
.u-margin-bottom-small { | ||
margin-bottom: 1.5rem !important; | ||
} | ||
|
||
.u-margin-bottom-medium { | ||
margin-bottom: 4rem !important; | ||
|
||
@include respond(tab-port) { | ||
margin-bottom: 3rem !important; | ||
} | ||
} | ||
|
||
.u-margin-bottom-big { | ||
margin-bottom: 8rem !important; | ||
|
||
@include respond(tab-port) { | ||
margin-bottom: 5rem !important; | ||
} | ||
} | ||
|
||
.u-margin-top-big { | ||
margin-top: 8rem !important; | ||
} | ||
|
||
.u-margin-top-huge { | ||
margin-top: 10rem !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.bg-video { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
z-index: -1; | ||
opacity: 0.15; | ||
|
||
&__content { | ||
height: 100%; | ||
width: 100%; | ||
object-fit: cover; | ||
} | ||
} |
Oops, something went wrong.