diff --git a/README.md b/README.md index 6958796..aa18856 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ This repository contains the source code required to build the [HawAPI](https:// - [Dependencies](#dependencies) - [Setup](#usage) - [Scripts](#scripts) -- [Preview](#preview) - [Contributing](#contributing) - [License](#license) @@ -76,25 +75,6 @@ All scripts are run from the root of the project, from a terminal: | `yarn build-all` | Build all production site to `./build/` | | `yarn clean` | Remove `./build/` | -> **Note** \ -> See [docs](https://github.com/HawAPI/docs) to check all docs scripts. - -## Preview - -
-Home - -![Home](./assets/preview-home-min.png) - -
- -
-Try it - -![Try it](./assets/preview-try-it-min.png) - -
- ## Contributing You could help continuing its development by: diff --git a/assets/preview-home-min.png b/assets/preview-home-min.png deleted file mode 100644 index efcbaf1..0000000 Binary files a/assets/preview-home-min.png and /dev/null differ diff --git a/assets/preview-try-it-min.png b/assets/preview-try-it-min.png deleted file mode 100644 index bec550a..0000000 Binary files a/assets/preview-try-it-min.png and /dev/null differ diff --git a/src/components/core/BackgroundEffect.astro b/src/components/core/BackgroundEffect.astro index 8e51da3..9579bdc 100644 --- a/src/components/core/BackgroundEffect.astro +++ b/src/components/core/BackgroundEffect.astro @@ -11,8 +11,9 @@ border-right: 32rem solid transparent; border-top: 70rem solid red; filter: blur(120px); + top: 0; opacity: 0.15; - position: fixed; + position: absolute; pointer-events: none; } diff --git a/src/components/layouts/Layout.astro b/src/components/layouts/Layout.astro index 7e940ab..6e76594 100644 --- a/src/components/layouts/Layout.astro +++ b/src/components/layouts/Layout.astro @@ -18,8 +18,8 @@ const { description = 'A Free and Open Source API for Stranger Things.', tags = 'stranger things, stranger, things, stranger-things, st1, st2, st3, st4, api, github, git, hawapi, haw api, haw-api, HawAPI/HawAPI, theproject id, theproject.id, hawapi.theproject.id, netflix, watch, rest, free, open source', author = 'LucJosin', - banner = '/images/banner.png', - icon = '/favicon.ico', + banner = Astro.url + 'images/banner.png', + icon = Astro.url + 'favicon.ico', } = Astro.props as Props; --- @@ -40,9 +40,8 @@ const { - - - + + - + @@ -171,7 +170,6 @@ const { :global(body) { margin: 0; - overflow: hidden; } :global(main) { @@ -181,7 +179,6 @@ const { flex-direction: column; align-items: center; justify-content: center; - overflow: hidden; } :global(a) { @@ -214,7 +211,35 @@ const { } :global(::-webkit-scrollbar-thumb) { - background-color: #fff; + background-color: var(--secondary-color); + } + + :global(.btn) { + display: flex; + height: 2.5rem; + width: 8rem; + border: none; + border-radius: 5px; + align-items: center; + justify-content: center; + transition: all 0.5s; + border: 1px solid transparent; + } + + :global(.btn-full) { + background-color: rgb(179, 2, 2); + color: white; + } + + :global(.btn-full:hover) { + background-color: rgb(100, 2, 2); + color: white; + } + + :global(.btn-border) { + border: 1px solid rgb(179, 2, 2); + background-color: transparent; + color: white; } @media (max-width: 1340px) { diff --git a/src/pages/404.astro b/src/pages/404.astro new file mode 100644 index 0000000..53e012e --- /dev/null +++ b/src/pages/404.astro @@ -0,0 +1,25 @@ +--- +import BackgroundEffect from '@components/core/BackgroundEffect.astro'; +import Layout from '@components/layouts/Layout.astro'; +--- + + +
+ +

404

+

This page could not be found.

+ Go Back +
+
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index e38e62d..53661f7 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,8 +5,7 @@ import Layout from '@components/layouts/Layout.astro'; + src="https://cdn.statically.io/libs/typed.js/2.0.11/typed.min.js">
@@ -27,13 +26,17 @@ import Layout from '@components/layouts/Layout.astro';

+ src="https://unpkg.com/swagger-ui-dist@4.19.0/swagger-ui-bundle.js">