├── .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
├── assets
├── logo.png
├── phone-features.png
├── phone-header-bg.png
└── subscribe-bg.png
├── components
├── UI
│ └── Button
│ │ ├── Button.css
│ │ └── Button.js
├── download
│ ├── Download.css
│ └── Download.js
├── faq
│ ├── Faq.css
│ ├── Faq.js
│ ├── Question.css
│ ├── Question.js
│ └── data.js
├── features
│ ├── Feature.css
│ ├── Feature.js
│ ├── Features.css
│ ├── Features.js
│ └── data.js
├── footer
│ ├── Footer.css
│ └── Footer.js
├── header
│ ├── Header.css
│ └── Header.js
├── index.js
├── navbar
│ ├── Navbar.css
│ └── Navbar.js
└── subscribe
│ ├── Subscribe.css
│ └── Subscribe.js
├── index.css
└── index.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": "website-tutorial",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@testing-library/jest-dom": "^5.15.0",
7 | "@testing-library/react": "^11.2.7",
8 | "@testing-library/user-event": "^12.8.3",
9 | "aos": "^3.0.0-beta.6",
10 | "react": "^17.0.2",
11 | "react-dom": "^17.0.2",
12 | "react-icons": "^4.3.1",
13 | "react-scripts": "4.0.3",
14 | "web-vitals": "^1.1.2"
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": [
24 | "react-app",
25 | "react-app/jest"
26 | ]
27 | },
28 | "browserslist": {
29 | "production": [
30 | ">0.2%",
31 | "not dead",
32 | "not op_mini all"
33 | ],
34 | "development": [
35 | "last 1 chrome version",
36 | "last 1 firefox version",
37 | "last 1 safari version"
38 | ]
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zinotrust/socialx-reactjs-website/980144db03de245caf19d05b8973a9a25abac806/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 | You need to enable JavaScript to run this app.
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zinotrust/socialx-reactjs-website/980144db03de245caf19d05b8973a9a25abac806/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zinotrust/socialx-reactjs-website/980144db03de245caf19d05b8973a9a25abac806/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:
--------------------------------------------------------------------------------
1 | .header-bg {
2 | width: 100%;
3 | height: 100%;
4 | min-height: 100vh;
5 | background: #0a1930;
6 | }
7 |
--------------------------------------------------------------------------------
/src/App.js:
--------------------------------------------------------------------------------
1 | import "./App.css";
2 | // import Navbar from "./components/navbar/Navbar";
3 | // import Header from "./components/header/Header";
4 | // import Features from "./components/features/Features";
5 | // import Download from "./components/download/Download";
6 | // import Subscribe from "./components/subscribe/Subscribe";
7 | // import Footer from "./components/footer/Footer";
8 |
9 | import {
10 | Navbar,
11 | Header,
12 | Features,
13 | Download,
14 | Subscribe,
15 | Faq,
16 | Footer,
17 | } from "./components";
18 |
19 | function App() {
20 | return (
21 | <>
22 |
26 |
27 |
28 |
29 |
30 |
31 | >
32 | );
33 | }
34 |
35 | export default App;
36 |
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zinotrust/socialx-reactjs-website/980144db03de245caf19d05b8973a9a25abac806/src/assets/logo.png
--------------------------------------------------------------------------------
/src/assets/phone-features.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zinotrust/socialx-reactjs-website/980144db03de245caf19d05b8973a9a25abac806/src/assets/phone-features.png
--------------------------------------------------------------------------------
/src/assets/phone-header-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zinotrust/socialx-reactjs-website/980144db03de245caf19d05b8973a9a25abac806/src/assets/phone-header-bg.png
--------------------------------------------------------------------------------
/src/assets/subscribe-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zinotrust/socialx-reactjs-website/980144db03de245caf19d05b8973a9a25abac806/src/assets/subscribe-bg.png
--------------------------------------------------------------------------------
/src/components/UI/Button/Button.css:
--------------------------------------------------------------------------------
1 | a {
2 | font-size: 16px;
3 | font-weight: 300;
4 | color: #fff;
5 | text-decoration: none;
6 | margin-right: 1rem;
7 | transition: all 0.3s;
8 | }
9 | a:hover,
10 | #nav-links-mobile a:hover {
11 | color: orangered;
12 | }
13 | a.btn {
14 | border-radius: 5px;
15 | padding: 5px 8px;
16 | font-weight: 500;
17 | cursor: pointer;
18 | }
19 |
20 | a.btn-dark {
21 | background: transparent;
22 | border: 2px solid #fff;
23 | }
24 | a.btn-light {
25 | background: orangered;
26 | border: 2px solid transparent;
27 | color: #fff;
28 | }
29 |
30 | @media screen and (max-width: 600px) {
31 | a.btn {
32 | display: inline;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/components/UI/Button/Button.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import "./Button.css";
3 |
4 | const Button = ({ text, btnClass, href }) => {
5 | return (
6 |
7 | {text}
8 |
9 | );
10 | };
11 |
12 | export default Button;
13 |
--------------------------------------------------------------------------------
/src/components/download/Download.css:
--------------------------------------------------------------------------------
1 | section#download {
2 | background: linear-gradient(
3 | 90deg,
4 | rgba(45, 165, 255, 1) 45%,
5 | rgba(1, 223, 245, 1) 100%
6 | );
7 | text-align: center;
8 | color: #fff;
9 | }
10 |
11 | .download h2 {
12 | font-size: 3rem;
13 | font-weight: 200;
14 | line-height: 1.4;
15 | text-transform: uppercase;
16 | margin: 1.5rem 0;
17 | position: relative;
18 | padding-bottom: 1rem;
19 | }
20 |
21 | .download h2::after {
22 | content: "";
23 | position: absolute;
24 | left: 50%;
25 | bottom: 0;
26 | width: 10%;
27 | height: 1px;
28 | background: var(--color-white);
29 | transform: translateX(-50%);
30 | }
31 | .download-icons {
32 | display: flex;
33 | justify-content: center;
34 | align-items: center;
35 | margin: 2rem;
36 | }
37 |
38 | .download-icon {
39 | margin: 1rem 2rem;
40 | border: 2px solid #fff;
41 | border-radius: 5px;
42 | width: 12rem;
43 | display: flex;
44 | justify-content: center;
45 | align-items: center;
46 | padding: 1rem;
47 | font-size: 1.5rem;
48 | }
49 |
--------------------------------------------------------------------------------
/src/components/download/Download.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect } from "react";
2 | import "./Download.css";
3 | import { FaApple, FaWindows } from "react-icons/fa";
4 | import { GrAndroid } from "react-icons/gr";
5 | import { IconContext } from "react-icons";
6 | import AOS from "aos";
7 | import "aos/dist/aos.css";
8 |
9 | const Download = () => {
10 | useEffect(() => {
11 | AOS.init({
12 | duration: 1000,
13 | });
14 | }, []);
15 | return (
16 |
17 |
18 |
SocialX messenger download
19 |
20 | Our apps are available for download on all stores.
21 |
22 |
23 |
34 |
35 |
36 |
37 | );
38 | };
39 |
40 | export default Download;
41 |
--------------------------------------------------------------------------------
/src/components/faq/Faq.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zinotrust/socialx-reactjs-website/980144db03de245caf19d05b8973a9a25abac806/src/components/faq/Faq.css
--------------------------------------------------------------------------------
/src/components/faq/Faq.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect } from "react";
2 | import { questions } from "./data.js";
3 | import Question from "./Question";
4 | import { MdOutlineLibraryBooks } from "react-icons/md";
5 |
6 | import AOS from "aos";
7 | import "aos/dist/aos.css";
8 |
9 | const Faq = () => {
10 | useEffect(() => {
11 | AOS.init({
12 | duration: 1000,
13 | });
14 | }, []);
15 | return (
16 |
17 |
18 |
19 |
20 |
FAQs
21 |
22 | Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique
23 | itaque veniam laudantium, quam quas dolor tempora eligendi officia
24 | sequi. Iusto.
25 |
26 |
27 |
28 | {questions.map((question) => (
29 |
34 | ))}
35 |
36 |
37 |
38 | );
39 | };
40 |
41 | export default Faq;
42 |
--------------------------------------------------------------------------------
/src/components/faq/Question.css:
--------------------------------------------------------------------------------
1 | .question {
2 | border: 1px solid var(--light-blue);
3 | border-radius: 3px;
4 | width: 90%;
5 | max-width: 60rem;
6 | padding-top: 1rem;
7 | padding-bottom: 1rem;
8 | margin-bottom: 2rem;
9 | box-shadow: var(--box-shadow);
10 | }
11 |
12 | .question-title {
13 | display: flex;
14 | justify-content: space-between;
15 | align-items: center;
16 |
17 | /* padding-bottom: 1rem; */
18 | }
19 |
20 | .question-title h4 {
21 | font-size: 1.4rem;
22 | font-weight: 600;
23 | line-height: 1.4;
24 | text-transform: uppercase;
25 | }
26 |
27 | button.question-icons {
28 | border: 1px solid var(--color-grey);
29 | height: 3rem;
30 | width: 3rem;
31 | border-radius: 50%;
32 | display: flex;
33 | justify-content: center;
34 | align-items: center;
35 | cursor: pointer;
36 | }
37 |
--------------------------------------------------------------------------------
/src/components/faq/Question.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import "./Question.css";
3 | import { AiOutlinePlus, AiOutlineMinus } from "react-icons/ai";
4 |
5 | const Question = ({ title, answer }) => {
6 | const [showAnswer, setShowAnswer] = useState(false);
7 |
8 | const handleClick = () => {
9 | setShowAnswer(!showAnswer);
10 | };
11 |
12 | return (
13 |
14 |
15 |
{title}
16 |
17 | {showAnswer ? (
18 |
19 | ) : (
20 |
21 | )}
22 |
23 |
24 |
25 | {showAnswer &&
{answer}
}
26 |
27 |
28 | );
29 | };
30 |
31 | export default Question;
32 |
--------------------------------------------------------------------------------
/src/components/faq/data.js:
--------------------------------------------------------------------------------
1 | export const questions = [
2 | {
3 | id: 1,
4 | title: "Can I learn ReactJS?",
5 | answer: "Yes, you can learn ReactJS at ZinoTrustAcademy.com",
6 | },
7 | {
8 | id: 2,
9 | title: "How can I get started with SocialX?",
10 | answer:
11 | "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Asperiores quae nisi impedit earum? Molestias eum laborum distinctio iste dolore! Deserunt cum veritatis laboriosam nihil, beatae voluptate sint officia obcaecati quae.",
12 | },
13 | {
14 | id: 3,
15 | title: "Is there a refund policy?",
16 | answer:
17 | "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Asperiores quae nisi impedit earum? Molestias eum laborum distinctio iste dolore! Deserunt cum veritatis laboriosam nihil, beatae voluptate sint officia obcaecati quae.",
18 | },
19 | ];
20 |
--------------------------------------------------------------------------------
/src/components/features/Feature.css:
--------------------------------------------------------------------------------
1 | .feature {
2 | display: flex;
3 | align-items: flex-start;
4 | margin-bottom: 2rem;
5 | }
6 |
7 | .feature-icon {
8 | position: relative;
9 | margin-right: 2rem;
10 | }
11 |
12 | .inner-icon {
13 | position: absolute;
14 | top: 50%;
15 | left: 50%;
16 | transform: translate(-50%, -50%);
17 | }
18 |
19 | .feature-text h3 {
20 | font-size: 2rem;
21 | font-weight: 200;
22 | line-height: 1.4;
23 | text-transform: uppercase;
24 | color: var(--light-blue);
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/features/Feature.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import "./Feature.css";
3 | import { FaAccessibleIcon } from "react-icons/fa";
4 | import { BsHexagon } from "react-icons/bs";
5 |
6 | const Feature = ({ icon, heading, text }) => {
7 | return (
8 |
9 |
13 |
14 |
15 |
{heading}
16 |
{text}
17 |
18 |
19 | );
20 | };
21 |
22 | export default Feature;
23 |
--------------------------------------------------------------------------------
/src/components/features/Features.css:
--------------------------------------------------------------------------------
1 | .title {
2 | text-align: center;
3 | margin-bottom: 4rem;
4 | }
5 |
6 | .title h2 {
7 | font-size: 2.5rem;
8 | font-weight: 300;
9 | line-height: 1.4;
10 | text-transform: uppercase;
11 | color: var(--dark-text);
12 | margin: 1.5rem 0;
13 | }
14 |
15 | .title p {
16 | width: 50%;
17 | min-width: 40rem;
18 | margin: 0 auto;
19 | color: var(--dark-text);
20 | }
21 |
22 | .features-content {
23 | display: flex;
24 | justify-content: center;
25 | /* padding: 3rem 0; */
26 | }
27 |
28 | .features-left {
29 | flex: 1;
30 | text-align: center;
31 | }
32 | .features-left img {
33 | width: 65%;
34 | }
35 | .features-right {
36 | flex: 1;
37 | }
38 |
39 | @media screen and (max-width: 600px) {
40 | .features-content {
41 | flex-direction: column;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/components/features/Features.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect } from "react";
2 | import "./Features.css";
3 | import { BsFillBookmarkStarFill } from "react-icons/bs";
4 | import phoneFeatures from "../../assets/phone-features.png";
5 | import Feature from "./Feature";
6 | import { FeatureList } from "./data";
7 |
8 | import AOS from "aos";
9 | import "aos/dist/aos.css";
10 |
11 | const Features = () => {
12 | useEffect(() => {
13 | AOS.init({
14 | duration: 1000,
15 | });
16 | }, []);
17 | return (
18 |
19 |
20 |
21 |
22 |
Core Features
23 |
24 | SocialX app has Lorem ipsum dolor sit amet consectetur adipisicing
25 | elit. Sequi labore, harum officiis error quia cupiditate?
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | {FeatureList.map((feature) => (
34 |
40 | ))}
41 |
42 |
43 |
44 |
45 | );
46 | };
47 |
48 | export default Features;
49 |
--------------------------------------------------------------------------------
/src/components/features/data.js:
--------------------------------------------------------------------------------
1 | import { FaAccessibleIcon, FaGg } from "react-icons/fa";
2 | import { SiDatabricks } from "react-icons/si";
3 | import { MdConnectWithoutContact } from "react-icons/md";
4 |
5 | export const FeatureList = [
6 | {
7 | id: 1,
8 | icon: ,
9 | heading: "Designed for you",
10 | text: "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repudiandae veniam dolorum repellendus obcaecati minus voluptas neque dolore similique.",
11 | },
12 | {
13 | id: 2,
14 | icon: ,
15 | heading: "Keep Your History",
16 | text: "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repudiandae veniam dolorum repellendus obcaecati minus voluptas neque dolore similique.",
17 | },
18 | {
19 | id: 3,
20 | icon: ,
21 | heading: "Stay Connected",
22 | text: "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repudiandae veniam dolorum repellendus obcaecati minus voluptas neque dolore similique.",
23 | },
24 | {
25 | id: 4,
26 | icon: ,
27 | heading: "Take control",
28 | text: "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repudiandae veniam dolorum repellendus obcaecati minus voluptas neque dolore similique.",
29 | },
30 | ];
31 |
--------------------------------------------------------------------------------
/src/components/footer/Footer.css:
--------------------------------------------------------------------------------
1 | section#footer {
2 | background: var(--dark-blue);
3 | color: #fff;
4 | }
5 |
6 | .footer {
7 | display: grid;
8 | grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
9 | row-gap: 2rem;
10 | column-gap: 2rem;
11 | }
12 |
13 | /* .footer > * {
14 | flex: 1;
15 | justify-self: center;
16 | } */
17 |
18 | .footer h4 {
19 | font-size: 1.6rem;
20 | font-weight: 500;
21 | line-height: 1.4;
22 | text-transform: uppercase;
23 | margin-bottom: 1rem;
24 | }
25 |
26 | .footer-box .footer-links a {
27 | font-size: 1.2rem;
28 | }
29 |
30 | .footer-links {
31 | display: flex;
32 | flex-direction: column;
33 | }
34 |
35 | .footer-contact p {
36 | display: flex;
37 | align-items: center;
38 | margin-bottom: 5px;
39 | }
40 |
--------------------------------------------------------------------------------
/src/components/footer/Footer.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import "./Footer.css";
3 | import logo from "../../assets/logo.png";
4 | import {
5 | FaMapMarkerAlt,
6 | FaPhoneAlt,
7 | FaFax,
8 | FaEnvelope,
9 | FaGlobe,
10 | } from "react-icons/fa";
11 |
12 | const Footer = () => {
13 | return (
14 |
62 | );
63 | };
64 |
65 | export default Footer;
66 |
--------------------------------------------------------------------------------
/src/components/header/Header.css:
--------------------------------------------------------------------------------
1 | #header {
2 | position: relative;
3 | }
4 | .header {
5 | display: flex;
6 | justify-content: center;
7 | align-items: flex-start;
8 | }
9 |
10 | .header h1 {
11 | font-size: 4rem;
12 | line-height: 1.4;
13 | text-transform: uppercase;
14 | color: var(--color-white);
15 | position: relative;
16 | padding-bottom: 2rem;
17 | }
18 |
19 | .header h1 span {
20 | display: block;
21 | }
22 |
23 | h1 span:nth-child(1) {
24 | font-weight: 800;
25 | }
26 |
27 | h1 span:nth-child(2),
28 | h1 span:nth-child(3) {
29 | font-weight: 100;
30 | }
31 |
32 | .header h1::after {
33 | content: "";
34 | position: absolute;
35 | left: 0;
36 | bottom: 0;
37 | width: 65%;
38 | height: 1px;
39 | background: var(--color-white);
40 | }
41 |
42 | .header-left p {
43 | margin: 3rem 0;
44 | color: var(--color-white);
45 | width: 70%;
46 | }
47 |
48 | .header-right img {
49 | width: 90%;
50 | }
51 |
52 | .floating-icon {
53 | background-color: var(--light-blue);
54 | width: 5rem;
55 | height: 5rem;
56 | border-radius: 50%;
57 | display: flex;
58 | justify-content: center;
59 | align-items: center;
60 | position: absolute;
61 | left: 50%;
62 | bottom: 0;
63 | transform: translateX(-50%);
64 | cursor: pointer;
65 | }
66 |
67 | .floating-icon a {
68 | border: 1px solid #fff;
69 | width: 5rem;
70 | height: 5rem;
71 | border-radius: 50%;
72 | position: absolute;
73 | left: 50%;
74 | transform: translateX(-50%);
75 | display: flex;
76 | justify-content: center;
77 | align-items: center;
78 | }
79 |
80 | .mouse {
81 | transform: translateY(-25%);
82 | animation: bounce 0.8s ease infinite alternate;
83 | }
84 |
85 | @keyframes bounce {
86 | 0% {
87 | transform: translateY(-25%);
88 | }
89 | 100% {
90 | transform: translateY(25%);
91 | }
92 | }
93 |
94 | @media screen and (max-width: 769px) {
95 | .header h1 {
96 | font-size: 3rem;
97 | }
98 | }
99 |
100 | @media screen and (max-width: 600px) {
101 | .header {
102 | flex-direction: column;
103 | }
104 |
105 | .header-left,
106 | .header-right {
107 | display: flex;
108 | flex-direction: column;
109 | justify-content: center;
110 | align-items: center;
111 | text-align: center;
112 | margin: 0 auto;
113 | }
114 |
115 | .header-left {
116 | margin-bottom: 4rem;
117 | }
118 |
119 | .header h1::after {
120 | left: 50%;
121 | transform: translateX(-50%);
122 | }
123 | .header-right img {
124 | width: 80%;
125 | }
126 | }
127 |
--------------------------------------------------------------------------------
/src/components/header/Header.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect } from "react";
2 | import "./Header.css";
3 | import Button from "../UI/Button/Button";
4 | import "../UI/Button/Button.css";
5 | import phoneHeader from "../../assets/phone-header-bg.png";
6 | import { BsMouse } from "react-icons/bs";
7 |
8 | import AOS from "aos";
9 | import "aos/dist/aos.css";
10 |
11 | const Header = () => {
12 | useEffect(() => {
13 | AOS.init({
14 | duration: 1000,
15 | });
16 | }, []);
17 | return (
18 |
46 | );
47 | };
48 |
49 | export default Header;
50 |
--------------------------------------------------------------------------------
/src/components/index.js:
--------------------------------------------------------------------------------
1 | export { default as Navbar } from "./navbar/Navbar";
2 | export { default as Header } from "./header/Header";
3 | export { default as Features } from "./features/Features";
4 | export { default as Download } from "./download/Download";
5 | export { default as Subscribe } from "./subscribe/Subscribe";
6 | export { default as Faq } from "./faq/Faq";
7 | export { default as Footer } from "./footer/Footer";
8 |
--------------------------------------------------------------------------------
/src/components/navbar/Navbar.css:
--------------------------------------------------------------------------------
1 | .navbar {
2 | display: flex;
3 | justify-content: space-between;
4 | align-items: center;
5 | height: 8rem;
6 | }
7 |
8 | .logo {
9 | display: flex;
10 | justify-content: center;
11 | align-items: center;
12 | }
13 |
14 | .logo-text {
15 | font-size: 40px;
16 | font-weight: 300;
17 | color: white;
18 | }
19 |
20 | .logo-text span {
21 | font-weight: 600;
22 | color: orangered;
23 | }
24 |
25 | .nav-links {
26 | display: flex;
27 | color: #fff;
28 | }
29 |
30 | .nav-links li {
31 | margin-left: 10px;
32 | list-style: none;
33 | }
34 |
35 | .nav-links a {
36 | font-size: 16px;
37 | font-weight: 300;
38 | color: #fff;
39 | text-decoration: none;
40 | margin-right: 1rem;
41 | transition: all 0.3s;
42 | }
43 | .nav-links a:hover,
44 | #nav-links-mobile a:hover {
45 | color: orangered;
46 | }
47 |
48 | /* a.btn {
49 | border-radius: 5px;
50 | padding: 5px 8px;
51 | margin-left: 1rem;
52 | font-weight: 500;
53 | }
54 |
55 | a.btn-dark {
56 | background: transparent;
57 | border: 2px solid #fff;
58 | }
59 | a.btn-light {
60 | background: #fff;
61 | border: 2px solid transparent;
62 | color: #0a1930;
63 | } */
64 |
65 | .navbar .menu-icons {
66 | background: transparent;
67 | border: none;
68 | display: none;
69 | }
70 |
71 | /* Media Queries */
72 | @media screen and (max-width: 769px) {
73 | /* hide nav button on navbar */
74 | .nav-btn {
75 | display: none;
76 | }
77 | }
78 | @media screen and (max-width: 600px) {
79 | /* show nav button on navbar menu */
80 | .nav-btn {
81 | display: block;
82 | }
83 |
84 | .nav-links {
85 | display: none;
86 | border: 2px solid #fff;
87 | z-index: 111;
88 | }
89 |
90 | .navbar .menu-icons {
91 | display: block;
92 | }
93 |
94 | .navbar #nav-links-mobile,
95 | .navbar #nav-links-mobile-hide {
96 | display: block;
97 | position: absolute;
98 | list-style: none;
99 | background: #0a1930;
100 | left: 0;
101 | top: 80px;
102 | width: 100%;
103 | transition: all 0.3s;
104 | border-top: 1px solid #fff;
105 | padding-bottom: 5px;
106 | }
107 |
108 | .navbar #nav-links-mobile {
109 | animation: slide-in 0.5s ease-in-out;
110 | }
111 |
112 | .navbar #nav-links-mobile-hide {
113 | left: -100%;
114 | animation: slide-out 0.5s ease-in-out;
115 | }
116 | @keyframes slide-out {
117 | 0% {
118 | transform: translateX(0);
119 | }
120 | 100% {
121 | transform: translateX(-100%);
122 | }
123 | }
124 |
125 | @keyframes slide-in {
126 | 0% {
127 | transform: translateX(-100%);
128 | }
129 | 100% {
130 | transform: translateX(0);
131 | }
132 | }
133 |
134 | .navbar #nav-links-mobile li,
135 | .navbar #nav-links-mobile-hide li {
136 | text-align: center;
137 | padding: 10px 0;
138 | border-bottom: 1px solid #fff;
139 | margin: 0 30px;
140 | }
141 |
142 | .navbar #nav-links-mobile li:last-child {
143 | border-bottom: none;
144 | }
145 |
146 | .navbar #nav-links-mobile li a {
147 | color: #fff;
148 | text-decoration: none;
149 | font-size: 18px;
150 | }
151 |
152 | .navbar #nav-links-mobile a:hover {
153 | color: orangered;
154 | }
155 | }
156 |
--------------------------------------------------------------------------------
/src/components/navbar/Navbar.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import { AiOutlineBars } from "react-icons/ai";
3 | import { RiCloseLine } from "react-icons/ri";
4 | import { SiAnaconda } from "react-icons/si";
5 | import Button from "../UI/Button/Button";
6 | import "../UI/Button/Button.css";
7 |
8 | import "./Navbar.css";
9 |
10 | const Navbar = () => {
11 | const [showMenu, setShowMenu] = useState(false);
12 |
13 | const toggleMenu = () => {
14 | setShowMenu(!showMenu);
15 | };
16 | return (
17 |
18 |
19 |
20 |
21 | SocialX
22 |
23 |
24 |
25 |
51 |
52 |
53 | {showMenu ? (
54 |
55 | ) : (
56 |
57 | )}
58 |
59 |
60 | );
61 | };
62 |
63 | export default Navbar;
64 |
--------------------------------------------------------------------------------
/src/components/subscribe/Subscribe.css:
--------------------------------------------------------------------------------
1 | section#subscribe {
2 | background: url(../../assets/subscribe-bg.png);
3 | text-align: center;
4 | color: #fff;
5 | background-size: cover;
6 | background-attachment: fixed;
7 | }
8 |
9 | .subscribe h2 {
10 | font-size: 3rem;
11 | font-weight: 200;
12 | line-height: 1.4;
13 | text-transform: uppercase;
14 | margin: 1.5rem 0;
15 | padding-bottom: 1rem;
16 | }
17 |
18 | form > * {
19 | width: 100%;
20 | max-width: 50rem;
21 | margin: 3rem auto;
22 | }
23 |
24 | form input {
25 | padding: 1rem;
26 | background: transparent;
27 | border: 1px solid #777;
28 | border-radius: 5px 0 0 5px;
29 | color: #fff;
30 | outline: none;
31 | width: 80%;
32 | font-size: 1.6rem;
33 | }
34 |
35 | form button {
36 | padding: 1rem;
37 | background: var(--form-button);
38 | border: 1px solid var(--form-button);
39 | border-radius: 0 5px 5px 0;
40 | color: #fff;
41 | font-size: 1.6rem;
42 | font-weight: 500;
43 | }
44 |
45 | .social-icons {
46 | display: flex;
47 | justify-content: center;
48 | align-items: center;
49 | }
50 |
51 | .social-icon {
52 | margin: 2rem;
53 | padding: 1rem;
54 | width: 4rem;
55 | height: 4rem;
56 | border: 1px solid #fff;
57 | border-radius: 50%;
58 | display: flex;
59 | justify-content: center;
60 | align-items: center;
61 | font-size: 2rem;
62 | cursor: pointer;
63 | transition: all 0.3s;
64 | }
65 |
66 | .social-icon:hover {
67 | background: var(--light-blue);
68 | }
69 |
70 | @media screen and (max-width: 600px) {
71 | form input {
72 | width: 60%;
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/src/components/subscribe/Subscribe.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect } from "react";
2 | import "./Subscribe.css";
3 | import { TiSocialGooglePlus } from "react-icons/ti";
4 | import { FaFacebookF, FaTwitter, FaInstagram } from "react-icons/fa";
5 |
6 | import AOS from "aos";
7 | import "aos/dist/aos.css";
8 |
9 | const Subscribe = () => {
10 | useEffect(() => {
11 | AOS.init({
12 | duration: 1000,
13 | });
14 | }, []);
15 | return (
16 |
17 |
18 |
Subscribe now!
19 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | );
42 | };
43 |
44 | export default Subscribe;
45 |
--------------------------------------------------------------------------------
/src/index.css:
--------------------------------------------------------------------------------
1 | @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
2 |
3 | :root {
4 | --font-family: "Poppins", sans-serif;
5 | --dark-blue: #0a1930;
6 | --light-blue: #1f93ff;
7 |
8 | --color-white: #fff;
9 | --dark-text: #333;
10 | --form-button: #2da5ff;
11 | --color-grey: #eae6eb;
12 | --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
13 | }
14 |
15 | * {
16 | margin: 0;
17 | padding: 0;
18 | box-sizing: border-box;
19 | scroll-behavior: smooth;
20 | }
21 |
22 | html {
23 | font-size: 10px;
24 | }
25 |
26 | body {
27 | font-family: "Poppins", sans-serif;
28 | }
29 |
30 | section {
31 | width: 100%;
32 | padding: 8rem 0;
33 | }
34 |
35 | .container {
36 | max-width: 1000px;
37 | margin: 0 auto;
38 | padding: 0 20px;
39 | }
40 |
41 | /* Text styles */
42 | .u-text-small {
43 | font-size: 1.2rem;
44 | line-height: 1.4;
45 | font-weight: 300;
46 | }
47 |
48 | .u-text-dark {
49 | color: var(--dark-text);
50 | }
51 | .u-text-light {
52 | color: var(--dark-text);
53 | }
54 |
55 | .u-text-center {
56 | text-align: center;
57 | }
58 |
59 | /* Title */
60 | .u-title {
61 | text-align: center;
62 | margin-bottom: 4rem;
63 | }
64 |
65 | .u-title h2 {
66 | font-size: 2.5rem;
67 | font-weight: 300;
68 | line-height: 1.4;
69 | text-transform: uppercase;
70 | color: var(--dark-text);
71 | margin: 1.5rem 0;
72 | }
73 |
74 | .u-title p {
75 | width: 50%;
76 | min-width: 40rem;
77 | margin: 0 auto;
78 | color: var(--dark-text);
79 | }
80 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom";
3 | import "./index.css";
4 | import App from "./App";
5 |
6 | ReactDOM.render(
7 |
8 |
9 | ,
10 | document.getElementById("root")
11 | );
12 |
--------------------------------------------------------------------------------