├── .gitignore
├── README.md
├── package.json
├── public
├── favicon.ico
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
└── robots.txt
├── src
├── App.js
├── App.test.js
├── assets
│ ├── fonts
│ │ ├── eina01-bold-webfont.17ecfa75.woff2
│ │ ├── eina01-regular-webfont.57ac5b4b.woff2
│ │ └── eina01-semibold-webfont.93d21e16.woff2
│ └── images
│ │ └── line-bg.svg
├── components
│ ├── Section1.js
│ ├── Section2.js
│ ├── Section3.js
│ ├── Section4.js
│ ├── Section5.js
│ └── Section6.js
├── index.js
├── index.scss
├── pages
│ └── Landing.js
├── serviceWorker.js
├── setupTests.js
├── styles
│ ├── app.scss
│ ├── breakpoints.scss
│ ├── components
│ │ ├── section.scss
│ │ └── sections.scss
│ └── variables.scss
└── utils
│ └── index.js
└── yarn.lock
/.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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2 |
3 | ## Available Scripts
4 |
5 | In the project directory, you can run:
6 |
7 | ### `yarn start`
8 |
9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11 |
12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console.
14 |
15 | ### `yarn test`
16 |
17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19 |
20 | ### `yarn build`
21 |
22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance.
24 |
25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed!
27 |
28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29 |
30 | ### `yarn eject`
31 |
32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33 |
34 | 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.
35 |
36 | 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.
37 |
38 | 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.
39 |
40 | ## Learn More
41 |
42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43 |
44 | To learn React, check out the [React documentation](https://reactjs.org/).
45 |
46 | ### Code Splitting
47 |
48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49 |
50 | ### Analyzing the Bundle Size
51 |
52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53 |
54 | ### Making a Progressive Web App
55 |
56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57 |
58 | ### Advanced Configuration
59 |
60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61 |
62 | ### Deployment
63 |
64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65 |
66 | ### `yarn build` fails to minify
67 |
68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
69 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-starter",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@testing-library/jest-dom": "^4.2.4",
7 | "@testing-library/react": "^9.3.2",
8 | "@testing-library/user-event": "^7.1.2",
9 | "framer-motion": "^2.7.6",
10 | "gsap": "^3.5.1",
11 | "node-sass": "^4.14.1",
12 | "react": "^16.13.1",
13 | "react-dom": "^16.13.1",
14 | "react-scripts": "3.4.3"
15 | },
16 | "scripts": {
17 | "start": "react-scripts start",
18 | "build": "react-scripts build",
19 | "test": "react-scripts test",
20 | "eject": "react-scripts eject"
21 | },
22 | "eslintConfig": {
23 | "extends": "react-app"
24 | },
25 | "browserslist": {
26 | "production": [
27 | ">0.2%",
28 | "not dead",
29 | "not op_mini all"
30 | ],
31 | "development": [
32 | "last 1 chrome version",
33 | "last 1 firefox version",
34 | "last 1 safari version"
35 | ]
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oluwadareseyi/abeg-rebuild/e576d851b4f4ed9548888cd7c1417010827c3ced/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
11 |
12 |
16 |
17 |
21 |
22 |
31 | React App
32 |
33 |
34 | You need to enable JavaScript to run this app.
35 |
36 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oluwadareseyi/abeg-rebuild/e576d851b4f4ed9548888cd7c1417010827c3ced/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oluwadareseyi/abeg-rebuild/e576d851b4f4ed9548888cd7c1417010827c3ced/public/logo512.png
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
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 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/src/App.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import Landing from "./pages/Landing";
3 | import "./styles/app.scss";
4 |
5 | function App() {
6 | return (
7 |
8 |
9 |
10 | );
11 | }
12 |
13 | export default App;
14 |
--------------------------------------------------------------------------------
/src/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { render } from '@testing-library/react';
3 | import App from './App';
4 |
5 | test('renders learn react link', () => {
6 | const { getByText } = render( );
7 | const linkElement = getByText(/learn react/i);
8 | expect(linkElement).toBeInTheDocument();
9 | });
10 |
--------------------------------------------------------------------------------
/src/assets/fonts/eina01-bold-webfont.17ecfa75.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oluwadareseyi/abeg-rebuild/e576d851b4f4ed9548888cd7c1417010827c3ced/src/assets/fonts/eina01-bold-webfont.17ecfa75.woff2
--------------------------------------------------------------------------------
/src/assets/fonts/eina01-regular-webfont.57ac5b4b.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oluwadareseyi/abeg-rebuild/e576d851b4f4ed9548888cd7c1417010827c3ced/src/assets/fonts/eina01-regular-webfont.57ac5b4b.woff2
--------------------------------------------------------------------------------
/src/assets/fonts/eina01-semibold-webfont.93d21e16.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oluwadareseyi/abeg-rebuild/e576d851b4f4ed9548888cd7c1417010827c3ced/src/assets/fonts/eina01-semibold-webfont.93d21e16.woff2
--------------------------------------------------------------------------------
/src/assets/images/line-bg.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/components/Section1.js:
--------------------------------------------------------------------------------
1 | import { motion } from "framer-motion";
2 | import React from "react";
3 | import { transition } from "../utils";
4 |
5 | const spring = { type: "spring", bounce: 0.7, stiffness: 200, duration: 0.8 };
6 |
7 | const sectionVariant = {
8 | hidden: {
9 | opacity: 0,
10 | },
11 | visible: {
12 | opacity: 1,
13 | },
14 | leave: {
15 | opacity: 0,
16 | transition: { ...transition, delay: 1.1 },
17 | },
18 | };
19 |
20 | const titleVariant = {
21 | hidden: {
22 | y: 50,
23 | },
24 | visible: {
25 | y: 0,
26 | },
27 | leave: {
28 | y: 50,
29 | transition: { ...transition, delay: 1.1 },
30 | },
31 | };
32 |
33 | const bubble1 = {
34 | hidden: {
35 | scale: 0,
36 | },
37 | visible: {
38 | scale: 1,
39 | transition: { ...spring },
40 | },
41 | leave: {
42 | scale: 0.5,
43 | opacity: 0,
44 | transition: { ...spring, duration: 0.7, delay: 0.7, bounce: 0.6 },
45 | },
46 | };
47 |
48 | const bubble2 = {
49 | hidden: {
50 | scale: 0,
51 | x: 140,
52 | y: 140,
53 | },
54 | visible: {
55 | scale: 1,
56 | x: 140,
57 | y: 140,
58 | transition: { ...spring, delay: 0.1 },
59 | },
60 | leave: {
61 | scale: 0.5,
62 | x: 140,
63 | opacity: 0,
64 | y: 140,
65 | transition: { ...spring, delay: 0.7, duration: 0.5 },
66 | },
67 | };
68 |
69 | const bubble3 = {
70 | hidden: {
71 | scale: 0,
72 | x: -140,
73 | y: -140,
74 | },
75 | visible: {
76 | scale: 1,
77 | x: -140,
78 | y: -140,
79 | transition: { ...spring, delay: 0.2 },
80 | },
81 | leave: {
82 | scale: 0.5,
83 | x: -140,
84 | opacity: 0,
85 | y: -140,
86 | transition: { ...spring, delay: 0.8, duration: 0.5 },
87 | },
88 | };
89 |
90 | const bubble4 = {
91 | hidden: {
92 | scale: 0,
93 | x: 140,
94 | y: -140,
95 | },
96 | visible: {
97 | scale: 1,
98 | x: 140,
99 | y: -140,
100 | transition: { ...spring, delay: 0.3 },
101 | },
102 | leave: {
103 | scale: 0.5,
104 | opacity: 0,
105 | x: 140,
106 | y: -140,
107 | transition: { ...spring, delay: 0.9, duration: 0.5 },
108 | },
109 | };
110 |
111 | const bubble5 = {
112 | hidden: {
113 | scale: 0,
114 | x: -140,
115 | y: 140,
116 | },
117 | visible: {
118 | scale: 1,
119 | x: -140,
120 | y: 140,
121 | transition: { ...spring, delay: 0.4 },
122 | },
123 | leave: {
124 | scale: 0.5,
125 | opacity: 0,
126 | x: -140,
127 | y: 140,
128 | transition: { ...spring, delay: 1, duration: 0.5 },
129 | },
130 | };
131 |
132 | const Section1 = () => {
133 | return (
134 |
142 |
143 |
144 |
145 |
146 |
151 | Make Someone
152 |
153 |
154 |
155 |
156 |
161 | Happy With Cash
162 |
163 |
164 |
165 |
170 | Do you want to pay for the food you ordered for a friend, send money
171 | to your babe or friends? use Anon.
172 |
173 |
174 |
179 |
180 |
Coming soon
181 |
App Store
182 |
183 |
184 |
Coming soon
185 |
Google Play
186 |
187 |
188 |
189 |
190 |
191 |
195 |
199 |
203 |
207 |
211 |
212 |
213 |
214 | );
215 | };
216 |
217 | export default Section1;
218 |
--------------------------------------------------------------------------------
/src/components/Section2.js:
--------------------------------------------------------------------------------
1 | import { motion } from "framer-motion";
2 | import React from "react";
3 | import { transition } from "../utils";
4 |
5 | const sectionVariant = {
6 | hidden: {
7 | opacity: 0,
8 | },
9 | visible: {
10 | opacity: 1,
11 | },
12 | leave: {
13 | opacity: 0,
14 | transition: { ...transition, delay: 0.5 },
15 | },
16 | };
17 |
18 | const titleVariant = {
19 | hidden: {
20 | y: 50,
21 | },
22 | visible: {
23 | y: 0,
24 | },
25 | leave: {
26 | y: 50,
27 | transition: { ...transition, delay: 0.5 },
28 | },
29 | };
30 |
31 | const imageVariant = {
32 | hidden: {
33 | y: 100,
34 | opacity: 0,
35 | },
36 | visible: {
37 | y: 0,
38 | opacity: 1,
39 | transition: { ...transition, duration: 1, type: "spring", bounce: 0.4 },
40 | },
41 | leave: {
42 | y: 100,
43 | opacity: 0,
44 | transition: {
45 | ...transition,
46 | duration: 0.7,
47 | type: "spring",
48 | bounce: 0.2,
49 | delay: 0.5,
50 | },
51 | },
52 | };
53 |
54 | const Section2 = () => {
55 | return (
56 |
64 |
65 |
66 |
67 |
68 |
73 | Digitally Kick A**
74 |
75 |
76 |
77 |
82 | With Anon you get a digital wallet that can be funded by a transfer
83 | from any bank.
84 |
85 |
86 |
91 |
92 |
Withdraw your cash
93 |
94 |
95 |
Fund your wallet
96 |
97 |
98 |
99 |
100 |
101 |
105 |
106 |
107 |
108 |
109 | );
110 | };
111 |
112 | export default Section2;
113 |
--------------------------------------------------------------------------------
/src/components/Section3.js:
--------------------------------------------------------------------------------
1 | import { motion } from "framer-motion";
2 | import React from "react";
3 | import { transition } from "../utils";
4 |
5 | const sectionVariant = {
6 | hidden: {
7 | opacity: 0,
8 | },
9 | visible: {
10 | opacity: 1,
11 | },
12 | leave: {
13 | opacity: 0,
14 | transition: { ...transition, delay: 0.5 },
15 | },
16 | };
17 |
18 | const titleVariant = {
19 | hidden: {
20 | y: 50,
21 | },
22 | visible: {
23 | y: 0,
24 | },
25 | leave: {
26 | y: 50,
27 | transition: { ...transition, delay: 0.5 },
28 | },
29 | };
30 |
31 | const imageVariant = {
32 | hidden: {
33 | y: 100,
34 | opacity: 0,
35 | },
36 | visible: {
37 | y: 0,
38 | opacity: 1,
39 | transition: {
40 | ...transition,
41 | duration: 1,
42 | type: "spring",
43 | bounce: 0.4,
44 | staggerChildren: 0.1,
45 | delayChildren: 0.1,
46 | },
47 | },
48 | leave: {
49 | y: 100,
50 | opacity: 0,
51 | transition: {
52 | ...transition,
53 | duration: 0.5,
54 | type: "spring",
55 | bounce: 0.1,
56 | delay: 0.2,
57 | staggerChildren: 0.05,
58 | },
59 | },
60 | };
61 |
62 | const circleVariant = {
63 | hidden: {
64 | scale: 0,
65 | opacity: 0,
66 | y: 20,
67 | x: 20,
68 | z: 20,
69 | },
70 | visible: {
71 | scale: 1,
72 | x: 0,
73 | y: 0,
74 | z: 0,
75 | opacity: 1,
76 | transition: {
77 | type: "tween",
78 | ease: "easeOut",
79 | duration: 0.5,
80 | },
81 | },
82 | leave: {
83 | scale: 0,
84 | opacity: 0,
85 | transition: {
86 | delay: 0.1,
87 | duration: 0.01,
88 | },
89 | },
90 | };
91 |
92 | const bellVariant = {
93 | hidden: {
94 | scale: 0,
95 | opacity: 0,
96 | rotate: -380,
97 | },
98 | visible: {
99 | scale: 1,
100 | rotate: 0,
101 | opacity: 1,
102 | transition: {
103 | type: "spring",
104 | bounce: 0.4,
105 | duration: 0.6,
106 | },
107 | },
108 | leave: {
109 | scale: 0,
110 | rotate: -380,
111 | opacity: 0,
112 | transition: {
113 | duration: 0.01,
114 | delay: 0.1,
115 | },
116 | },
117 | };
118 |
119 | const phoneVariant = {
120 | hidden: {
121 | y: 50,
122 | opacity: 0,
123 | },
124 | visible: {
125 | y: 0,
126 | opacity: 1,
127 | transition: {
128 | delay: 0.4,
129 | },
130 | },
131 | leave: {
132 | y: 50,
133 | opacity: 0,
134 | delay: 0.1,
135 | },
136 | };
137 |
138 | const notVariant = {
139 | hidden: {
140 | y: 50,
141 | opacity: 0,
142 | },
143 | visible: {
144 | y: 0,
145 | opacity: 1,
146 | transition: {
147 | delay: 0.8,
148 | },
149 | },
150 | leave: {
151 | opacity: 0,
152 | delay: 0.1,
153 | },
154 | };
155 |
156 | const Section3 = () => {
157 | return (
158 |
166 |
167 |
168 |
169 |
170 |
175 | Sending Money
176 |
177 |
178 |
179 |
180 |
185 |
186 | Can Be Fun Too{" "}
187 |
188 | 💃🏽
189 |
190 |
191 |
192 |
193 |
194 |
199 | Send money to people on your contact list using their phone numbers
200 | or via payment links that can be shared however you decide or even
201 | using bank accounts.
202 |
203 |
204 |
209 |
212 |
215 |
216 |
217 |
218 |
219 |
223 |
224 |
225 |
226 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
240 |
241 |
242 |
246 |
247 |
248 |
252 |
253 |
254 |
258 |
259 |
260 |
261 |
262 |
263 | );
264 | };
265 |
266 | export default Section3;
267 |
--------------------------------------------------------------------------------
/src/components/Section4.js:
--------------------------------------------------------------------------------
1 | import { motion } from "framer-motion";
2 | import React from "react";
3 | import { transition } from "../utils";
4 |
5 | const sectionVariant = {
6 | hidden: {
7 | opacity: 0,
8 | },
9 | visible: {
10 | opacity: 1,
11 | },
12 | leave: {
13 | opacity: 0,
14 | transition: { ...transition, delay: 0.8 },
15 | },
16 | };
17 |
18 | const innerVariant = {
19 | hidden: {
20 | rotateY: -90,
21 | },
22 | visible: {
23 | rotateY: 0,
24 | transition: {
25 | type: "tween",
26 | ease: "easeOut",
27 | duration: 0.8,
28 | delay: 0.4,
29 | },
30 | },
31 | leave: {
32 | rotateY: -90,
33 | transition: {
34 | type: "tween",
35 | ease: "easeIn",
36 | duration: 0.3,
37 | delay: 0.7,
38 | },
39 | },
40 | };
41 |
42 | const phoneVariant = {
43 | hidden: {
44 | y: 50,
45 | opacity: 0,
46 | },
47 | visible: {
48 | y: 0,
49 | opacity: 1,
50 | transition: {
51 | delay: 0.5,
52 | duration: 0.5,
53 | type: "tween",
54 | ease: "easeIn",
55 | },
56 | },
57 | leave: {
58 | y: 50,
59 | opacity: 0,
60 | transition: {
61 | delay: 0.3,
62 | duration: 0.3,
63 | },
64 | },
65 | };
66 |
67 | const phone2Variant = {
68 | hidden: {
69 | y: 50,
70 | opacity: 0,
71 | },
72 | visible: {
73 | y: 0,
74 | opacity: 1,
75 | transition: {
76 | delay: 0.6,
77 | duration: 0.5,
78 | type: "tween",
79 | ease: "easeIn",
80 | },
81 | },
82 | leave: {
83 | y: 50,
84 | opacity: 0,
85 | transition: {
86 | delay: 0.4,
87 | duration: 0.3,
88 | },
89 | },
90 | };
91 |
92 | const phone3Variant = {
93 | hidden: {
94 | y: 50,
95 | opacity: 0,
96 | },
97 | visible: {
98 | y: 0,
99 | opacity: 1,
100 | transition: {
101 | delay: 0.7,
102 | duration: 0.5,
103 | type: "tween",
104 | ease: "easeIn",
105 | },
106 | },
107 | leave: {
108 | y: 50,
109 | opacity: 0,
110 | transition: {
111 | delay: 0.5,
112 | duration: 0.3,
113 | },
114 | },
115 | };
116 |
117 | const Section4 = () => {
118 | return (
119 |
127 |
132 |
133 | Just Go Cashless, Abeg
134 |
135 |
136 |
137 |
Coming soon
138 |
App Store
139 |
140 |
141 |
Get it on
142 |
Google Play
143 |
144 |
145 |
150 |
151 |
152 | );
153 | };
154 |
155 | export default Section4;
156 |
--------------------------------------------------------------------------------
/src/components/Section5.js:
--------------------------------------------------------------------------------
1 | import { motion } from "framer-motion";
2 | import React from "react";
3 | import { transition } from "../utils";
4 |
5 | const sectionVariant = {
6 | hidden: {
7 | opacity: 0,
8 | y: 50,
9 | },
10 | visible: {
11 | opacity: 1,
12 | y: 0,
13 | },
14 | leave: {
15 | opacity: 0,
16 | y: 50,
17 | transition: { ...transition, delay: 0.7 },
18 | },
19 | };
20 |
21 | const Section5 = () => {
22 | return (
23 |
24 |
32 | Abeg, I don try, na clone.
33 |
34 |
35 | );
36 | };
37 |
38 | export default Section5;
39 |
--------------------------------------------------------------------------------
/src/components/Section6.js:
--------------------------------------------------------------------------------
1 | import { motion } from "framer-motion";
2 | import React from "react";
3 | import { transition } from "../utils";
4 |
5 | const sectionVariant = {
6 | hidden: {
7 | opacity: 0,
8 | y: 50,
9 | },
10 | visible: {
11 | opacity: 1,
12 | y: 0,
13 | },
14 | leave: {
15 | opacity: 0,
16 | y: 50,
17 | transition: { ...transition, delay: 0.7 },
18 | },
19 | };
20 |
21 | const Section6 = () => {
22 | return (
23 |
24 |
32 | You still came here? Tragic.
33 |
34 |
35 | );
36 | };
37 |
38 | export default Section6;
39 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom";
3 | import "./index.scss";
4 | import App from "./App";
5 | import * as serviceWorker from "./serviceWorker";
6 |
7 | ReactDOM.render(
8 |
9 |
10 | ,
11 | document.getElementById("root")
12 | );
13 |
14 | // If you want your app to work offline and load faster, you can change
15 | // unregister() to register() below. Note this comes with some pitfalls.
16 | // Learn more about service workers: https://bit.ly/CRA-PWA
17 | serviceWorker.unregister();
18 |
--------------------------------------------------------------------------------
/src/index.scss:
--------------------------------------------------------------------------------
1 | @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,600&display=swap');
2 | @import './styles/breakpoints.scss';
3 |
4 | // Resets
5 | * {
6 | box-sizing: border-box;
7 |
8 | &::before,
9 | &::after {
10 | box-sizing: border-box;
11 | }
12 | }
13 |
14 | a {
15 | text-decoration: none;
16 | color: inherit;
17 | }
18 |
19 | body {
20 | margin: 0;
21 | background: #166fc9;
22 | color: #ffffff;
23 | font-family: "Eina", sans-serif;
24 | font-size: 16px;
25 |
26 | @include media("<=1200px") {
27 | font-size: 14px;
28 | }
29 | }
30 |
31 | // Fonts
32 | @font-face {
33 | font-family: 'Eina';
34 | src: url('./assets/fonts/eina01-regular-webfont.57ac5b4b.woff2') format('woff2');
35 | font-weight: 400;
36 | font-style: normal;
37 | font-display: swap;
38 | }
39 |
40 | @font-face {
41 | font-family: 'Eina';
42 | src: url('./assets/fonts/eina01-semibold-webfont.93d21e16.woff2') format('woff2');
43 | font-weight: 500;
44 | font-style: normal;
45 | font-display: swap;
46 | }
47 |
48 | @font-face {
49 | font-family: 'Eina';
50 | src: url('./assets/fonts/eina01-bold-webfont.17ecfa75.woff2') format('woff2');
51 | font-weight: 600;
52 | font-style: normal;
53 | font-display: swap;
54 | }
--------------------------------------------------------------------------------
/src/pages/Landing.js:
--------------------------------------------------------------------------------
1 | import { AnimatePresence } from "framer-motion";
2 | import gsap from "gsap";
3 | import React, { useState, useEffect } from "react";
4 | import Section1 from "../components/Section1";
5 | import Section2 from "../components/Section2";
6 | import Section3 from "../components/Section3";
7 | import Section4 from "../components/Section4";
8 | import Section5 from "../components/Section5";
9 | import Section6 from "../components/Section6";
10 |
11 | const SECTIONS = {
12 | 1: ,
13 | 2: ,
14 | 3: ,
15 | 4: ,
16 | 5: ,
17 | 6: ,
18 | };
19 |
20 | const Landing = () => {
21 | const [activeSection, setActiveSection] = useState(1);
22 | const [isScrolling, setIsScrolling] = useState(false);
23 |
24 | useEffect(() => {
25 | gsap.to(".line-bg", {
26 | duration: 3,
27 | x: `-${6.67 * activeSection}%`,
28 | ease: "Elastic.easeOut",
29 | });
30 | const handleScroll = (e) => {
31 | if (isScrolling) return;
32 | if (e.deltaY > 0 || e.deltaY === -0) {
33 | if (activeSection === 6) return;
34 | setIsScrolling(true);
35 | setActiveSection(activeSection + 1);
36 | } else {
37 | if (activeSection <= 1) return;
38 | setIsScrolling(true);
39 | setActiveSection((state) => state - 1);
40 | }
41 |
42 | setTimeout(() => {
43 | setIsScrolling(false);
44 | }, 2000);
45 | };
46 | window.addEventListener("wheel", handleScroll);
47 |
48 | return () => {
49 | window.removeEventListener("wheel", handleScroll);
50 | };
51 | }, [activeSection, isScrolling]);
52 | return (
53 |
54 |
55 | Anon
56 |
57 |
58 | {/* The line background that has an elastic effect on scroll */}
59 |
60 |
61 | {/* Section mounts/unmounts based on state */}
62 |
63 |
64 | {SECTIONS[activeSection]}
65 |
66 |
67 |
68 | {/* Scroll indicator */}
69 |
70 |
71 |
72 | {[...new Array(6)].map((_, i) => (
73 |
80 | ))}
81 |
82 |
83 |
84 |
88 |
89 |
90 |
91 | );
92 | };
93 |
94 | export default Landing;
95 |
--------------------------------------------------------------------------------
/src/serviceWorker.js:
--------------------------------------------------------------------------------
1 | // This optional code is used to register a service worker.
2 | // register() is not called by default.
3 |
4 | // This lets the app load faster on subsequent visits in production, and gives
5 | // it offline capabilities. However, it also means that developers (and users)
6 | // will only see deployed updates on subsequent visits to a page, after all the
7 | // existing tabs open on the page have been closed, since previously cached
8 | // resources are updated in the background.
9 |
10 | // To learn more about the benefits of this model and instructions on how to
11 | // opt-in, read https://bit.ly/CRA-PWA
12 |
13 | const isLocalhost = Boolean(
14 | window.location.hostname === 'localhost' ||
15 | // [::1] is the IPv6 localhost address.
16 | window.location.hostname === '[::1]' ||
17 | // 127.0.0.0/8 are considered localhost for IPv4.
18 | window.location.hostname.match(
19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
20 | )
21 | );
22 |
23 | export function register(config) {
24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
25 | // The URL constructor is available in all browsers that support SW.
26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
27 | if (publicUrl.origin !== window.location.origin) {
28 | // Our service worker won't work if PUBLIC_URL is on a different origin
29 | // from what our page is served on. This might happen if a CDN is used to
30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374
31 | return;
32 | }
33 |
34 | window.addEventListener('load', () => {
35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
36 |
37 | if (isLocalhost) {
38 | // This is running on localhost. Let's check if a service worker still exists or not.
39 | checkValidServiceWorker(swUrl, config);
40 |
41 | // Add some additional logging to localhost, pointing developers to the
42 | // service worker/PWA documentation.
43 | navigator.serviceWorker.ready.then(() => {
44 | console.log(
45 | 'This web app is being served cache-first by a service ' +
46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA'
47 | );
48 | });
49 | } else {
50 | // Is not localhost. Just register service worker
51 | registerValidSW(swUrl, config);
52 | }
53 | });
54 | }
55 | }
56 |
57 | function registerValidSW(swUrl, config) {
58 | navigator.serviceWorker
59 | .register(swUrl)
60 | .then(registration => {
61 | registration.onupdatefound = () => {
62 | const installingWorker = registration.installing;
63 | if (installingWorker == null) {
64 | return;
65 | }
66 | installingWorker.onstatechange = () => {
67 | if (installingWorker.state === 'installed') {
68 | if (navigator.serviceWorker.controller) {
69 | // At this point, the updated precached content has been fetched,
70 | // but the previous service worker will still serve the older
71 | // content until all client tabs are closed.
72 | console.log(
73 | 'New content is available and will be used when all ' +
74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
75 | );
76 |
77 | // Execute callback
78 | if (config && config.onUpdate) {
79 | config.onUpdate(registration);
80 | }
81 | } else {
82 | // At this point, everything has been precached.
83 | // It's the perfect time to display a
84 | // "Content is cached for offline use." message.
85 | console.log('Content is cached for offline use.');
86 |
87 | // Execute callback
88 | if (config && config.onSuccess) {
89 | config.onSuccess(registration);
90 | }
91 | }
92 | }
93 | };
94 | };
95 | })
96 | .catch(error => {
97 | console.error('Error during service worker registration:', error);
98 | });
99 | }
100 |
101 | function checkValidServiceWorker(swUrl, config) {
102 | // Check if the service worker can be found. If it can't reload the page.
103 | fetch(swUrl, {
104 | headers: { 'Service-Worker': 'script' },
105 | })
106 | .then(response => {
107 | // Ensure service worker exists, and that we really are getting a JS file.
108 | const contentType = response.headers.get('content-type');
109 | if (
110 | response.status === 404 ||
111 | (contentType != null && contentType.indexOf('javascript') === -1)
112 | ) {
113 | // No service worker found. Probably a different app. Reload the page.
114 | navigator.serviceWorker.ready.then(registration => {
115 | registration.unregister().then(() => {
116 | window.location.reload();
117 | });
118 | });
119 | } else {
120 | // Service worker found. Proceed as normal.
121 | registerValidSW(swUrl, config);
122 | }
123 | })
124 | .catch(() => {
125 | console.log(
126 | 'No internet connection found. App is running in offline mode.'
127 | );
128 | });
129 | }
130 |
131 | export function unregister() {
132 | if ('serviceWorker' in navigator) {
133 | navigator.serviceWorker.ready
134 | .then(registration => {
135 | registration.unregister();
136 | })
137 | .catch(error => {
138 | console.error(error.message);
139 | });
140 | }
141 | }
142 |
--------------------------------------------------------------------------------
/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom/extend-expect';
6 |
--------------------------------------------------------------------------------
/src/styles/app.scss:
--------------------------------------------------------------------------------
1 | @import './breakpoints.scss';
2 | @import './variables.scss';
3 | @import './components/sections.scss';
4 | @import './components/section.scss';
--------------------------------------------------------------------------------
/src/styles/breakpoints.scss:
--------------------------------------------------------------------------------
1 | $breakpoints: (
2 | "phone": 425px,
3 | "tablet": 768px,
4 | "desktop": 1366px,
5 | "LGdesktop": 1920px
6 | ) !default;
7 |
8 | ///
9 | /// Creates a list of static expressions or media types
10 | ///
11 | /// @author Eduardo Boucas
12 | ///
13 | /// @example scss - Creates a single media type (screen)
14 | /// $media-expressions: ('screen': 'screen');
15 | ///
16 | /// @example scss - Creates a static expression with logical disjunction (OR operator)
17 | /// $media-expressions: (
18 | /// 'retina2x': (
19 | /// '(-webkit-min-device-pixel-ratio: 2)',
20 | /// '(min-resolution: 192dpi)'
21 | /// )
22 | /// );
23 | ///
24 | $media-expressions: (
25 | "screen": "screen",
26 | "print": "print",
27 | "handheld": "handheld",
28 | "retina2x": (
29 | "(-webkit-min-device-pixel-ratio: 2)",
30 | "(min-resolution: 192dpi)"
31 | ),
32 | "retina3x": (
33 | "(-webkit-min-device-pixel-ratio: 3)",
34 | "(min-resolution: 350dpi)"
35 | )
36 | ) !default;
37 |
38 | ///
39 | /// Defines a number to be added or subtracted from each unit when declaring breakpoints with exclusive intervals
40 | ///
41 | /// @author Eduardo Boucas
42 | ///
43 | /// @example scss - Interval for pixels is defined as `1` by default
44 | /// @include media(">128px") {}
45 | ///
46 | /// /* Generates: */
47 | /// @media (min-width: 129px) {}
48 | ///
49 | /// @example scss - Interval for ems is defined as `0.01` by default
50 | /// @include media(">20em") {}
51 | ///
52 | /// /* Generates: */
53 | /// @media (min-width: 20.01em) {}
54 | ///
55 | /// @example scss - Interval for rems is defined as `0.1` by default, to be used with `font-size: 62.5%;`
56 | /// @include media(">2.0rem") {}
57 | ///
58 | /// /* Generates: */
59 | /// @media (min-width: 2.1rem) {}
60 | ///
61 | $unit-intervals: (
62 | "px": 1,
63 | "em": 0.01,
64 | "rem": 0.1
65 | ) !default;
66 | ///
67 | /// Generates a media query based on a list of conditions
68 | ///
69 | /// @author Eduardo Boucas
70 | ///
71 | /// @param {List} $conditions - Media query conditions
72 | ///
73 | /// @example scss - With a single set breakpoint
74 | /// @include media(">phone") { }
75 | ///
76 | /// @example scss - With two set breakpoints
77 | /// @include media(">phone", "<=tablet") { }
78 | ///
79 | /// @example scss - With custom values
80 | /// @include media(">=358px", "<850px") { }
81 | ///
82 | /// @example scss - With set breakpoints with custom values
83 | /// @include media(">desktop", "<=1350px") { }
84 | ///
85 | /// @example scss - With a static expression
86 | /// @include media("retina2x") { }
87 | ///
88 | /// @example scss - Mixing everything
89 | /// @include media(">=350px", "") {
224 | $element: "(min-width: #{$result + $interval})";
225 | } @else if ($operator == "<") {
226 | $element: "(max-width: #{$result - $interval})";
227 | } @else if ($operator == ">=") {
228 | $element: "(min-width: #{$result})";
229 | } @else if ($operator == "<=") {
230 | $element: "(max-width: #{$result})";
231 | } @else {
232 | @warn '#{$expression} is missing an operator.';
233 | }
234 | } @else {
235 | $element: $result;
236 | }
237 |
238 | @return $element;
239 | }
240 |
241 | ///
242 | /// Replaces the first occurence of the string with the replacement string
243 | ///
244 | /// @author Eduardo Boucas
245 | ///
246 | /// @param {String} $search - The value being searched for
247 | /// @param {String} $replace - The replacement string
248 | /// @param {String} $subject - The string being replaced on
249 | ///
250 | /// @return {String | Null}
251 | ///
252 | @function str-replace-first($search, $replace, $subject) {
253 | $search-start: str-index($subject, $search);
254 |
255 | @if $search-start == null {
256 | @return $subject;
257 | }
258 |
259 | $result: str-slice($subject, 0, $search-start - 1);
260 | $result: $result + $replace;
261 | $result: $result + str-slice($subject, $search-start + str-length($search));
262 |
263 | @return $result;
264 | }
265 |
266 | ///
267 | /// Casts a number to a string
268 | ///
269 | /// @author Hugo Giraudel
270 | ///
271 | /// @param {String} $string - Number to be parsed
272 | ///
273 | /// @return {List | Null}
274 | ///
275 | @function to-number($string) {
276 | // Matrices
277 | $strings: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9";
278 | $numbers: 0 1 2 3 4 5 6 7 8 9;
279 |
280 | // Result
281 | $result: 0;
282 | $divider: 0;
283 | $minus: false;
284 |
285 | // Looping through all characters
286 | @for $i from 1 through str-length($string) {
287 | $character: str-slice($string, $i, $i);
288 | $index: index($strings, $character);
289 |
290 | @if $character == "-" {
291 | $minus: true;
292 | } @else if $character == "." {
293 | $divider: 1;
294 | } @else {
295 | @if type-of($index) != "number" {
296 | $result: if($minus, $result * -1, $result);
297 | @return _length($result, str-slice($string, $i));
298 | }
299 |
300 | $number: nth($numbers, $index);
301 |
302 | @if $divider == 0 {
303 | $result: $result * 10;
304 | } @else {
305 | // Move the decimal dot to the left
306 | $divider: $divider * 10;
307 | $number: $number / $divider;
308 | }
309 |
310 | $result: $result + $number;
311 | }
312 | }
313 |
314 | @return if($minus, $result * -1, $result);
315 | }
316 |
317 | @function _length($number, $unit) {
318 | $strings: "px" "cm" "mm" "%" "ch" "pica" "in" "em" "rem" "pt" "pc" "ex" "vw"
319 | "vh" "vmin" "vmax";
320 | $units: 1px 1cm 1mm 1% 1ch 1pica 1in 1em 1rem 1pt 1pc 1ex 1vw 1vh 1vmin 1vmax;
321 | $index: index($strings, $unit);
322 |
323 | @if type-of($index) != "number" {
324 | @warn 'Unknown unit `#{$unit}`.';
325 | @return false;
326 | }
327 |
328 | @return $number * nth($units, $index);
329 | }
330 |
--------------------------------------------------------------------------------
/src/styles/components/section.scss:
--------------------------------------------------------------------------------
1 | // Styles unique to one section.
2 | .section-1 {
3 |
4 | .left {
5 | .sub {
6 | max-width: 75%;
7 | }
8 | }
9 |
10 | .right {
11 |
12 | display: flex;
13 | justify-content: center;
14 | align-items: center;
15 |
16 |
17 |
18 | .circle {
19 | background: $blue;
20 | border: 1.4em solid lighten($blue, 20%);
21 | border-radius: 50%;
22 | transform-origin: center center;
23 | }
24 |
25 | .circle-1 {
26 | width: 8.5em;
27 | height: 8.5em;
28 | }
29 |
30 | .circle {
31 | &:not(:first-of-type) {
32 | position: absolute;
33 | }
34 | }
35 |
36 | .circle-2 {
37 | width: 6em;
38 | height: 6em;
39 | border-width: 1.2em;
40 | }
41 |
42 | .circle-3 {
43 | width: 9em;
44 | height: 9em;
45 | }
46 |
47 | .circle-4 {
48 | width: 6em;
49 | height: 6em;
50 | border-width: 1.2em;
51 | }
52 |
53 | .circle-5 {
54 | width: 7em;
55 | height: 7em;
56 | }
57 | }
58 | }
59 |
60 | .section-2 {
61 | .left {
62 | flex: 0 0 50%;
63 | max-width: 50%;
64 |
65 | .title {
66 | line-height: 1.3;
67 | margin-bottom: 20px;
68 | }
69 |
70 | .sub {
71 | max-width: 360px;
72 | }
73 | }
74 |
75 | .right {
76 | display: flex;
77 | align-items: flex-end;
78 |
79 | .right-bg {
80 | overflow: hidden;
81 | height: 460px;
82 | background: lighten($blue, 3%);
83 | text-align: center;
84 | padding: 130px 20px;
85 | width: 90%;
86 | border-radius: 2em;
87 |
88 | img {
89 | width: 87%;
90 | transform: rotate(-5deg);
91 | }
92 | }
93 | }
94 | }
95 |
96 | .section-3 {
97 | .left {
98 | flex: 0 0 53%;
99 | max-width: 53%;
100 |
101 | .title {
102 | line-height: 1.15;
103 | }
104 | }
105 |
106 | .right {
107 | display: flex;
108 | align-items: flex-end;
109 | justify-content: center;
110 | position: relative;
111 |
112 | .notification {
113 | position: absolute;
114 | z-index: 2;
115 | display: flex;
116 | justify-content: center;
117 | bottom: -40px;
118 | will-change: transform, opacity;
119 |
120 |
121 | img {
122 | width: 62%;
123 | }
124 | }
125 |
126 | .right-bg {
127 | overflow: hidden;
128 | height: 460px;
129 | background: lighten($blue, 3%);
130 | text-align: center;
131 | width: 90%;
132 | border-radius: 2em;
133 | display: flex;
134 | justify-content: center;
135 | align-items: center;
136 | text-align: center;
137 | position: relative;
138 | will-change: transform, opacity;
139 |
140 |
141 | .phone {
142 | position: absolute;
143 | width: 100%;
144 | display: flex;
145 | justify-content: center;
146 | z-index: 1;
147 | will-change: transform, opacity;
148 |
149 | img {
150 | position: absolute;
151 | width: 80%;
152 | top: -1.6em;
153 | }
154 | }
155 |
156 |
157 |
158 | .circle {
159 | display: flex;
160 | align-items: center;
161 | justify-content: center;
162 | position: relative;
163 | top: -3.5em;
164 |
165 | .inner-circle {
166 | transform-origin: center center;
167 | position: absolute;
168 | border: 1px solid $white;
169 | border-radius: 100%;
170 | will-change: transform, opacity;
171 | }
172 | }
173 |
174 | .bell-con {
175 | will-change: transform, opacity;
176 |
177 | .fas {
178 | position: absolute;
179 | width: 50px;
180 | height: 50px;
181 | display: flex;
182 | justify-content: center;
183 | align-items: center;
184 | font-size: 1.3em;
185 | background: lighten($blue, 10%);
186 | border-radius: 100%;
187 | }
188 | }
189 |
190 | .circle-1 {
191 | opacity: 0.5;
192 | }
193 |
194 | .circle-2 {
195 | opacity: 0.4;
196 | }
197 |
198 | .circle-3 {
199 | opacity: 0.3;
200 | }
201 |
202 | .circle-4 {
203 | opacity: 0.2;
204 | }
205 |
206 | .circle-1 .inner-circle {
207 | width: 7.5em;
208 | height: 7.5em;
209 | }
210 |
211 | .circle-2 .inner-circle {
212 | width: 14em;
213 | height: 14em;
214 | }
215 |
216 | .circle-3 .inner-circle {
217 | width: 21em;
218 | height: 21em;
219 | }
220 |
221 | .circle-4 .inner-circle {
222 | width: 29em;
223 | height: 29em;
224 | }
225 | }
226 | }
227 | }
228 |
229 | .button.button-txt {
230 | padding: 20px 40px !important;
231 | }
232 |
233 |
234 |
235 | .section-4 {
236 | width: 100%;
237 | height: 23em;
238 | border-radius: 24px;
239 | background: darken($blue, 4%);
240 | will-change: transform;
241 | overflow: hidden;
242 | display: flex;
243 | flex-direction: column;
244 | padding-top: 40px;
245 | justify-content: space-between;
246 | align-items: center;
247 |
248 | .title {
249 | font-weight: 500;
250 | font-size: 2.2em;
251 | will-change: transform;
252 | }
253 |
254 | .buttons {
255 | display: flex;
256 | will-change: transform;
257 |
258 | .button {
259 | background: $white;
260 | color: $blue;
261 | padding: 12px 22px;
262 | border-radius: 12px;
263 | font-weight: 400;
264 | width: 9em;
265 | display: flex;
266 | flex-direction: column;
267 |
268 | .coming {
269 | font-size: .65em;
270 | }
271 |
272 | .app {
273 | font-weight: 600;
274 | }
275 |
276 | &:first-of-type {
277 | margin-right: 10px;
278 | }
279 | }
280 | }
281 |
282 | img {
283 | width: 40%;
284 | will-change: transform;
285 | }
286 | }
287 |
288 | .section-5 {
289 | justify-content: center;
290 | font-weight: 500;
291 | font-size: 2.5em;
292 |
293 | }
294 |
--------------------------------------------------------------------------------
/src/styles/components/sections.scss:
--------------------------------------------------------------------------------
1 | // general styles for all the sections.
2 |
3 | .landing {
4 | position: relative;
5 |
6 | nav {
7 | padding: 30px 10%;
8 | position: absolute;
9 | top: 0;
10 | left: 0;
11 | z-index: 10;
12 |
13 | .logo {
14 | font-family: 'Poppins', sans-serif;
15 | font-style: italic;
16 | font-weight: 600;
17 | font-size: 29px;
18 | cursor: pointer;
19 | }
20 | }
21 | }
22 |
23 | .pd-10 {
24 | padding: 0 10%;
25 | }
26 |
27 | .all-sections {
28 | position: relative;
29 |
30 | section {
31 | padding: 0 10%;
32 | position: absolute;
33 | min-height: 100vh;
34 | max-height: 100vh;
35 | top: 0;
36 | left: 0;
37 | width: 100%;
38 | overflow: hidden;
39 | display: flex;
40 | align-items: center;
41 | }
42 |
43 |
44 | }
45 |
46 | // General styling for the sections.
47 | .section-inner {
48 | display: flex;
49 | justify-content: space-between;
50 | align-items: center;
51 | width: 100%;
52 |
53 | .left {
54 | flex: 0 0 50%;
55 | max-width: 50%;
56 |
57 | .title {
58 | font-weight: 600;
59 | font-size: 2.9em;
60 | position: relative;
61 | line-height: 1.1;
62 | display: inline-block;
63 | margin-bottom: 30px;
64 |
65 | >span {
66 | overflow: hidden;
67 | display: inline-block;
68 |
69 | .hide-text {
70 | position: relative;
71 | overflow: hidden;
72 | display: block;
73 | will-change: transform;
74 | }
75 | }
76 | }
77 |
78 | .sub {
79 | // padding-right: 150px;
80 | max-width: 90%;
81 | opacity: 0.6;
82 | font-size: 1.11em;
83 | line-height: 1.7;
84 | margin-bottom: 30px;
85 | }
86 |
87 | .buttons {
88 | display: flex;
89 |
90 | .button {
91 | background: darken($blue, 3%);
92 | padding: 13px 40px;
93 | border-radius: 12px;
94 | font-weight: 400;
95 |
96 | .coming {
97 | font-size: .65em;
98 | }
99 |
100 | .app {
101 | font-weight: 600;
102 | }
103 |
104 | &:first-of-type {
105 | margin-right: 30px;
106 | }
107 | }
108 | }
109 | }
110 |
111 | .right {
112 | flex: 0 0 50%;
113 | max-width: 50%;
114 | }
115 | }
116 |
117 | .line-bg {
118 | position: fixed;
119 | top: 0;
120 | left: 0;
121 | height: 100vh;
122 | background: url('../../assets/images/line-bg.svg') 50% repeat;
123 | width: 170vw;
124 | background-size: 170%;
125 | }
126 |
127 | .indicator-con {
128 | position: fixed;
129 | width: 100%;
130 | bottom: 30px;
131 | left: 0;
132 |
133 | .inner {
134 | position: relative;
135 | display: flex;
136 | align-items: center;
137 | height: 18px;
138 | width: 100%;
139 | }
140 |
141 | .balls {
142 | position: absolute;
143 | left: 0;
144 | display: flex;
145 | justify-content: space-between;
146 | width: 100%;
147 |
148 | .ball {
149 | width: 5px;
150 | height: 5px;
151 | position: relative;
152 | position: relative;
153 | width: 12px;
154 | height: 12px;
155 | border-radius: 10px;
156 | background-color: lighten($blue, 20%);
157 | border: 3px solid darken($blue, 10%);
158 | cursor: pointer;
159 | transition: all .5s ease-in;
160 |
161 | &::after {
162 | content: attr(data-num);
163 | color: $yellow;
164 | white-space: nowrap;
165 | position: absolute;
166 | font-size: 8px;
167 | font-weight: 600;
168 | top: -18px;
169 | left: -1.5px;
170 | transition: all, 1s ease-in;
171 | transform: translate(0, 20px);
172 | opacity: 0;
173 | }
174 | }
175 |
176 | .ball.active {
177 | background-color: $yellow;
178 | }
179 |
180 | .ball.active-num {
181 | &::after {
182 | transform: translate(0, 0);
183 | opacity: 1;
184 | }
185 | }
186 |
187 | }
188 |
189 | .line {
190 | width: 100%;
191 | position: relative;
192 | background: lighten($blue, 30%);
193 | height: 1px;
194 | z-index: -2;
195 | }
196 |
197 | .line-scroll {
198 | position: absolute;
199 | background: $yellow;
200 | height: 1.2px;
201 | z-index: -1;
202 | transition: all 1s ease-in;
203 | }
204 | }
205 |
--------------------------------------------------------------------------------
/src/styles/variables.scss:
--------------------------------------------------------------------------------
1 | $blue: #166fc9;
2 | $white: #ffffff;
3 | $black: #000000;
4 | $yellow: rgb(255, 173, 13);
--------------------------------------------------------------------------------
/src/utils/index.js:
--------------------------------------------------------------------------------
1 | export const transition = { ease: "easeOut", duration: 0.5 };
2 |
--------------------------------------------------------------------------------