├── .gitignore
├── README.md
├── package-lock.json
├── package.json
├── public
├── favicon.ico
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
└── robots.txt
└── src
├── App.css
├── App.js
├── App.test.js
├── GlobalStyle.js
├── Sections
├── CardSection.jsx
├── ChartSection.jsx
├── FAQSection.jsx
├── Header.jsx
├── MessagingSection.jsx
└── PricingSection.jsx
├── assets
└── img
│ ├── active.svg
│ ├── arrow.svg
│ ├── avatar1.svg
│ ├── avatar2.svg
│ ├── avatar3.svg
│ ├── avatar4.svg
│ ├── avatar5.svg
│ ├── bg.svg
│ ├── bg_circles.svg
│ ├── blob_bottom.svg
│ ├── blob_top.svg
│ ├── chart.svg
│ ├── check-disabled.svg
│ ├── check.svg
│ ├── circleBg.svg
│ ├── conversation.svg
│ ├── creditcard.svg
│ ├── inactive.svg
│ ├── lines.svg
│ ├── logo.svg
│ ├── message_blue.svg
│ ├── message_pink.svg
│ ├── minus.svg
│ ├── phone.svg
│ ├── plus.svg
│ └── ring_orange.svg
├── components
├── AnimatedButton.jsx
├── Card.jsx
├── ChartStats.jsx
├── Footer.jsx
├── HeaderContent.jsx
├── Navigation.jsx
├── PrimaryButton.jsx
├── Questions.jsx
├── ScrolledButton.jsx
└── SecondaryButton.jsx
├── index.js
├── questions.js
├── reportWebVitals.js
├── setupTests.js
└── styles
└── Layout.js
/.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 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `npm start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13 |
14 | The page will reload if you make edits.\
15 | You will also see any lint errors in the console.
16 |
17 | ### `npm test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `npm run build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `npm run eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35 |
36 | 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.
37 |
38 | 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.
39 |
40 | 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.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
48 | ### Code Splitting
49 |
50 | 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)
51 |
52 | ### Analyzing the Bundle Size
53 |
54 | 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)
55 |
56 | ### Making a Progressive Web App
57 |
58 | 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)
59 |
60 | ### Advanced Configuration
61 |
62 | 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)
63 |
64 | ### Deployment
65 |
66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67 |
68 | ### `npm run build` fails to minify
69 |
70 | 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)
71 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "reactwebsite",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@testing-library/jest-dom": "^5.14.1",
7 | "@testing-library/react": "^11.2.7",
8 | "@testing-library/user-event": "^12.8.3",
9 | "aos": "^2.3.4",
10 | "react": "^17.0.2",
11 | "react-dom": "^17.0.2",
12 | "react-scripts": "4.0.3",
13 | "react-scroll": "^1.8.4",
14 | "styled-components": "^5.3.1",
15 | "web-vitals": "^1.1.2"
16 | },
17 | "scripts": {
18 | "start": "react-scripts start",
19 | "build": "react-scripts build",
20 | "test": "react-scripts test",
21 | "eject": "react-scripts eject"
22 | },
23 | "eslintConfig": {
24 | "extends": [
25 | "react-app",
26 | "react-app/jest"
27 | ]
28 | },
29 | "browserslist": {
30 | "production": [
31 | ">0.2%",
32 | "not dead",
33 | "not op_mini all"
34 | ],
35 | "development": [
36 | "last 1 chrome version",
37 | "last 1 firefox version",
38 | "last 1 safari version"
39 | ]
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/siddiqueco/react-landing-page/b464c0106dafe25ef43188ba86af8a64a5a785dd/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
15 |
16 |
25 |
26 |
27 |
28 |
29 |
33 |
34 |
35 |
36 |
37 | React App
38 |
39 |
40 |
41 | You need to enable JavaScript to run this app.
42 |
43 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/siddiqueco/react-landing-page/b464c0106dafe25ef43188ba86af8a64a5a785dd/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/siddiqueco/react-landing-page/b464c0106dafe25ef43188ba86af8a64a5a785dd/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.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/siddiqueco/react-landing-page/b464c0106dafe25ef43188ba86af8a64a5a785dd/src/App.css
--------------------------------------------------------------------------------
/src/App.js:
--------------------------------------------------------------------------------
1 | import React,{useEffect} from "react";
2 | import "./App.css";
3 | import CardSection from "./Sections/CardSection";
4 | import ChartSection from "./Sections/ChartSection";
5 | import Footer from "./components/Footer";
6 | import Header from "./Sections/Header";
7 | import MessagingSection from "./Sections/MessagingSection";
8 | import FAQSection from "./Sections/FAQSection";
9 | import PaymentSection from "./Sections/PricingSection";
10 | import { OuterLayout } from "./styles/Layout";
11 | import aos from 'aos'
12 | import 'aos/dist/aos.css'
13 | import ScrolledButton from "./components/ScrolledButton";
14 |
15 | function App() {
16 |
17 |
18 | useEffect(()=>{
19 | aos.init({duration: 3000})
20 | },[])
21 |
22 | return (
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | );
38 | }
39 |
40 | export default App;
41 |
--------------------------------------------------------------------------------
/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render( );
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/src/GlobalStyle.js:
--------------------------------------------------------------------------------
1 | import { createGlobalStyle } from "styled-components";
2 |
3 | const GlobalStyle = createGlobalStyle`
4 | :root{
5 | --purple-primary: #554DDE;
6 | --accent-pink: #F44E77;
7 | --neutral-light: #F2F6FF;
8 | --lavender-secondary: #6A6D9E; /*Primary Font Color*/
9 | --dark-primary: #16194F;
10 | --border-colour: #CAD6F1;
11 | }
12 | *{
13 | margin: 0;
14 | padding: 0;
15 | list-style: none;
16 | box-sizing: border-box;
17 | font-family: 'Nunito', sans-serif;
18 | text-decoration: none;
19 | }
20 |
21 | body{
22 | background-color: var(--neutral-light);
23 | color: white;
24 | font-size: 1.2rem;
25 | font-family: 'Nunito', sans-serif;
26 | }
27 | a{
28 | color: inherit;
29 | }
30 | p{
31 | color: var(--lavender-secondary);
32 | line-height: 1.9rem;
33 | }
34 | .secondary-heading{
35 | font-size: 3rem;
36 | color: var(--purple-primary);
37 | }
38 | .small-heading{
39 | font-size: 2.5rem;
40 | color: var(--purple-primary);
41 | text-align: center;
42 | }
43 |
44 | span{
45 | color: var(--accent-pink);
46 | }
47 |
48 | //utilities
49 |
50 | .c-para{
51 | text-align: center;
52 | }
53 |
54 | `;
55 |
56 | export default GlobalStyle;
--------------------------------------------------------------------------------
/src/Sections/CardSection.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled, { keyframes } from 'styled-components'
3 | import { InnerLayout } from '../styles/Layout'
4 | import card from '../assets/img/creditcard.svg'
5 | import { fadeInLeft } from 'react-animations'
6 |
7 | const CardSection = () => {
8 | return (
9 |
10 |
11 |
12 |
13 |
14 | One card for all your payments
15 |
16 |
17 | Lorem ipsum, dolor sit amet consectetur adipisicing elit. Deserunt reprehenderit doloremque quia? Odit illo, tempore quod vero exercitationem,
18 | voluptatum laudantium quo harum, adipisci tenetur eum.
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | )
28 | }
29 | // const FadeInLeft = styled.h1`
30 | // animation: 2s ${keyframes`${fadeInLeft}`};
31 | // `
32 |
33 | const CardSectionStyled = styled.section`
34 | .card-container{
35 | display: grid;
36 | grid-template-columns: repeat(2, 1fr);
37 |
38 | @media screen and (max-width: 845px){
39 | grid-template-columns: repeat(1, 1fr);
40 | }
41 |
42 | .card-right{
43 | display: flex;
44 | justify-content: flex-end;
45 | }
46 | .card-left{
47 |
48 | p{
49 | padding: 1rem 0;
50 | }
51 | }
52 | }
53 | `
54 |
55 | export default CardSection
56 |
--------------------------------------------------------------------------------
/src/Sections/ChartSection.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 | import { InnerLayout } from '../styles/Layout'
4 | import ChartStats from '../components/ChartStats'
5 | import chart from '../assets/img/chart.svg'
6 | import AnimatedButton from '../components/AnimatedButton'
7 |
8 |
9 | const ChartSection = () => {
10 | return (
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | Manage your finances like a pro in no time
26 |
27 |
28 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Rem officia nemo distinctio dolores necessitatibus odit magni corrupti error,
29 | voluptate alias adipisci ducimus nostrum maiores. Ad?
30 |
31 | {/*
32 |
33 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Rem officia nemo distinctio dolores necessitatibus odit magni corrupti error,
34 | voluptate alias adipisci ducimus nostrum maiores. Ad?
35 |
36 | */}
37 | {/*
38 |
39 | */}
40 |
41 |
42 |
43 |
44 |
45 | )
46 | }
47 | const ChartStyled = styled.section`
48 | .chart-con{
49 | display: grid;
50 | grid-template-columns: repeat(2, 1fr);
51 | @media screen and (max-width: 1347px){
52 | grid-template-columns: repeat(1, 1fr);
53 | }
54 | .chart-left{
55 | width: 80%;
56 | @media screen and (max-width: 1347px){
57 | width: 100%;
58 | }
59 |
60 | .stats{
61 | img{
62 | box-shadow: 0px 25px 50px rgba(22, 25, 79, 0.05);
63 | border-radius: 62px;
64 | width: 100%;
65 | }
66 | .stats-money{
67 | display: flex;
68 | padding-bottom: 1.3rem;
69 | justify-content: space-between;
70 | }
71 | }
72 | }
73 | .chart-right{
74 | padding-left: 2rem;
75 | p{
76 | padding: 1.3rem 0;
77 | }
78 | }
79 | }
80 | `
81 |
82 | export default ChartSection
83 |
--------------------------------------------------------------------------------
/src/Sections/FAQSection.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 | import { InnerLayout } from '../styles/Layout'
4 | import lines from '../assets/img/lines.svg'
5 | import questions from '../questions'
6 | import Questions from '../components/Questions'
7 |
8 | const FAQSection = () => {
9 | return (
10 |
11 |
12 |
13 |
Frequently asked questions
14 |
15 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit reiciendis architecto recusandae officia veritatis impedit amet praesentium at consequuntur vero,
16 |
17 |
18 |
19 |
20 |
21 |
22 | {
23 | questions.map(q => (
24 |
25 | ))
26 | }
27 |
28 |
29 |
30 | )
31 | }
32 | const FaqStyled = styled.section`
33 | .c-para{
34 | width: 60%;
35 | margin: 0 auto;
36 | }
37 | .lines{
38 | position: absolute;
39 | left: 0;
40 | top: 360%;
41 | width: 100%;
42 | z-index: -1;
43 |
44 | img{
45 | width: 100%;
46 | }
47 | }
48 | .questions-con{
49 | padding-top: 2rem;
50 | }
51 |
52 | `
53 |
54 | export default FAQSection
55 |
--------------------------------------------------------------------------------
/src/Sections/Header.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import styled from "styled-components";
3 | import bg from "../assets/img/bg.svg";
4 | import HeaderContent from "../components/HeaderContent";
5 | import Navigation from "../components/Navigation";
6 |
7 | const Header = () => {
8 | return (
9 |
15 | );
16 | };
17 |
18 | const HeaderStyled = styled.header`
19 |
20 | min-height: 100vh;
21 | width: 100%;
22 | background-image: url(${bg});
23 | background-repeat: no-repeat;
24 | background-size: cover;
25 | background-position-y: 100%;
26 | .header-content {
27 | padding: 0 10rem;
28 |
29 | @media screen and (max-width: 1347px) {
30 | padding: 5rem 14rem;
31 | }
32 | @media screen and (max-width: 1186px) {
33 | padding: 5rem 8rem;
34 | }
35 | @media screen and (max-width: 990px) {
36 | padding: 5rem 4rem;
37 | }
38 | }
39 | `;
40 |
41 | export default Header;
42 |
--------------------------------------------------------------------------------
/src/Sections/MessagingSection.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 | import { InnerLayout } from '../styles/Layout'
4 | import avatar1 from '../assets/img/avatar1.svg'
5 | import avatar2 from '../assets/img/avatar2.svg'
6 | import avatar3 from '../assets/img/avatar3.svg'
7 | import avatar4 from '../assets/img/avatar4.svg'
8 | import avatar5 from '../assets/img/avatar5.svg'
9 | import messaging from '../assets/img/conversation.svg'
10 | import bgCircles from '../assets/img/circleBg.svg';
11 |
12 | const MessagingSection = () => {
13 | return (
14 |
15 |
16 |
17 |
18 |
19 | We support you in 5 diffrent language
20 |
21 |
22 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio quisquam nam quibusdam, culpa aperiam perspiciatis modi inventore porro temporibus illum. Voluptatibus culpa quasi molestiae provident reprehenderit iure dicta ipsum est.
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
+23
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | )
42 | }
43 |
44 | const MessageStyle = styled.section`
45 | .message-con{
46 | display: grid;
47 | grid-template-columns: repeat(2, 1fr);
48 |
49 | @media screen and (max-width: 1347px){
50 | grid-template-columns: repeat(1, 1fr);
51 | }
52 |
53 | .left-items{
54 | position: relative;
55 | padding-right: 2rem;
56 | .left-para{
57 | padding: 1.6rem 0;
58 | }
59 | .images-con{
60 | display: flex;
61 | align-items: center;
62 | .image-2,.image-3,.image-4,.image-5{
63 | margin-left: -18px;
64 | }
65 | }
66 | .bgCircle{
67 | position: absolute;
68 | top: -7%;
69 | left: -10%;
70 | z-index: -1;
71 | }
72 | }
73 | .right-items{
74 | position: relative;
75 | img{
76 | padding-left: 2rem;
77 | }
78 | .bgCircle{
79 | position: absolute;
80 | bottom: -7%;
81 | right: 0;
82 | z-index: -1;
83 | }
84 | }
85 | }
86 | `
87 |
88 | export default MessagingSection
89 |
--------------------------------------------------------------------------------
/src/Sections/PricingSection.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 | import Card from '../components/Card'
4 | import { InnerLayout } from '../styles/Layout'
5 | import card from '../assets/img/creditcard.svg';
6 | import active from '../assets/img/active.svg';
7 | import inactive from '../assets/img/inactive.svg';
8 | import check from '../assets/img/check.svg';
9 | import checkDisabled from '../assets/img/check-disabled.svg';
10 |
11 |
12 |
13 | const PaymentSection = () => {
14 | return (
15 |
16 |
17 |
18 |
19 | An exectional service, at the right price
20 |
21 |
Start with our free plan and switch to premium as you grow.
22 |
23 |
24 |
43 |
44 |
63 |
64 |
65 |
66 | )
67 | }
68 |
69 | const PaymentStyled = styled.section`
70 | .card-con{
71 | display: grid;
72 | grid-template-columns: repeat(2, 1fr);
73 | grid-gap: 3rem;
74 | padding-top: 6.4rem;
75 |
76 | @media screen and (max-width: 689px){
77 | grid-template-columns: repeat(1, 1fr);
78 | }
79 | }
80 | p{
81 | text-align: center;
82 | }
83 | `
84 |
85 | export default PaymentSection
86 |
--------------------------------------------------------------------------------
/src/assets/img/active.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/assets/img/arrow.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/assets/img/avatar2.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/assets/img/bg.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/assets/img/bg_circles.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/src/assets/img/blob_bottom.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/assets/img/blob_top.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/assets/img/chart.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/assets/img/check-disabled.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/assets/img/check.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/assets/img/circleBg.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/src/assets/img/creditcard.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/assets/img/inactive.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/assets/img/lines.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/assets/img/logo.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/assets/img/message_blue.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/assets/img/message_pink.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/assets/img/minus.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/assets/img/plus.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/assets/img/ring_orange.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/components/AnimatedButton.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 | import arrow from '../assets/img/arrow.svg'
4 |
5 |
6 | const AnimatedButton = ({ text }) => {
7 | return (
8 |
9 | {text}
10 |
11 |
12 | )
13 | }
14 |
15 | const AnimatedButtonStyled = styled.button`
16 | padding: 0.9rem 2rem;
17 | background-color: var(--dark-primary);
18 | border: none;
19 | outline: none;
20 | border-radius: 18px;
21 | color: inherit;
22 | font-size: 1rem;
23 | font-family: inherit;
24 | cursor: pointer;
25 | display: flex;
26 | align-items: center;
27 | justify-content: space-around;
28 |
29 | img{
30 | margin-left: 1rem;
31 | padding-left: inherit.9rem;
32 | }
33 | `
34 |
35 | export default AnimatedButton
36 |
--------------------------------------------------------------------------------
/src/components/Card.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import styled from 'styled-components';
3 |
4 | function Card({
5 | account, amount, text, button, card, active, inactive, check,
6 | checkDis, text1, text2, text3, text4, text5, text6, text7, text8
7 | }) {
8 | return (
9 |
10 |
11 | {account}
12 |
13 |
14 | {amount} / m
15 |
16 | {text}
17 |
18 | {button}
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | {text1}
31 |
32 |
33 |
34 | {text2}
35 |
36 |
37 |
38 | {text3}
39 |
40 |
41 |
42 | {text4}
43 |
44 |
45 |
46 | {text5}
47 |
48 |
49 |
50 | {text6}
51 |
52 |
53 |
54 | {text7}
55 |
56 |
57 |
58 | {text8}
59 |
60 |
61 |
62 | )
63 | }
64 |
65 | const CardStyled = styled.div`
66 | background-color: white;
67 | padding: 3rem 2rem;
68 | border-radius: 50px;
69 | box-shadow: 0px 25px 50px rgba(22, 25, 79, 0.05);
70 | .card-title{
71 | font-size: 1.7rem;
72 | color: #000;
73 | text-align: center;
74 | padding: 1.5rem 0;
75 | span{
76 | font-size: 1.1rem;
77 | }
78 | }
79 | .button-con{
80 | text-align: center;
81 | padding: 1.4rem 0;
82 | button{
83 | border: 2px solid #16194F;
84 | padding: .6rem 1.5rem;
85 | outline: none;
86 | cursor: pointer;
87 | background: transparent;
88 | border-radius: 20px;
89 | font-size: inherit;
90 | color: #16194F;
91 | }
92 | }
93 | .card-image-con{
94 | display: flex;
95 | justify-content: center;
96 | img{
97 | width: 70%;
98 | }
99 | }
100 | .plan-con{
101 | display: flex;
102 | justify-content: center;
103 | align-items: center;
104 | padding: 1.4rem 0;
105 | img{
106 | padding: 0 .2rem;
107 | }
108 | }
109 | .text-check{
110 | display: flex;
111 | align-items: center;
112 | padding: .3rem 0;
113 | font-size: 1.1rem;
114 | img{
115 | padding-right: .3rem;
116 | width: 24px;
117 | }
118 | &:nth-child(6){
119 | color: #B7B7B7;
120 | }
121 | &:nth-child(7){
122 | color: #B7B7B7;
123 | }
124 | &:nth-child(8){
125 | color: #B7B7B7;
126 | }
127 | }
128 | `;
129 | export default Card;
--------------------------------------------------------------------------------
/src/components/ChartStats.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 | import { InnerLayout } from '../styles/Layout'
4 |
5 | const ChartStats = ({ name, amount }) => {
6 | return (
7 |
8 | {name}
9 | {amount}
10 |
11 | )
12 | }
13 |
14 | const ChartStatsStyled = styled.div`
15 | background-color: #fff;
16 | border-radius: 50px;
17 | border: 1px solid var(--border-colour);
18 | height: 10rem;
19 | padding: 2rem;
20 | width: 50%;
21 | p{
22 | color: black;
23 | }
24 | h4{
25 | font-size: 2rem;
26 | color: var(--purple-primary);
27 | }
28 | `
29 |
30 | export default ChartStats
31 |
--------------------------------------------------------------------------------
/src/components/Footer.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 | import { InnerLayout } from '../styles/Layout'
4 | import logo from '../assets/img/logo.svg'
5 |
6 | const Footer = () => {
7 | return (
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | Copyright @2021 LoremIpsum
16 | All rights reserved
17 |
18 |
19 |
20 |
37 |
38 |
39 |
40 | )
41 | }
42 | const FooterStyled = styled.footer`
43 | padding: 0 18rem;
44 | background-color: #dce2f0;
45 |
46 | @media screen and (max-width: 1347px){
47 | padding: 5rem 14rem;
48 | }
49 | @media screen and (max-width: 1186px){
50 | padding: 5rem 8rem;
51 | }
52 | @media screen and (max-width: 990px){
53 | padding: 5rem 4rem;
54 | }
55 |
56 | .footer-con{
57 | display: grid;
58 | grid-template-columns: repeat(2 , 1fr);
59 | .logo-con{
60 | display: flex;
61 | align-items: center;
62 | img{
63 | width: 90px;
64 | }
65 | }
66 |
67 | @media screen and (max-width: 480px){
68 | grid-template-columns: repeat(1 , 1fr);
69 | .logo-wrap{
70 | margin: 0 auto;
71 | p{ display: none}
72 | }
73 | }
74 | }
75 | .bottom-nav{
76 | display: flex;
77 | justify-content: space-between;
78 |
79 | li{
80 | padding: 2rem 0;
81 | color: #16194f;
82 | }
83 | }
84 | `
85 |
86 | export default Footer
87 |
--------------------------------------------------------------------------------
/src/components/HeaderContent.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 | import SecondaryButton from './SecondaryButton'
4 | import phone from '../assets/img/phone.svg'
5 | import ring1 from '../assets/img/ring_orange.svg';
6 | import message1 from '../assets/img/message_pink.svg';
7 | import message2 from '../assets/img/message_blue.svg';
8 |
9 | const HeaderContent = () => {
10 | return (
11 |
12 |
13 |
14 |
Smart banking for frelencers
15 |
16 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsam delectus architecto sed, corrupti sint nobis cumque numquam provident molestias nemo sequi. Accusantium neque laboriosam nemo fugit fuga. At, rem sed.
17 |
18 |
19 |
20 |
21 |
27 |
28 | )
29 | }
30 |
31 |
32 | // const Bounce=styled.h1`
33 | // animation: 3s ${keyframes`${bounce}`} infinite;
34 | // `
35 |
36 |
37 | const HeaderContentStyled = styled.div`
38 | display: grid;
39 | grid-template-columns: repeat(2, 1fr);
40 | padding-top: 3rem;
41 |
42 | @media screen and (max-width: 700px){
43 | grid-template-columns: repeat(1, 1fr);
44 | }
45 |
46 | .left-content{
47 | display: flex;
48 | align-items: center;
49 | padding-right: 3rem;
50 | @media screen and (max-width: 480px){
51 | width: 100%;
52 | }
53 |
54 | h1{
55 | font-size: 4rem;
56 | font-weight: 600;
57 | @media screen and (max-width: 700px){
58 | font-size: 3rem;
59 | }
60 | }
61 | .white{
62 | color: #fff;
63 | line-height: 1.8rem;
64 | }
65 | }
66 | .right-content{
67 | position: relative;
68 | display: flex;
69 | justify-content: center;
70 |
71 |
72 | .phone{
73 | width: 80%;
74 | }
75 | .ring1{
76 | position: absolute;
77 | bottom: 10%;
78 | right: 0;
79 | left: auto;
80 | animation: move2 20s infinite;
81 | transition: all .4s ease-in-out;
82 | }
83 | .message1{
84 | position: absolute;
85 | top: 0;
86 | right: 0;
87 | left: auto;
88 | animation: move 5s infinite;
89 | transition: all .4s ease-in-out;
90 | }
91 | .message2{
92 | position: absolute;
93 | bottom: 15%;
94 | left: 0;
95 | transition: all .4s ease-in-out;
96 | animation: move 8s infinite;
97 | animation-delay: .5s;
98 | transition: all .4s ease-in-out;
99 |
100 | }
101 | }
102 |
103 | //Header Animations
104 | .message1{
105 | @keyframes move{
106 | 0%{
107 | transform: translateY(0) rotate(0) scale(1) translateX(0);
108 | }
109 | 50%{
110 | transform: translateY(-10px) rotate(20deg) scale(1.1) translateX(10px);
111 | }
112 | 100%{
113 | transform: translateY(0) rotate(0deg) scale(1) translateX(0);
114 | }
115 | }
116 | @keyframes move2{
117 | 0%{
118 | transform: translateY(0) rotate(0) scale(1) translateX(0);
119 | }
120 | 50%{
121 | transform: translateY(-10px) rotate(60deg) scale(1.1) translateX(10px);
122 | }
123 | 100%{
124 | transform: translateY(0) rotate(0deg) scale(1) translateX(0);
125 | }
126 | }
127 | }
128 |
129 | `
130 |
131 | export default HeaderContent
132 |
--------------------------------------------------------------------------------
/src/components/Navigation.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 | import { Link } from 'react-scroll'
4 | import PrimaryButton from './PrimaryButton'
5 | import logo from '../assets/img/logo.svg'
6 |
7 | const Navigation = () => {
8 |
9 |
10 |
11 | return (
12 |
13 |
14 |
15 |
16 |
17 |
18 | Home
19 |
20 |
21 | Feathures
22 |
23 |
24 | Pricing
25 |
26 |
27 |
28 |
29 | )
30 | }
31 |
32 | const NavigationStyled = styled.nav`
33 | display: flex;
34 | justify-content: space-between;
35 | align-items: center;
36 |
37 | ul{
38 | display: flex;
39 | justify-content: space-between;
40 | width: 40%;
41 | li{
42 | cursor: pointer;
43 | }
44 | }
45 | `
46 |
47 | export default Navigation
48 |
--------------------------------------------------------------------------------
/src/components/PrimaryButton.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 |
4 |
5 | const PrimaryButton = ({name}) => {
6 | return (
7 |
8 | {name}
9 |
10 | )
11 | }
12 |
13 |
14 | const ButtonStyled=styled.button`
15 | padding: 0.7rem 2rem;
16 | background-color: var(--accent-pink);
17 | border: none;
18 | outline: none;
19 | border-radius: 18px;
20 | color: inherit;
21 | font-size: 1rem;
22 | font-family: inherit;
23 | cursor: pointer;
24 |
25 | `
26 |
27 | export default PrimaryButton
28 |
--------------------------------------------------------------------------------
/src/components/Questions.jsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from 'react'
2 | import styled from 'styled-components'
3 |
4 | const Questions = ({ title, description }) => {
5 | const [toggle, setToggle] = useState(false)
6 |
7 | const toggleQuestion = () => {
8 | setToggle(!toggle)
9 | }
10 | return (
11 |
12 |
13 |
14 |
{title}
15 |
16 |
17 |
18 |
19 | {toggle &&
{description}
}
20 |
21 |
22 | )
23 | }
24 |
25 | const QuestionStyled = styled.div`
26 | margin-top: .5rem;
27 | background-color: #fff;
28 | margin: 1rem 0;
29 | padding: 1.3rem 1rem;
30 | border-radius: 18px;
31 | transition: all 5s ease-in-out;
32 | box-shadow: 0px 25px 50px rgba(22,25,79,0.05);
33 | .q-con{
34 | p{
35 | margin-top: 1rem;
36 | font-size: 1.3rem;
37 | }
38 | .toggle-title{
39 | display: flex;
40 | align-items: center;
41 | justify-content: space-between;
42 | transition: all 5s ease-in-out;
43 | h4{
44 | color: #16194F;
45 | font-size: 1.33rem;
46 | }
47 | button{
48 | background: transparent;
49 | outline: none;
50 | border: none;
51 | cursor: pointer;
52 | i{
53 | color: #a7a4a4;
54 | font-size: 20px;
55 | }
56 | }
57 |
58 | }
59 | }
60 | `
61 |
62 | export default Questions
63 |
--------------------------------------------------------------------------------
/src/components/ScrolledButton.jsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from 'react'
2 | import styled from 'styled-components'
3 |
4 | const ScrolledButton = () => {
5 |
6 | const [show, setShow] = useState(false)
7 |
8 | const toggleVisible = () => {
9 | const scrolled = document.documentElement.scrollTop;
10 | if (scrolled > 400) {
11 | setShow(true)
12 | }
13 | else if (scrolled <= 400) {
14 | setShow(false)
15 | }
16 | };
17 |
18 | const scrollToTop = () => {
19 | window.scrollTo({
20 | top: 0,
21 | behavior: 'smooth'
22 | });
23 | };
24 |
25 | window.addEventListener('scroll', toggleVisible);
26 |
27 | return (
28 |
29 |
30 |
31 | )
32 | }
33 |
34 | const Button = styled.button`
35 | position: fixed;
36 | right: 3%;
37 | bottom: 40px;
38 | z-index: 1;
39 | cursor: pointer;
40 | color: var(--accent-pink);
41 | background: transparent;
42 | outline: none;
43 | border: none;
44 | &:hover{
45 | color: var(--purple-primary);
46 | }
47 | i{
48 | font-size: 2rem;
49 | }
50 | `
51 |
52 | export default ScrolledButton
53 |
--------------------------------------------------------------------------------
/src/components/SecondaryButton.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import styled from 'styled-components'
3 |
4 | const SecondaryButton = ({ name }) => {
5 | return (
6 |
7 | {name}
8 |
9 |
10 |
11 | )
12 | }
13 |
14 | const SecondaryButtonStyled = styled.button`
15 | padding: 0.9rem 2rem;
16 | background-color: var(--dark-primary);
17 | border: none;
18 | outline: none;
19 | border-radius: 18px;
20 | color: inherit;
21 | font-size: 1rem;
22 | font-family: inherit;
23 | cursor: pointer;
24 | display: flex;
25 | align-items: center;
26 | justify-content: space-around;
27 |
28 | span{
29 | margin-right: 10px;
30 | }
31 | `
32 |
33 | export default SecondaryButton
34 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 | import reportWebVitals from './reportWebVitals';
5 | import GlobalStyle from './GlobalStyle';
6 |
7 |
8 | ReactDOM.render(
9 |
10 |
11 |
12 | ,
13 | document.getElementById('root')
14 | );
15 |
16 | // If you want to start measuring performance in your app, pass a function
17 | // to log results (for example: reportWebVitals(console.log))
18 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
19 | reportWebVitals();
20 |
--------------------------------------------------------------------------------
/src/questions.js:
--------------------------------------------------------------------------------
1 | const questions = [
2 | {
3 | id: 1,
4 | title: "Who can open a Draft account?",
5 | description:
6 | "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Magni voluptate unde vero corporis tempora praesentium laboriosam ratione incidunt a odit.",
7 | },
8 | {
9 | id: 2,
10 | title: "What if I withdraw money abroad?",
11 | description:
12 | "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Magni voluptate unde vero corporis tempora praesentium laboriosam ratione incidunt a odit.",
13 | },
14 | {
15 | id: 3,
16 | title: "What happens when my subscription ends?",
17 | description:
18 | "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Magni voluptate unde vero corporis tempora praesentium laboriosam ratione incidunt a odit.",
19 | },
20 | {
21 | id: 4,
22 | title: "Is this service better than YouBay?",
23 | description:
24 | "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Magni voluptate unde vero corporis tempora praesentium laboriosam ratione incidunt a odit.",
25 | },
26 | {
27 | id: 5,
28 | title: "What happens if I withdraw more than $250?",
29 | description:
30 | "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Magni voluptate unde vero corporis tempora praesentium laboriosam ratione incidunt a odit.",
31 | },
32 | ];
33 |
34 | export default questions;
35 |
--------------------------------------------------------------------------------
/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/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';
6 |
--------------------------------------------------------------------------------
/src/styles/Layout.js:
--------------------------------------------------------------------------------
1 | import styled from "styled-components";
2 |
3 | export const OuterLayout = styled.section`
4 |
5 | padding: 5rem 18rem;
6 | @media screen and (max-width: 1347px) {
7 | padding: 5rem 14rem;
8 | }
9 | @media screen and (max-width: 1186px) {
10 | padding: 5rem 8rem;
11 | }
12 | @media screen and (max-width: 990px) {
13 | padding: 5rem 4rem;
14 | }
15 | `;
16 |
17 |
18 |
19 | export const InnerLayout = styled.section`
20 | padding: 8rem 0;
21 | `;
22 |
--------------------------------------------------------------------------------