diff --git a/Natours/starter/.vscode/launch.json b/Natours/starter/.vscode/launch.json new file mode 100644 index 0000000000..4a5e3a8ba2 --- /dev/null +++ b/Natours/starter/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to Chrome", + "port": 9222, + "request": "attach", + "type": "pwa-chrome", + "webRoot": "${workspaceFolder}" + }, + { + "name": "Launch Chrome", + "request": "launch", + "type": "pwa-chrome", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + + + + + ] +} \ No newline at end of file diff --git a/Natours/starter/css/style.css b/Natours/starter/css/style.css index 9b2d76f44e..2d9d39e373 100644 --- a/Natours/starter/css/style.css +++ b/Natours/starter/css/style.css @@ -5,4 +5,145 @@ Light green: #7ed56f Medium green: #55c57a Dark green: #28b485 -*/ \ No newline at end of file +*/ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} +body { + font-size: 16px; + font-weight: 400; + font-family: "Lato", sans-serif; + line-height: 1.7; + color: rgb(255, 255, 255); + padding: 30px; +} +header { + height: 95vh; + background-image: linear-gradient(to right, #7ed56fc2, #28b485d0), + url(../img/hero.jpg); + background-size: cover; + background-position: top; + position: relative; + clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%); +} +.logo-box { + position: absolute; + top: 40px; + left: 40px; +} +.logo { + height: 34px; +} +.text-box { + position: absolute; + top: 40%; + left: 50%; + transform: translate(-50%, -50%); + text-align: center; +} +.btn:link, +.btn:visited { + text-decoration: none; + text-transform: uppercase; + position: relative; + transition: all 0.2s; +} +.btn:hover { + transform: translateY(-3px); + box-shadow: 0 10px 20px #252726d0; +} +.btn:active { + transform: translateY(-1px); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); +} +.btn-white { + background-color: #fff; + color: #777; + padding: 10px 40px; + border-radius: 100px; + display: inline-block; +} +.btn::after { + content: ""; + display: inline-block; + height: 100%; + width: 100%; + border-radius: 100px; + position: absolute; + top: 0; + left: 0; + z-index: -1; + transition: all 0.4s; +} +.btn-white::after { + background-color: white; +} +.btn:hover::after { + transform: scaleX(1.4) scaleY(1.6); + opacity: 0; +} +.btn-animated { + animation: moveInBottom .5s ease-out .75s ; + animation-fill-mode: backwards; +} +.heading-primary { + color: #ffffff; + text-transform: uppercase; + margin-bottom: 60px; +} +.heading-primary-main { + letter-spacing: 35px; + display: block; + font-weight: 400; + font-size: 60px; + animation-name: moveInRight; + animation-duration: 1s; + animation-timing-function: ease-out; + backface-visibility: hidden; +} +.heading-priamry-sub { + letter-spacing: 16.4px; + display: block; + font-weight: 700px; + font-size: 20px; + animation: moveToLeft ease-out 1s; + backface-visibility: hidden; +} +@keyframes moveInRight { + 1% { + opacity: 0; + transform: translateX(-100%) rotate(90deg); + } + 80% { + transform: translateX(10%); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} +@keyframes moveToLeft { + 1% { + opacity: 0; + transform: translateX(100%) rotate(90deg); + } + 80% { + transform: translateX(-10%); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} +@keyframes moveInBottom { + 1% { + opacity: 0; + transform: translateY(30%) ; + } + 100% { + opacity: 1; + transform: translateX(0); + } +} diff --git a/Natours/starter/index.html b/Natours/starter/index.html index d590f27228..a3d11ca767 100644 --- a/Natours/starter/index.html +++ b/Natours/starter/index.html @@ -12,8 +12,20 @@
+
+
+# Ajv: Another JSON Schema Validator
+
+The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/07.
+
+[](https://travis-ci.org/ajv-validator/ajv)
+[](https://www.npmjs.com/package/ajv)
+[](https://www.npmjs.com/package/ajv/v/7.0.0-beta.0)
+[](https://www.npmjs.com/package/ajv)
+[](https://coveralls.io/github/ajv-validator/ajv?branch=master)
+[](https://gitter.im/ajv-validator/ajv)
+[](https://github.com/sponsors/epoberezkin)
+
+
+## Ajv v7 beta is released
+
+[Ajv version 7.0.0-beta.0](https://github.com/ajv-validator/ajv/tree/v7-beta) is released with these changes:
+
+- to reduce the mistakes in JSON schemas and unexpected validation results, [strict mode](./docs/strict-mode.md) is added - it prohibits ignored or ambiguous JSON Schema elements.
+- to make code injection from untrusted schemas impossible, [code generation](./docs/codegen.md) is fully re-written to be safe.
+- to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas.
+- schemas are compiled to ES6 code (ES5 code generation is supported with an option).
+- to improve reliability and maintainability the code is migrated to TypeScript.
+
+**Please note**:
+
+- the support for JSON-Schema draft-04 is removed - if you have schemas using "id" attributes you have to replace them with "\$id" (or continue using version 6 that will be supported until 02/28/2021).
+- all formats are separated to ajv-formats package - they have to be explicitely added if you use them.
+
+See [release notes](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.0) for the details.
+
+To install the new version:
+
+```bash
+npm install ajv@beta
+```
+
+See [Getting started with v7](https://github.com/ajv-validator/ajv/tree/v7-beta#usage) for code example.
+
+
+## Mozilla MOSS grant and OpenJS Foundation
+
+[
](https://www.mozilla.org/en-US/moss/) [
](https://openjsf.org/blog/2020/08/14/ajv-joins-openjs-foundation-as-an-incubation-project/)
+
+Ajv has been awarded a grant from Mozilla’s [Open Source Support (MOSS) program](https://www.mozilla.org/en-US/moss/) in the “Foundational Technology” track! It will sponsor the development of Ajv support of [JSON Schema version 2019-09](https://tools.ietf.org/html/draft-handrews-json-schema-02) and of [JSON Type Definition](https://tools.ietf.org/html/draft-ucarion-json-type-definition-04).
+
+Ajv also joined [OpenJS Foundation](https://openjsf.org/) – having this support will help ensure the longevity and stability of Ajv for all its users.
+
+This [blog post](https://www.poberezkin.com/posts/2020-08-14-ajv-json-validator-mozilla-open-source-grant-openjs-foundation.html) has more details.
+
+I am looking for the long term maintainers of Ajv – working with [ReadySet](https://www.thereadyset.co/), also sponsored by Mozilla, to establish clear guidelines for the role of a "maintainer" and the contribution standards, and to encourage a wider, more inclusive, contribution from the community.
+
+
+## Please [sponsor Ajv development](https://github.com/sponsors/epoberezkin)
+
+Since I asked to support Ajv development 40 people and 6 organizations contributed via GitHub and OpenCollective - this support helped receiving the MOSS grant!
+
+Your continuing support is very important - the funds will be used to develop and maintain Ajv once the next major version is released.
+
+Please sponsor Ajv via:
+- [GitHub sponsors page](https://github.com/sponsors/epoberezkin) (GitHub will match it)
+- [Ajv Open Collective️](https://opencollective.com/ajv)
+
+Thank you.
+
+
+#### Open Collective sponsors
+
+