├── public
├── favicon.ico
├── robots.txt
├── favicon-16x16.png
├── favicon-32x32.png
├── apple-touch-icon.png
├── mstile-150x150.png
├── android-chrome-192x192.png
├── android-chrome-512x512.png
├── browserconfig.xml
├── site.webmanifest
├── manifest.json
├── dice2.svg
├── index.html
└── safari-pinned-tab.svg
├── src
├── assets
│ ├── img
│ │ ├── game.jpg
│ │ ├── game2.jpg
│ │ ├── playstation.jpg
│ │ ├── gradient.93e7eba9.png
│ │ └── xbox.svg
│ └── logo
│ │ ├── dice3.png
│ │ ├── logo-bright.png
│ │ ├── dice1.svg
│ │ ├── dice2.svg
│ │ └── dice3.svg
├── index.js
├── components
│ ├── style
│ │ ├── App.scss
│ │ ├── Button.scss
│ │ ├── _config.scss
│ │ ├── Categories.scss
│ │ ├── Navbar.scss
│ │ ├── About.scss
│ │ ├── Platform.scss
│ │ ├── Hero.scss
│ │ ├── Result.scss
│ │ └── output.css
│ ├── Button.js
│ ├── App.js
│ ├── Hero.js
│ ├── About.js
│ ├── Navbar.js
│ ├── Platform.js
│ ├── Categories.js
│ └── Result.js
└── api
│ └── games.js
├── .gitignore
├── package.json
└── README.md
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/public/favicon.ico
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/public/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/public/favicon-16x16.png
--------------------------------------------------------------------------------
/public/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/public/favicon-32x32.png
--------------------------------------------------------------------------------
/src/assets/img/game.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/src/assets/img/game.jpg
--------------------------------------------------------------------------------
/src/assets/img/game2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/src/assets/img/game2.jpg
--------------------------------------------------------------------------------
/public/apple-touch-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/public/apple-touch-icon.png
--------------------------------------------------------------------------------
/public/mstile-150x150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/public/mstile-150x150.png
--------------------------------------------------------------------------------
/src/assets/logo/dice3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/src/assets/logo/dice3.png
--------------------------------------------------------------------------------
/src/assets/img/playstation.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/src/assets/img/playstation.jpg
--------------------------------------------------------------------------------
/src/assets/logo/logo-bright.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/src/assets/logo/logo-bright.png
--------------------------------------------------------------------------------
/public/android-chrome-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/public/android-chrome-192x192.png
--------------------------------------------------------------------------------
/public/android-chrome-512x512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/public/android-chrome-512x512.png
--------------------------------------------------------------------------------
/src/assets/img/gradient.93e7eba9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishsalunkhe/gameflix/main/src/assets/img/gradient.93e7eba9.png
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom";
3 | import App from "./components/App";
4 |
5 | ReactDOM.render( , document.getElementById("root"));
6 |
--------------------------------------------------------------------------------
/src/components/style/App.scss:
--------------------------------------------------------------------------------
1 | @import "config";
2 |
3 |
4 | .app {
5 | &__main {
6 | background-color: #131018;
7 | background-size: 160px 40px;
8 | background-position: 0 0;
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/public/browserconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | #da532c
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/api/games.js:
--------------------------------------------------------------------------------
1 | import axios from "axios";
2 |
3 | export default axios.create({
4 | baseURL: "https://free-to-play-games-database.p.rapidapi.com/api",
5 | headers: {
6 | "x-rapidapi-key": "453e50eca1msh530d0dcca48e6f8p1b951bjsn4a4655d05368",
7 | "x-rapidapi-host": "free-to-play-games-database.p.rapidapi.com",
8 | },
9 | });
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/public/site.webmanifest:
--------------------------------------------------------------------------------
1 | {
2 | "name": "",
3 | "short_name": "",
4 | "icons": [
5 | {
6 | "src": "/android-chrome-192x192.png",
7 | "sizes": "192x192",
8 | "type": "image/png"
9 | },
10 | {
11 | "src": "/android-chrome-512x512.png",
12 | "sizes": "512x512",
13 | "type": "image/png"
14 | }
15 | ],
16 | "theme_color": "#ffffff",
17 | "background_color": "#ffffff",
18 | "display": "standalone"
19 | }
20 |
--------------------------------------------------------------------------------
/src/components/Button.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 |
3 | import "./style/Button.scss";
4 |
5 | const Button = ({ text, handleClick }) => {
6 | const [clicked, setClicked] = useState("btn");
7 |
8 | const animateClick = () => {
9 | setClicked("btn btn--clicked");
10 | setTimeout(() => {
11 | setClicked("btn");
12 | handleClick();
13 | }, 100);
14 | };
15 |
16 | return (
17 | {
19 | animateClick();
20 | }}
21 | className={clicked}
22 | >
23 | {text}
24 |
25 | );
26 | };
27 |
28 | export default Button;
29 |
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "GameFlix",
3 | "name": "GameFlix - Web app to showcase free-to-play cross platform games",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/style/Button.scss:
--------------------------------------------------------------------------------
1 | @import "config";
2 |
3 | $box-size: 2px;
4 |
5 | .btn {
6 | position: relative;
7 | // -webkit-box-align: center;
8 | font-family: 'Chakra Petch', sans-serif;
9 | background-color: rgb(250, 30, 78);
10 | color: $font-bright;
11 | font-size: 1.8rem;
12 | font-weight: 700;
13 | letter-spacing: 1px;
14 | padding: 1rem 2.3rem;
15 | border-radius: 0.5rem;
16 | border: none;
17 | outline: none;
18 | transition: 0.1s;
19 | cursor: pointer;
20 | display: block;
21 | margin: 0 auto;
22 | @include box-shadow($box-size, $button-box);
23 | &:hover {
24 | transform: scale(1.1);
25 | background-color: rgba(rgb(250, 30, 78), 100);
26 | box-shadow: none;
27 | }
28 | &--clicked {
29 | transform: translate($box-size, $box-size);
30 | @include box-shadow($box-size, transparent);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/components/App.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import "./style/App.scss";
3 |
4 | // import games from "../api/games";
5 | import Navbar from "./Navbar";
6 | import Hero from "./Hero";
7 | import About from "./About";
8 | import Categories from "./Categories";
9 | import Platform from "./Platform";
10 | import Result from "./Result";
11 |
12 | const App = () => {
13 | const [categories, setCategories] = useState();
14 | const [platform, setPlatform] = useState();
15 | const [rand, setRand] = useState(false);
16 | return (
17 |
18 |
19 |
20 |
21 | {/* */}
22 |
23 |
24 |
30 |
31 |
32 | );
33 | };
34 |
35 | export default App;
36 |
--------------------------------------------------------------------------------
/src/components/Hero.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import "./style/Hero.scss";
3 | import Button from "./Button";
4 | import logo from "../assets/logo/dice2.svg";
5 | import { Link } from "react-scroll";
6 | const Hero = () => {
7 | return (
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | GameFlix
20 |
21 | Showcasing free-to-play games at one place!
22 |
23 |
24 |
25 |
26 |
27 |
36 | {/* {}} /> */}
37 |
38 |
39 |
40 | );
41 | };
42 |
43 | export default Hero;
44 |
--------------------------------------------------------------------------------
/src/components/style/_config.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | //background colors
4 | $bcg-purple: #6930c3;
5 | $bcg-blue: #2f80f8;
6 | $bcg-dark: #0d0f0f;
7 | $bcg-bright: #fdffff;
8 |
9 | //accents
10 | $accent-dark: #101414;
11 | $accent-bright: #e9f5ff;
12 |
13 | //font colors
14 | $font-bright: #f7feff;
15 | $font-dark: #38353a;
16 |
17 | //shade
18 | $dark-shade: rgba(0, 0, 0, 0.3);
19 | $button-box: rgb(0, 0, 0) -6px 7px 0px;
20 | $bright-shade: rgba(255, 255, 255, 0.6);
21 |
22 | //breakpoints
23 | $ip6: 375px;
24 | $ipad: 768px;
25 | $mobile: 600px;
26 | $desktop: 1025px;
27 |
28 | //reset
29 | *,
30 | *::after,
31 | *::before {
32 | padding: 0;
33 | margin: 0;
34 | box-sizing: border-box;
35 | }
36 |
37 | $wrapper-desktop: 900px;
38 |
39 | :root {
40 | font-size: 9px;
41 | font-family: 'Chakra Petch', sans-serif;
42 | color: $font-bright;
43 |
44 | @media screen and (min-width: $ip6) {
45 | font-size: 10px;
46 | }
47 |
48 | @media screen and (min-width: $ipad) {
49 | font-size: 11px;
50 | }
51 | @media screen and (min-width: $desktop) {
52 | font-size: 12px;
53 | }
54 | }
55 |
56 | @mixin box-shadow($size, $color) {
57 | box-shadow: $size $size $size $size $color;
58 | }
59 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 |
3 | "name": "gameflix",
4 | "version": "0.1.0",
5 | "private": true,
6 | "dependencies": {
7 | "@testing-library/jest-dom": "^5.11.10",
8 | "@testing-library/react": "^11.2.5",
9 | "@testing-library/user-event": "^12.8.3",
10 | "axios": "^0.21.4",
11 | "sass": "^1.51.0",
12 | "react": "^17.0.2",
13 | "react-dom": "^17.0.2",
14 | "react-router-dom": "^5.2.0",
15 | "react-scripts": "4.0.3",
16 | "react-scroll": "^1.8.2",
17 | "web-vitals": "^1.1.1"
18 | },
19 | "scripts": {
20 | "predeploy": "npm run build",
21 | "deploy": "gh-pages -d build",
22 | "start": "react-scripts start",
23 | "build": "react-scripts build",
24 | "test": "react-scripts test",
25 | "eject": "react-scripts eject"
26 | },
27 | "eslintConfig": {
28 | "extends": [
29 | "react-app",
30 | "react-app/jest"
31 | ]
32 | },
33 | "browserslist": {
34 | "production": [
35 | ">0.2%",
36 | "not dead",
37 | "not op_mini all"
38 | ],
39 | "development": [
40 | "last 1 chrome version",
41 | "last 1 firefox version",
42 | "last 1 safari version"
43 | ]
44 | },
45 | "devDependencies": {
46 | "gh-pages": "^3.1.0"
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/components/About.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import "./style/About.scss";
3 | import playstation from "../assets/img/playstation.jpg";
4 |
5 | const About = () => {
6 | return (
7 |
8 |
9 | .about
10 |
11 |
12 |
13 |
14 | Are you bored of your current game? Are you unsure of what game you
15 | want to spend money and time on? Maybe you are very specific Player
16 | with sophisticated taste?
17 |
18 |
19 | It is your lucky day! With Gamebrary you will find the best game on
20 | the market. Search between different categories that we prepared for
21 | you, or use dice roll !
22 |
23 |
24 |
29 |
30 |
31 | );
32 | };
33 |
34 | export default About;
35 |
--------------------------------------------------------------------------------
/src/components/Navbar.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { Link } from "react-scroll";
3 | import "./style/Navbar.scss";
4 |
5 | import logo from "../assets/logo/dice2.svg";
6 |
7 | const Navbar = ({ setRand }) => {
8 | return (
9 |
10 |
11 |
12 |
13 |
14 | {/*
15 |
23 | Start!
24 |
25 | */}
26 | {
29 | setRand(true);
30 | }}
31 | >
32 | {
39 | setRand(true);
40 | }}
41 | >
42 | I'm Feeling Lucky!
43 |
44 |
45 |
46 |
47 |
48 | );
49 | };
50 |
51 | export default Navbar;
52 |
--------------------------------------------------------------------------------
/src/components/style/Categories.scss:
--------------------------------------------------------------------------------
1 | @import "config";
2 |
3 | .categories {
4 | padding: 30px;
5 |
6 | &__wrapper {
7 | max-width: 570px;
8 | margin: 0 auto;
9 |
10 | @media screen and (min-width: $ipad) {
11 | max-width: 700px;
12 | }
13 |
14 | @media screen and (min-width: $desktop) {
15 | max-width: $wrapper-desktop;
16 | padding: 0 25px;
17 | flex-direction: row;
18 | }
19 | }
20 |
21 | &__title {
22 | font-size: 3rem;
23 | font-weight: 400;
24 | letter-spacing: 3px;
25 | margin-bottom: 24px;
26 | }
27 | &__box {
28 | display: flex;
29 | justify-content: space-evenly;
30 | flex-wrap: wrap;
31 | }
32 | &__item {
33 | text-align: center;
34 | font-size: 1.4rem;
35 | font-weight: 400;
36 | padding: 4px 5px;
37 | margin: 7px 4px;
38 | min-width: 55px;
39 | color: $font-bright;
40 | background-color: #fa1e4e;
41 | @include box-shadow(2px, $dark-shade);
42 | border-radius: 10px;
43 | cursor: pointer;
44 | transition: 0.2s;
45 |
46 | @media screen and (min-width: $ipad) {
47 | margin: 10px;
48 | min-width: 85px;
49 | font-size: 1.6rem;
50 | }
51 |
52 | &:hover {
53 | transform: scale(1.1);
54 | background-color:#e3e4e6;
55 | color: $font-dark;
56 | }
57 |
58 | &--active {
59 | background-color: $bcg-purple;
60 | box-shadow: none;
61 | color: $font-bright;
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/src/components/Platform.js:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect } from "react";
2 |
3 | import "./style/Platform.scss";
4 |
5 | const platforms = [
6 | {
7 | name: "browser",
8 | icon: "far fa-window-maximize",
9 | color: "#02c0e4",
10 | },
11 | {
12 | name: "PC",
13 | icon: "fab fa-windows",
14 | color: "#00A4EF",
15 | },
16 | ];
17 |
18 | const Platform = ({ setPlatform, setRand }) => {
19 | const [selected, setSelected] = useState(null);
20 |
21 | const renderedPlatforms = platforms.map((platform, index) => {
22 | return (
23 | {
31 | setRand(false);
32 | setSelected(platform.name.toLowerCase());
33 | }}
34 | >
35 | {/*
*/}
39 |
{platform.name}
40 |
41 | );
42 | });
43 |
44 | useEffect(() => {
45 | setPlatform(selected);
46 | }, [selected]);
47 |
48 | return (
49 |
50 |
51 |
52 | platform
53 |
54 |
{renderedPlatforms}
55 |
56 |
57 | );
58 | };
59 |
60 | export default Platform;
61 |
--------------------------------------------------------------------------------
/src/components/style/Navbar.scss:
--------------------------------------------------------------------------------
1 | @import "config";
2 |
3 | .nav {
4 | position: fixed;
5 | top: 0;
6 | width: 100%;
7 | background-color: #180e17;
8 | z-index: 1;
9 |
10 | &__wrapper {
11 | display: flex;
12 | justify-content: space-between;
13 | align-items: center;
14 | max-width: 570px;
15 | padding-right: 10px;
16 | margin: 0 auto;
17 |
18 | @media screen and (min-width: $ipad) {
19 | max-width: 700px;
20 | }
21 |
22 | @media screen and (min-width: $desktop) {
23 | max-width: 900px;
24 | }
25 | }
26 |
27 | &__logo {
28 | padding-top: 2rem;
29 | padding-bottom: 2rem;
30 | width: 4.5rem;
31 | margin: 10px;
32 | margin-left: 25px;
33 | color: #02c0e4;
34 | @media screen and (min-width: $ipad) {
35 | width: 5rem;
36 | }
37 | }
38 |
39 | &__list {
40 | list-style-type: none;
41 | display: flex;
42 | }
43 |
44 | &__item {
45 | position: relative;
46 | font-size: 1.4rem;
47 | font-weight: 400;
48 | letter-spacing: 2px;
49 | margin-left: 2rem;
50 | cursor: pointer;
51 | text-align: right;
52 | @media screen and (min-width: $ipad) {
53 | margin-left: 3rem;
54 | }
55 | }
56 |
57 | &__item::before {
58 | box-sizing: border-box;
59 | content: "";
60 | position: absolute;
61 | width: 0%;
62 | left: 50%;
63 | bottom: -4px;
64 | transition: 0.3s;
65 | }
66 |
67 | &__item:hover::before {
68 | cursor: pointer;
69 | width: 100%;
70 | box-shadow: 0 0 2px 1px cyan;
71 | left: 0;
72 | }
73 | &__luckycolor{
74 | color: #02c0e4;
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/src/components/style/About.scss:
--------------------------------------------------------------------------------
1 | @import "config";
2 |
3 | .about {
4 | padding: 50px 26px;
5 |
6 | &__title {
7 | font-size: 3rem;
8 | font-weight: 400;
9 | letter-spacing: 3px;
10 | margin: 0 auto;
11 | margin-bottom: 10px;
12 | max-width: 570px;
13 |
14 | @media screen and (min-width: $ipad) {
15 | max-width: 700px;
16 | }
17 |
18 | @media screen and (min-width: $desktop) {
19 | max-width: $wrapper-desktop;
20 | padding: 0 25px;
21 | flex-direction: row;
22 | }
23 | }
24 |
25 | &__wrapper {
26 | display: flex;
27 | flex-direction: column;
28 | margin: 0 auto;
29 | max-width: 570px;
30 |
31 | @media screen and (min-width: $ipad) {
32 | max-width: 700px;
33 | }
34 |
35 | @media screen and (min-width: $desktop) {
36 | max-width: $wrapper-desktop;
37 | flex-direction: row;
38 | }
39 | }
40 | &__description {
41 | @media screen and (min-width: $desktop) {
42 | display: flex;
43 | flex-direction: column;
44 | justify-content: center;
45 | }
46 | }
47 | &__text {
48 | line-height: 1.7;
49 | font-size: 1.1rem;
50 | font-weight: 300;
51 | letter-spacing: 1px;
52 | margin: 10px auto;
53 |
54 | @media screen and (min-width: $desktop) {
55 | max-width: 1100px;
56 | flex-direction: row;
57 | margin: 25px;
58 | font-size: 1.4rem;
59 | }
60 | }
61 |
62 | &__image {
63 | display: block;
64 | width: 90%;
65 | margin: 0 auto;
66 | border-radius: 0.4rem;
67 | position: relative;
68 | filter: contrast(75%);
69 |
70 | @media screen and (min-width: $desktop) {
71 | width: 50%;
72 | }
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/src/components/Categories.js:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect } from "react";
2 | import "./style/Categories.scss";
3 |
4 | const categories = [
5 | "mmorpg",
6 | "shooter",
7 | "mmo",
8 | "social",
9 | "strategy",
10 | "moba",
11 | "racing",
12 | "sports",
13 | "card game",
14 | "battle royale",
15 | "fantasy",
16 | "fighting",
17 | "action rpg",
18 | ];
19 |
20 | const Categories = ({ setCategories, setRand }) => {
21 | const [selected, setSelected] = useState([]);
22 |
23 | const clickHandle = (category) => {
24 | let arr = [...selected];
25 |
26 | if (selected.includes(category)) {
27 | setSelected(arr.filter((e) => e !== category));
28 | } else {
29 | setSelected([...arr, category]);
30 | }
31 | };
32 |
33 | useEffect(() => {
34 | setCategories(selected);
35 | }, [selected]);
36 |
37 | const renderedCategories = categories.map((category, index) => {
38 | return (
39 | {
47 | setRand(false);
48 | clickHandle(category);
49 | }}
50 | >
51 | {category}
52 |
53 | );
54 | });
55 |
56 | return (
57 |
58 |
59 |
60 | categories
61 |
62 |
{renderedCategories}
63 |
64 |
65 | );
66 | };
67 |
68 | export default Categories;
69 |
--------------------------------------------------------------------------------
/src/assets/logo/dice1.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/assets/img/xbox.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/components/style/Platform.scss:
--------------------------------------------------------------------------------
1 | @import "config";
2 |
3 | .platform {
4 | padding: 26px;
5 |
6 | &__wrapper {
7 | max-width: 570px;
8 | margin: 0 auto;
9 |
10 | @media screen and (min-width: $ipad) {
11 | max-width: 700px;
12 | }
13 |
14 | @media screen and (min-width: $desktop) {
15 | max-width: $wrapper-desktop;
16 | padding: 0 25px;
17 | flex-direction: row;
18 | }
19 | }
20 | &__title {
21 | font-size: 3rem;
22 | font-weight: 400;
23 | color: #e3e4e6;
24 | letter-spacing: 3px;
25 | margin-bottom: 24px;
26 | }
27 |
28 | &__box {
29 | display: flex;
30 | flex-wrap: wrap;
31 | justify-content: space-around;
32 |
33 | @media screen and (min-width: $ipad) {
34 | flex-flow: row;
35 | justify-content: space-around;
36 | }
37 | }
38 |
39 | &__item {
40 | text-align: center;
41 | font-size: 1.4rem;
42 | font-weight: 400;
43 | padding: 0px 15px 4px 15px;
44 | margin: 7px 4px;
45 | min-width: 55px;
46 | color: $font-bright;
47 | background-color: #fa1e4e;
48 | @include box-shadow(2px, $dark-shade);
49 | border-radius: 10px;
50 | cursor: pointer;
51 | transition: 0.2s;
52 |
53 | @media screen and (min-width: $ipad) {
54 | max-width: 190px;
55 | // padding: 25px;
56 | }
57 | @media screen and (min-width: $desktop) {
58 | max-width: 220px;
59 | }
60 | &:hover {
61 | background-color: #5778a3;
62 | box-shadow: none;
63 | filter: contrast(180%);
64 | }
65 |
66 | &--active {
67 | transform: scale(1.08);
68 | background-color: $bcg-purple;
69 | box-shadow: none;
70 | color: $font-bright;
71 | filter: contrast(180%);
72 | }
73 | }
74 |
75 | &__icon {
76 | font-size: 5rem;
77 |
78 | @media screen and (min-width: $ipad) {
79 | font-size: 6rem;
80 | }
81 | }
82 |
83 | &__name {
84 | font-size: 2.2rem;
85 | // font-weight: 200;
86 | margin-top: 8px;
87 | color: #fff;
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/public/dice2.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/assets/logo/dice2.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/assets/logo/dice3.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/components/style/Hero.scss:
--------------------------------------------------------------------------------
1 | @import "config";
2 |
3 | .hero {
4 | position: relative;
5 | height: 70vh;
6 |
7 | background-color: #180e17;
8 |
9 | @media screen and (orientation: landscape) {
10 | height: 80vh;
11 | }
12 |
13 | &__header {
14 | position: absolute;
15 | width: 100%;
16 | margin: 0 auto;
17 | bottom: 20%;
18 |
19 | @media screen and (min-width: $desktop) {
20 | bottom: 18%;
21 | }
22 | }
23 |
24 | &__title {
25 | padding: 0 2.5rem;
26 | text-align: center;
27 |
28 | @media screen and (min-width: 600px) {
29 | padding: 0 4rem;
30 | }
31 | @media screen and (min-width: $desktop) {
32 | padding: 0 14rem;
33 | }
34 | @media screen and (min-width: 1600px) {
35 | padding: 0 22rem;
36 | }
37 | }
38 |
39 | &__maintitle {
40 | font-size: 3rem;
41 | font-weight: 400;
42 | margin-bottom: 1.3rem;
43 | color: #fa1e4e;
44 | @media screen and (min-width: $desktop) {
45 | font-size: 8rem;
46 | }
47 | }
48 |
49 | &__subtitle {
50 | font-size: 1.8rem;
51 | font-weight: 300;
52 | color: #e3e4e6;
53 | @media screen and (min-width: $desktop) {
54 | font-size: 2.2rem;
55 | }
56 | }
57 |
58 | &__btn {
59 | position: absolute;
60 | bottom: 0;
61 | left: 50%;
62 | transform: translate(-50%, 50%);
63 | }
64 |
65 | }
66 | .bgimage{
67 | display: flex;
68 | align-items: center;
69 | justify-content: center;
70 |
71 | position: absolute;
72 | width: 10%;
73 | // background-image: url("../../assets/logo/dice2.svg");
74 | right: 45%;
75 | bottom: 50%;
76 |
77 | @media screen and (min-width: 600px) {
78 | width: 45%;
79 | right: 32%;
80 | bottom: 50%;
81 | }
82 | @media screen and (min-width: $desktop) {
83 | width:20%;
84 | right: 32%;
85 | bottom: 50%;
86 | }
87 | @media screen and (min-width: 375px) {
88 | width: 6%;
89 | right: 47%;
90 | bottom: 50%;
91 | }
92 | }
93 |
94 | .animate{
95 | animation: fadeInAnimation ease 3s;
96 | animation-iteration-count: 1;
97 | animation-fill-mode: forwards;
98 | }
99 | @keyframes fadeInAnimation {
100 | 0% {
101 | opacity: 0;
102 | }
103 | 100% {
104 | opacity: 1;
105 | }
106 | }
107 |
108 |
109 |
--------------------------------------------------------------------------------
/src/components/Result.js:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect } from "react";
2 | import games from "../api/games";
3 | import Button from "./Button";
4 | import "./style/Result.scss";
5 |
6 | const Result = ({ categories, platform, random, setRand }) => {
7 | const [results, setResults] = useState([]);
8 |
9 | const filterResults = (results) => {
10 | return results.filter((result) => {
11 | return categories.every((item) =>
12 | result.genre.toLowerCase().includes(item)
13 | );
14 | });
15 | };
16 | useEffect(() => {
17 | if (random) {
18 | getResults();
19 | }
20 | return () => {
21 | setRand(false);
22 | };
23 | }, [random]);
24 | const getResults = async () => {
25 | const { data } = await games.get("/games", {
26 | params: {
27 | platform: platform,
28 | tag: { ...categories },
29 | },
30 | });
31 |
32 | if (random) {
33 | let rand = Math.floor(Math.random() * data.length);
34 |
35 | setResults([data[rand]]);
36 | } else {
37 | setResults(filterResults(data));
38 | }
39 | };
40 | const renderedResults = results.map(
41 | ({
42 | id,
43 | thumbnail,
44 | short_description,
45 | title,
46 | developer,
47 | genre,
48 | game_url,
49 | }) => {
50 | return (
51 |
52 |
57 |
58 |
{title}
59 |
{developer}
60 |
{short_description}
61 |
{genre}
62 |
63 |
64 | );
65 | }
66 | );
67 | return (
68 |
69 |
70 |
71 | results
72 |
73 |
74 |
75 |
76 |
77 |
{renderedResults}
78 |
79 |
80 | );
81 | };
82 |
83 | export default Result;
84 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
37 |
38 |
47 | GameFlix
48 |
49 |
50 | You need to enable JavaScript to run this app.
51 |
52 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/src/components/style/Result.scss:
--------------------------------------------------------------------------------
1 | @import "config";
2 |
3 | .result {
4 | padding: 26px;
5 | &__wrapper {
6 | max-width: 570px;
7 | margin: 0 auto;
8 |
9 | @media screen and (min-width: $ipad) {
10 | max-width: 700px;
11 | }
12 |
13 | @media screen and (min-width: $desktop) {
14 | max-width: $wrapper-desktop;
15 | padding: 0 25px;
16 | flex-direction: row;
17 | }
18 | }
19 | &__title {
20 | font-size: 3rem;
21 | font-weight: 400;
22 | letter-spacing: 3px;
23 | margin-bottom: 24px;
24 | }
25 |
26 | &__box {
27 | display: flex;
28 | flex-wrap: wrap;
29 | justify-content: center;
30 | }
31 |
32 | &__item {
33 | text-align: center;
34 | font-size: 1.4rem;
35 | font-weight: 400;
36 | padding: 4px 5px;
37 | margin: 10px 10px;
38 | min-width: 55px;
39 | color: $font-bright;
40 | background-color: #fa1e4e;
41 | @include box-shadow(2px, $dark-shade);
42 | border-radius: 10px;
43 | cursor: pointer;
44 | transition: 0.2s;
45 |
46 | @media screen and (min-width: $ipad) {
47 | margin: 10px;
48 | min-width: 85px;
49 | font-size: 1.6rem;
50 | }
51 |
52 | &:hover {
53 | transform: scale(1.1);
54 | background-color:#e3e4e6;
55 | color: $font-dark;
56 | }
57 |
58 | &--active {
59 | background-color: $bcg-purple;
60 | box-shadow: none;
61 | color: $font-bright;
62 | }
63 | }
64 |
65 | &__card {
66 | color: $font-bright;
67 | text-decoration: none;
68 | border: 6px solid #fa1e4e31;
69 | max-width: 200px;
70 | border-radius: 20px;
71 | background-color: rgb(4, 150, 150);
72 | overflow: hidden;
73 | display: flex;
74 | flex-direction: column;
75 | margin: 10px;
76 | background-color: $dark-shade;
77 | cursor: pointer;
78 | // @include box-shadow(2px, $dark-shade);
79 | transition: 0.2s;
80 | &:hover {
81 | transform: scale(1.1);
82 | background-color: rgba(black, 0.5);
83 | box-shadow: none;
84 | }
85 |
86 | &:hover > img {
87 |
88 | }
89 | @media screen and (min-width: $ipad) {
90 | max-width: 240px;
91 | }
92 |
93 | @media screen and (min-width: $desktop) {
94 | max-width: 260px;
95 | }
96 | }
97 |
98 | &__img {
99 | width: 100%;
100 | transition: 0.2s;
101 | }
102 |
103 | &__content {
104 | position: relative;
105 | padding: 16px;
106 | padding-bottom: 32px;
107 | height: 100%;
108 | }
109 |
110 | &__name {
111 | font-size: 1.8rem;
112 | font-weight: 700;
113 | color: #5778A3;
114 | margin-bottom: 2px;
115 | }
116 | &__developer {
117 | font-size: 1.1rem;
118 | color: #3b999b;
119 | font-weight: 400;
120 | }
121 |
122 | &__description {
123 | font-size: 1.4rem;
124 | margin: 7px 0;
125 | color: #e3e4e6;
126 | font-weight: 300;
127 | letter-spacing: 1px;
128 | }
129 |
130 | &__category {
131 | position: absolute;
132 | bottom: 0px;
133 | margin: 7px 0;
134 | font-size: 1rem;
135 | font-weight: 300;
136 | align-self: flex-end;
137 | }
138 |
139 | &__panel {
140 | margin-bottom: 20px;
141 | }
142 | }
143 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # GameFlix
2 |
3 | This website is live at [GameFlix](https://thegameflix.vercel.app/).
4 |
5 |
6 |
7 | # Getting Started with Create React App
8 |
9 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
10 |
11 | ## Available Scripts
12 |
13 | In the project directory, you can run:
14 |
15 | ### `npm start`
16 |
17 | Runs the app in the development mode.\
18 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
19 |
20 | The page will reload if you make edits.\
21 | You will also see any lint errors in the console.
22 |
23 | ### `npm test`
24 |
25 | Launches the test runner in the interactive watch mode.\
26 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
27 |
28 | ### `npm run build`
29 |
30 | Builds the app for production to the `build` folder.\
31 | It correctly bundles React in production mode and optimizes the build for the best performance.
32 |
33 | The build is minified and the filenames include the hashes.\
34 | Your app is ready to be deployed!
35 |
36 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
37 |
38 | ### `npm run eject`
39 |
40 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
41 |
42 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
43 |
44 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
45 |
46 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
47 |
48 | ## Learn More
49 |
50 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
51 |
52 | To learn React, check out the [React documentation](https://reactjs.org/).
53 |
54 | ### Code Splitting
55 |
56 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
57 |
58 | ### Analyzing the Bundle Size
59 |
60 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
61 |
62 | ### Making a Progressive Web App
63 |
64 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
65 |
66 | ### Advanced Configuration
67 |
68 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
69 |
70 | ### Deployment
71 |
72 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
73 |
74 | ### `npm run build` fails to minify
75 |
76 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
77 |
--------------------------------------------------------------------------------
/src/components/style/output.css:
--------------------------------------------------------------------------------
1 | @import "config";
2 |
3 | /*
4 | ! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com
5 | */
6 |
7 | /*
8 | 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
9 | 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
10 | */
11 |
12 | *,
13 | ::before,
14 | ::after {
15 | box-sizing: border-box;
16 | /* 1 */
17 | border-width: 0;
18 | /* 2 */
19 | border-style: solid;
20 | /* 2 */
21 | border-color: #e5e7eb;
22 | /* 2 */
23 | }
24 |
25 | ::before,
26 | ::after {
27 | --tw-content: '';
28 | }
29 |
30 | /*
31 | 1. Use a consistent sensible line-height in all browsers.
32 | 2. Prevent adjustments of font size after orientation changes in iOS.
33 | 3. Use a more readable tab size.
34 | 4. Use the user's configured `sans` font-family by default.
35 | */
36 |
37 | html {
38 | line-height: 1.5;
39 | /* 1 */
40 | -webkit-text-size-adjust: 100%;
41 | /* 2 */
42 | -moz-tab-size: 4;
43 | /* 3 */
44 | tab-size: 4;
45 | /* 3 */
46 | font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
47 | /* 4 */
48 | }
49 |
50 | /*
51 | 1. Remove the margin in all browsers.
52 | 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
53 | */
54 |
55 | body {
56 | margin: 0;
57 | /* 1 */
58 | line-height: inherit;
59 | /* 2 */
60 | }
61 |
62 | /*
63 | 1. Add the correct height in Firefox.
64 | 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
65 | 3. Ensure horizontal rules are visible by default.
66 | */
67 |
68 | hr {
69 | height: 0;
70 | /* 1 */
71 | color: inherit;
72 | /* 2 */
73 | border-top-width: 1px;
74 | /* 3 */
75 | }
76 |
77 | /*
78 | Add the correct text decoration in Chrome, Edge, and Safari.
79 | */
80 |
81 | abbr:where([title]) {
82 | -webkit-text-decoration: underline dotted;
83 | text-decoration: underline dotted;
84 | }
85 |
86 | /*
87 | Remove the default font size and weight for headings.
88 | */
89 |
90 | h1,
91 | h2,
92 | h3,
93 | h4,
94 | h5,
95 | h6 {
96 | font-size: inherit;
97 | font-weight: inherit;
98 | }
99 |
100 | /*
101 | Reset links to optimize for opt-in styling instead of opt-out.
102 | */
103 |
104 | a {
105 | color: inherit;
106 | text-decoration: inherit;
107 | }
108 |
109 | /*
110 | Add the correct font weight in Edge and Safari.
111 | */
112 |
113 | b,
114 | strong {
115 | font-weight: bolder;
116 | }
117 |
118 | /*
119 | 1. Use the user's configured `mono` font family by default.
120 | 2. Correct the odd `em` font sizing in all browsers.
121 | */
122 |
123 | code,
124 | kbd,
125 | samp,
126 | pre {
127 | font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
128 | /* 1 */
129 | font-size: 1em;
130 | /* 2 */
131 | }
132 |
133 | /*
134 | Add the correct font size in all browsers.
135 | */
136 |
137 | small {
138 | font-size: 80%;
139 | }
140 |
141 | /*
142 | Prevent `sub` and `sup` elements from affecting the line height in all browsers.
143 | */
144 |
145 | sub,
146 | sup {
147 | font-size: 75%;
148 | line-height: 0;
149 | position: relative;
150 | vertical-align: baseline;
151 | }
152 |
153 | sub {
154 | bottom: -0.25em;
155 | }
156 |
157 | sup {
158 | top: -0.5em;
159 | }
160 |
161 | /*
162 | 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
163 | 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
164 | 3. Remove gaps between table borders by default.
165 | */
166 |
167 | table {
168 | text-indent: 0;
169 | /* 1 */
170 | border-color: inherit;
171 | /* 2 */
172 | border-collapse: collapse;
173 | /* 3 */
174 | }
175 |
176 | /*
177 | 1. Change the font styles in all browsers.
178 | 2. Remove the margin in Firefox and Safari.
179 | 3. Remove default padding in all browsers.
180 | */
181 |
182 | button,
183 | input,
184 | optgroup,
185 | select,
186 | textarea {
187 | font-family: inherit;
188 | /* 1 */
189 | font-size: 100%;
190 | /* 1 */
191 | line-height: inherit;
192 | /* 1 */
193 | color: inherit;
194 | /* 1 */
195 | margin: 0;
196 | /* 2 */
197 | padding: 0;
198 | /* 3 */
199 | }
200 |
201 | /*
202 | Remove the inheritance of text transform in Edge and Firefox.
203 | */
204 |
205 | button,
206 | select {
207 | text-transform: none;
208 | }
209 |
210 | /*
211 | 1. Correct the inability to style clickable types in iOS and Safari.
212 | 2. Remove default button styles.
213 | */
214 |
215 | button,
216 | [type='button'],
217 | [type='reset'],
218 | [type='submit'] {
219 | -webkit-appearance: button;
220 | /* 1 */
221 | background-color: transparent;
222 | /* 2 */
223 | background-image: none;
224 | /* 2 */
225 | }
226 |
227 | /*
228 | Use the modern Firefox focus style for all focusable elements.
229 | */
230 |
231 | :-moz-focusring {
232 | outline: auto;
233 | }
234 |
235 | /*
236 | Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
237 | */
238 |
239 | :-moz-ui-invalid {
240 | box-shadow: none;
241 | }
242 |
243 | /*
244 | Add the correct vertical alignment in Chrome and Firefox.
245 | */
246 |
247 | progress {
248 | vertical-align: baseline;
249 | }
250 |
251 | /*
252 | Correct the cursor style of increment and decrement buttons in Safari.
253 | */
254 |
255 | ::-webkit-inner-spin-button,
256 | ::-webkit-outer-spin-button {
257 | height: auto;
258 | }
259 |
260 | /*
261 | 1. Correct the odd appearance in Chrome and Safari.
262 | 2. Correct the outline style in Safari.
263 | */
264 |
265 | [type='search'] {
266 | -webkit-appearance: textfield;
267 | /* 1 */
268 | outline-offset: -2px;
269 | /* 2 */
270 | }
271 |
272 | /*
273 | Remove the inner padding in Chrome and Safari on macOS.
274 | */
275 |
276 | ::-webkit-search-decoration {
277 | -webkit-appearance: none;
278 | }
279 |
280 | /*
281 | 1. Correct the inability to style clickable types in iOS and Safari.
282 | 2. Change font properties to `inherit` in Safari.
283 | */
284 |
285 | ::-webkit-file-upload-button {
286 | -webkit-appearance: button;
287 | /* 1 */
288 | font: inherit;
289 | /* 2 */
290 | }
291 |
292 | /*
293 | Add the correct display in Chrome and Safari.
294 | */
295 |
296 | summary {
297 | display: list-item;
298 | }
299 |
300 | /*
301 | Removes the default spacing and border for appropriate elements.
302 | */
303 |
304 | blockquote,
305 | dl,
306 | dd,
307 | h1,
308 | h2,
309 | h3,
310 | h4,
311 | h5,
312 | h6,
313 | hr,
314 | figure,
315 | p,
316 | pre {
317 | margin: 0;
318 | }
319 |
320 | fieldset {
321 | margin: 0;
322 | padding: 0;
323 | }
324 |
325 | legend {
326 | padding: 0;
327 | }
328 |
329 | ol,
330 | ul,
331 | menu {
332 | list-style: none;
333 | margin: 0;
334 | padding: 0;
335 | }
336 |
337 | /*
338 | Prevent resizing textareas horizontally by default.
339 | */
340 |
341 | textarea {
342 | resize: vertical;
343 | }
344 |
345 | /*
346 | 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
347 | 2. Set the default placeholder color to the user's configured gray 400 color.
348 | */
349 |
350 | input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
351 | opacity: 1;
352 | /* 1 */
353 | color: #9ca3af;
354 | /* 2 */
355 | }
356 |
357 | input:-ms-input-placeholder, textarea:-ms-input-placeholder {
358 | opacity: 1;
359 | /* 1 */
360 | color: #9ca3af;
361 | /* 2 */
362 | }
363 |
364 | input::placeholder,
365 | textarea::placeholder {
366 | opacity: 1;
367 | /* 1 */
368 | color: #9ca3af;
369 | /* 2 */
370 | }
371 |
372 | /*
373 | Set the default cursor for buttons.
374 | */
375 |
376 | button,
377 | [role="button"] {
378 | cursor: pointer;
379 | }
380 |
381 | /*
382 | Make sure disabled buttons don't get the pointer cursor.
383 | */
384 |
385 | :disabled {
386 | cursor: default;
387 | }
388 |
389 | /*
390 | 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
391 | 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
392 | This can trigger a poorly considered lint error in some tools but is included by design.
393 | */
394 |
395 | img,
396 | svg,
397 | video,
398 | canvas,
399 | audio,
400 | iframe,
401 | embed,
402 | object {
403 | display: block;
404 | /* 1 */
405 | vertical-align: middle;
406 | /* 2 */
407 | }
408 |
409 | /*
410 | Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
411 | */
412 |
413 | img,
414 | video {
415 | max-width: 100%;
416 | height: auto;
417 | }
418 |
419 | /*
420 | Ensure the default browser behavior of the `hidden` attribute.
421 | */
422 |
423 | [hidden] {
424 | display: none;
425 | }
426 |
427 | *, ::before, ::after{
428 | --tw-translate-x: 0;
429 | --tw-translate-y: 0;
430 | --tw-rotate: 0;
431 | --tw-skew-x: 0;
432 | --tw-skew-y: 0;
433 | --tw-scale-x: 1;
434 | --tw-scale-y: 1;
435 | --tw-pan-x: ;
436 | --tw-pan-y: ;
437 | --tw-pinch-zoom: ;
438 | --tw-scroll-snap-strictness: proximity;
439 | --tw-ordinal: ;
440 | --tw-slashed-zero: ;
441 | --tw-numeric-figure: ;
442 | --tw-numeric-spacing: ;
443 | --tw-numeric-fraction: ;
444 | --tw-ring-inset: ;
445 | --tw-ring-offset-width: 0px;
446 | --tw-ring-offset-color: #fff;
447 | --tw-ring-color: rgb(59 130 246 / 0.5);
448 | --tw-ring-offset-shadow: 0 0 #0000;
449 | --tw-ring-shadow: 0 0 #0000;
450 | --tw-shadow: 0 0 #0000;
451 | --tw-shadow-colored: 0 0 #0000;
452 | --tw-blur: ;
453 | --tw-brightness: ;
454 | --tw-contrast: ;
455 | --tw-grayscale: ;
456 | --tw-hue-rotate: ;
457 | --tw-invert: ;
458 | --tw-saturate: ;
459 | --tw-sepia: ;
460 | --tw-drop-shadow: ;
461 | --tw-backdrop-blur: ;
462 | --tw-backdrop-brightness: ;
463 | --tw-backdrop-contrast: ;
464 | --tw-backdrop-grayscale: ;
465 | --tw-backdrop-hue-rotate: ;
466 | --tw-backdrop-invert: ;
467 | --tw-backdrop-opacity: ;
468 | --tw-backdrop-saturate: ;
469 | --tw-backdrop-sepia: ;
470 | }
471 |
472 | .filter{
473 | -webkit-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
474 | filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
475 | }
476 |
477 | .app {
478 | &__main {
479 | background-image: linear-gradient(
480 | rgba(80, 80, 80, 0.8),
481 | rgba(80, 80, 80, 0.8)
482 | ),
483 | url("../../assets/img/xbox.svg"), linear-gradient(white, white);
484 | background-size: 160px 40px;
485 | background-position: 0 0;
486 | }
487 | }
488 |
--------------------------------------------------------------------------------
/public/safari-pinned-tab.svg:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 | Created by potrace 1.14, written by Peter Selinger 2001-2017
9 |
10 |
12 |
59 |
82 |
108 |
120 |
140 |
156 |
189 |
222 |
249 |
269 |
270 |
271 |
--------------------------------------------------------------------------------