Skip to content

Commit a363ce3

Browse files
Initial commit
1 parent 410beb9 commit a363ce3

File tree

211 files changed

+15702
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+15702
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

Natours/.DS_Store

6 KB
Binary file not shown.

Natours/after-S05/.DS_Store

6 KB
Binary file not shown.

Natours/after-S05/css/.DS_Store

6 KB
Binary file not shown.
Binary file not shown.

Natours/after-S05/css/fonts/linea-basic-10.svg

+145
20.8 KB
Binary file not shown.
Binary file not shown.

Natours/after-S05/css/icon-font.css

+445
Large diffs are not rendered by default.

Natours/after-S05/css/style.css

+761
Large diffs are not rendered by default.

Natours/after-S05/img/.DS_Store

6 KB
Binary file not shown.

Natours/after-S05/img/favicon.png

18.3 KB

Natours/after-S05/img/hero-small.jpg

261 KB

Natours/after-S05/img/hero.jpg

644 KB
21.6 KB
55.6 KB
7.41 KB
19.3 KB

Natours/after-S05/img/logo-white.png

11 KB

Natours/after-S05/img/nat-1-large.jpg

361 KB

Natours/after-S05/img/nat-1.jpg

35.9 KB

Natours/after-S05/img/nat-10.jpg

607 KB

Natours/after-S05/img/nat-2-large.jpg

160 KB

Natours/after-S05/img/nat-2.jpg

18.5 KB

Natours/after-S05/img/nat-3-large.jpg

211 KB

Natours/after-S05/img/nat-3.jpg

20.9 KB

Natours/after-S05/img/nat-4.jpg

576 KB

Natours/after-S05/img/nat-5.jpg

783 KB

Natours/after-S05/img/nat-6.jpg

950 KB

Natours/after-S05/img/nat-7.jpg

622 KB

Natours/after-S05/img/nat-8.jpg

465 KB

Natours/after-S05/img/nat-9.jpg

628 KB

Natours/after-S05/img/video.mp4

8.44 MB
Binary file not shown.

Natours/after-S05/img/video.webm

6.85 MB
Binary file not shown.

Natours/after-S05/index.html

+469
Large diffs are not rendered by default.

Natours/after-S05/npm-debug.log

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
0 info it worked if it ends with ok
2+
1 verbose cli [ '/usr/local/bin/node',
3+
1 verbose cli '/usr/local/bin/npm',
4+
1 verbose cli 'run',
5+
1 verbose cli 'compile:sass' ]
6+
2 info using npm@3.10.10
7+
3 info using node@v6.10.1
8+
4 verbose run-script [ 'precompile:sass', 'compile:sass', 'postcompile:sass' ]
9+
5 info lifecycle natours@1.0.0~precompile:sass: natours@1.0.0
10+
6 silly lifecycle natours@1.0.0~precompile:sass: no script for precompile:sass, continuing
11+
7 info lifecycle natours@1.0.0~compile:sass: natours@1.0.0
12+
8 verbose lifecycle natours@1.0.0~compile:sass: unsafe-perm in lifecycle true
13+
9 verbose lifecycle natours@1.0.0~compile:sass: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/jonas.io/Desktop/1-Natours/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
14+
10 verbose lifecycle natours@1.0.0~compile:sass: CWD: /Users/jonas.io/Desktop/1-Natours
15+
11 silly lifecycle natours@1.0.0~compile:sass: Args: [ '-c', 'node-sass sass/main.scss css/style.css -w' ]
16+
12 silly lifecycle natours@1.0.0~compile:sass: Returned: code: 1 signal: null
17+
13 info lifecycle natours@1.0.0~compile:sass: Failed to exec compile:sass script
18+
14 verbose stack Error: natours@1.0.0 compile:sass: `node-sass sass/main.scss css/style.css -w`
19+
14 verbose stack Exit status 1
20+
14 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
21+
14 verbose stack at emitTwo (events.js:106:13)
22+
14 verbose stack at EventEmitter.emit (events.js:191:7)
23+
14 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
24+
14 verbose stack at emitTwo (events.js:106:13)
25+
14 verbose stack at ChildProcess.emit (events.js:191:7)
26+
14 verbose stack at maybeClose (internal/child_process.js:886:16)
27+
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
28+
15 verbose pkgid natours@1.0.0
29+
16 verbose cwd /Users/jonas.io/Desktop/1-Natours
30+
17 error Darwin 16.7.0
31+
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "compile:sass"
32+
19 error node v6.10.1
33+
20 error npm v3.10.10
34+
21 error code ELIFECYCLE
35+
22 error natours@1.0.0 compile:sass: `node-sass sass/main.scss css/style.css -w`
36+
22 error Exit status 1
37+
23 error Failed at the natours@1.0.0 compile:sass script 'node-sass sass/main.scss css/style.css -w'.
38+
23 error Make sure you have the latest version of node.js and npm installed.
39+
23 error If you do, this is most likely a problem with the natours package,
40+
23 error not with npm itself.
41+
23 error Tell the author that this fails on your system:
42+
23 error node-sass sass/main.scss css/style.css -w
43+
23 error You can get information on how to open an issue for this project with:
44+
23 error npm bugs natours
45+
23 error Or if that isn't available, you can get their info via:
46+
23 error npm owner ls natours
47+
23 error There is likely additional logging output above.
48+
24 verbose exit [ 1, true ]

