Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
FrontEndHighRoller authored Dec 17, 2023
1 parent 13c6814 commit 7504dc2
Show file tree
Hide file tree
Showing 52 changed files with 10,910 additions and 0 deletions.
444 changes: 444 additions & 0 deletions css/icon-font.css

Large diffs are not rendered by default.

1,018 changes: 1,018 additions & 0 deletions css/style.comp.css

Large diffs are not rendered by default.

1,463 changes: 1,463 additions & 0 deletions css/style.concat.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions css/style.css

Large diffs are not rendered by default.

1,481 changes: 1,481 additions & 0 deletions css/style.prefix.css

Large diffs are not rendered by default.

Binary file added img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/hero-small.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo-green-1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo-green-2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo-green-small-1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo-green-small-2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-1-large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-2-large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-3-large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/nat-9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/video.mp4
Binary file not shown.
Binary file added img/video.webm
Binary file not shown.
547 changes: 547 additions & 0 deletions index.html

Large diffs are not rendered by default.

4,373 changes: 4,373 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions package.json
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 added sass/abstracts/_functions.scss
Empty file.
65 changes: 65 additions & 0 deletions sass/abstracts/_mixins.scss
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;
}
}
}
29 changes: 29 additions & 0 deletions sass/abstracts/_variables.scss
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;
43 changes: 43 additions & 0 deletions sass/base/_animations.scss
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);
}
}
41 changes: 41 additions & 0 deletions sass/base/_base.scss
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;
}
92 changes: 92 additions & 0 deletions sass/base/_typography.scss
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;
}
}
31 changes: 31 additions & 0 deletions sass/base/_utilities.scss
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;
}
15 changes: 15 additions & 0 deletions sass/components/_bg-video.scss
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;
}
}
Loading

0 comments on commit 7504dc2

Please sign in to comment.