Natours/after-S05/package.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "natours",
3+
"version": "1.0.0",
4+
"description": "Landing page for natours",
5+
"main": "index.js",
6+
"scripts": {
7+
"compile:sass": "node-sass sass/main.scss css/style.css -w"
8+
},
9+
"author": "Jonas",
10+
"license": "ISC",
11+
"devDependencies": {
12+
"node-sass": "^4.5.3"
13+
}
14+
}

Natours/after-S05/sass/abstracts/_functions.scss

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@mixin clearfix {
2+
&::after {
3+
content: "";
4+
display: table;
5+
clear: both;
6+
}
7+
}
8+
9+
@mixin absCenter {
10+
position: absolute;
11+
top: 50%;
12+
left: 50%;
13+
transform: translate(-50%, -50%);
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// COLORS
2+
$color-primary: #55c57a;
3+
$color-primary-light: #7ed56f;
4+
$color-primary-dark: #28b485;
5+
6+
$color-secondary-light: #ffb900;
7+
$color-secondary-dark: #ff7730;
8+
9+
$color-tertiary-light: #2998ff;
10+
$color-tertiary-dark: #5643fa;
11+
12+
$color-grey-light-1: #f7f7f7;
13+
$color-grey-light-2: #eee;
14+
15+
$color-grey-dark: #777;
16+
$color-grey-dark-2: #999;
17+
$color-grey-dark-3: #333;
18+
19+
$color-white: #fff;
20+
$color-black: #000;
21+
22+
23+
// FONT
24+
$default-font-size: 1.6rem;
25+
26+
27+
// GRID
28+
$grid-width: 114rem;
29+
$gutter-vertical: 8rem;
30+
$gutter-horizontal: 6rem;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@keyframes moveInLeft {
2+
0% {
3+
opacity: 0;
4+
transform: translateX(-10rem);
5+
}
6+
7+
80% {
8+
transform: translateX(1rem);
9+
}
10+
11+
100% {
12+
opacity: 1;
13+
transform: translate(0);
14+
}
15+
}
16+
17+
@keyframes moveInRight {
18+
0% {
19+
opacity: 0;
20+
transform: translateX(10rem);
21+
}
22+
23+
80% {
24+
transform: translateX(-1rem);
25+
}
26+
27+
100% {
28+
opacity: 1;
29+
transform: translate(0);
30+
}
31+
}
32+
33+
@keyframes moveInBottom {
34+
0% {
35+
opacity: 0;
36+
transform: translateY(3rem);
37+
}
38+
39+
100% {
40+
opacity: 1;
41+
transform: translate(0);
42+
}
43+
}
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*,
2+
*::after,
3+
*::before {
4+
margin: 0;
5+
padding: 0;
6+
box-sizing: inherit;
7+
}
8+
9+
html {
10+
// This defines what 1rem is
11+
font-size: 62.5%;
12+
}
13+
14+
body {
15+
box-sizing: border-box;
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
body {
2+
font-family: "Lato", sans-serif;
3+
font-weight: 400;
4+
/*font-size: 16px;*/
5+
line-height: 1.7;
6+
color: $color-grey-dark;
7+
padding: 3rem;
8+
}
9+
10+
.heading-primary {
11+
color: $color-white;
12+
text-transform: uppercase;
13+
14+
backface-visibility: hidden;
15+
margin-bottom: 6rem;
16+
17+
&--main {
18+
display: block;
19+
font-size: 6rem;
20+
font-weight: 400;
21+
letter-spacing: 3.5rem;
22+
23+
animation-name: moveInLeft;
24+
animation-duration: 1s;
25+
animation-timing-function: ease-out;
26+
27+
/*
28+
animation-delay: 3s;
29+
animation-iteration-count: 3;
30+
*/
31+
}
32+
33+
&--sub {
34+
display: block;
35+
font-size: 2rem;
36+
font-weight: 700;
37+
letter-spacing: 1.75rem;
38+
animation: moveInRight 1s ease-out;
39+
}
40+
}
41+
42+
.heading-secondary {
43+
font-size: 3.5rem;
44+
text-transform: uppercase;
45+
font-weight: 700;
46+
display: inline-block;
47+
background-image: linear-gradient(to right, $color-primary-light, $color-primary-dark);
48+
-webkit-background-clip: text;
49+
color: transparent;
50+
letter-spacing: .2rem;
51+
transition: all .2s;
52+
53+
&:hover {
54+
transform: skewY(2deg) skewX(15deg) scale(1.1);
55+
text-shadow: .5rem 1rem 2rem rgba($color-black, .2);
56+
}
57+
}
58+
59+
.heading-tertiary {
60+
font-size: $default-font-size;
61+
font-weight: 700;
62+
text-transform: uppercase;
63+
}
64+
65+
.paragraph {
66+
font-size: $default-font-size;
67+
68+
&:not(:last-child) {
69+
margin-bottom: 3rem;
70+
}
71+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.u-center-text { text-align: center !important; }
2+
3+
.u-margin-bottom-small { margin-bottom: 1.5rem !important; }
4+
.u-margin-bottom-medium { margin-bottom: 4rem !important; }
5+
.u-margin-bottom-big { margin-bottom: 8rem !important; }
6+
7+
.u-margin-top-big { margin-top: 8rem !important; }
8+
.u-margin-top-huge { margin-top: 10rem !important; }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.bg-video {
2+
position: absolute;
3+
top: 0;
4+
left: 0;
5+
height: 100%;
6+
width: 100%;
7+
z-index: -1;
8+
opacity: .15;
9+
overflow: hidden;
10+
11+
&__content {
12+
height: 100%;
13+
width: 100%;
14+
object-fit: cover;
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
.btn {
2+
&,
3+
&:link,
4+
&:visited {
5+
text-transform: uppercase;
6+
text-decoration: none;
7+
padding: 1.5rem 4rem;
8+
display: inline-block;
9+
border-radius: 10rem;
10+
transition: all .2s;
11+
position: relative;
12+
font-size: $default-font-size;
13+
14+
//Change for the <button> element
15+
border: none;
16+
cursor: pointer;
17+
}
18+
19+
&:hover {
20+
transform: translateY(-3px);
21+
box-shadow: 0 1rem 2rem rgba($color-black,.2);
22+
23+
&::after {
24+
transform: scaleX(1.4) scaleY(1.6);
25+
opacity: 0;
26+
}
27+
}
28+
29+
&:active,
30+
&:focus {
31+
outline: none;
32+
transform: translateY(-1px);
33+
box-shadow: 0 .5rem 1rem rgba($color-black,.2);
34+
}
35+
36+
&--white {
37+
background-color: $color-white;
38+
color: $color-grey-dark;
39+
40+
&::after {
41+
background-color: $color-white;
42+
}
43+
}
44+
45+
&--green {
46+
background-color: $color-primary;
47+
color: $color-white;
48+
49+
&::after {
50+
background-color: $color-primary;
51+
}
52+
}
53+
54+
&::after {
55+
content: "";
56+
display: inline-block;
57+
height: 100%;
58+
width: 100%;
59+
border-radius: 10rem;
60+
position: absolute;
61+
top: 0;
62+
left: 0;
63+
z-index: -1;
64+
transition: all .4s;
65+
}
66+
67+
&--animated {
68+
animation: moveInBottom .5s ease-out .75s;
69+
animation-fill-mode: backwards;
70+
}
71+
}
72+
73+
.btn-text {
74+
&:link,
75+
&:visited {
76+
font-size: $default-font-size;
77+
color: $color-primary;
78+
display: inline-block;
79+
text-decoration: none;
80+
border-bottom: 1px solid $color-primary;
81+
padding: 3px;
82+
transition: all .2s;
83+
}
84+
85+
&:hover {
86+
background-color: $color-primary;
87+
color: $color-white;
88+
box-shadow: 0 1rem 2rem rgba($color-black, .15);
89+
transform: translateY(-2px);
90+
}
91+
92+
&:active {
93+
box-shadow: 0 .5rem 1rem rgba($color-black, .15);
94+
transform: translateY(0);
95+
}
96+
}

0 commit comments

Comments
 (0)