├── .gitignore
├── README.md
├── package-lock.json
├── package.json
├── public
├── favicon.ico
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
└── robots.txt
└── src
├── App.js
├── components
├── AboutSection.js
├── Cards.js
├── FaqSection.js
├── GlobalStyle.js
├── Movie.js
├── Nav.js
├── Question.js
├── ServicesSection.js
└── Wave.js
├── img
├── athlete-small.png
├── athlete1.png
├── athlete2.png
├── clock.svg
├── diaphragm.svg
├── goodtimes-small.png
├── home1.png
├── home2.png
├── money.svg
├── teamwork.svg
├── theathlete-big.png
├── theracer-small.png
└── wave.svg
├── index.js
├── pages
├── AboutUs.js
└── OurWork.js
├── serviceWorker.js
└── util.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 | 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 | ### `npm 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 | ### `npm 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 | ### `npm run 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 | ### `npm run 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 | ### `npm run 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": "dev-portofolio",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@testing-library/jest-dom": "^4.2.4",
7 | "@testing-library/react": "^9.5.0",
8 | "@testing-library/user-event": "^7.2.1",
9 | "framer-motion": "^2.7.7",
10 | "react": "^16.13.1",
11 | "react-dom": "^16.13.1",
12 | "react-intersection-observer": "^8.29.0",
13 | "react-router-dom": "^5.2.0",
14 | "react-scripts": "3.4.3",
15 | "styled-components": "^5.2.0"
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": "react-app"
25 | },
26 | "browserslist": {
27 | "production": [
28 | ">0.2%",
29 | "not dead",
30 | "not op_mini all"
31 | ],
32 | "development": [
33 | "last 1 chrome version",
34 | "last 1 firefox version",
35 | "last 1 safari version"
36 | ]
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
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/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/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 Components
3 | import Nav from "./components/Nav";
4 | import GlobalStyle from "./components/GlobalStyle";
5 | //Import Pages
6 | import AboutUs from "./pages/AboutUs";
7 | import OurWork from "./pages/OurWork";
8 | //Router
9 | import { Switch, Route, useLocation } from "react-router-dom";
10 | import { AnimatePresence } from "framer-motion";
11 |
12 | function App() {
13 | const location = useLocation();
14 |
15 | return (
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | );
31 | }
32 |
33 | export default App;
34 |
--------------------------------------------------------------------------------
/src/components/AboutSection.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import homeImg1 from "../img/home1.png";
3 | import { motion } from "framer-motion";
4 | import { container, titleAnim, fade, photoAnim } from "../util";
5 | import styled from "styled-components";
6 | import Wave from "../components/Wave";
7 |
8 | const AboutSection = () => {
9 | return (
10 |
11 |
12 |
13 |
14 | We work to make
15 |
16 |
17 |
18 | your dreams come
19 |
20 |
21 |
22 | true.
23 |
24 |
25 |
26 |
27 | Contact us for any photography or videography ideas that you have. We
28 | have professionals with amazing skills to help you achieve it.
29 |
30 | Contact Us
31 |
32 |
33 |
40 |
41 |
42 |
43 | );
44 | };
45 |
46 | const About = styled(motion.div)`
47 | background: #1b1b1b;
48 | min-height: 90vh;
49 | color: white;
50 | display: flex;
51 | align-items: center;
52 | justify-content: space-between;
53 | padding: 5rem 10rem;
54 | `;
55 | const Description = styled.div`
56 | color: white;
57 | z-index: 2;
58 | flex: 1;
59 | padding-right: 5rem;
60 | h2 {
61 | font-weight: lighter;
62 | }
63 | p {
64 | padding: 3rem 0rem;
65 | color: #cccccc;
66 | }
67 | span {
68 | font-weight: bold;
69 | color: #23d997;
70 | }
71 | button {
72 | padding: 1rem 2rem;
73 | border: 3px solid #23d997;
74 | background: transparent;
75 | color: white;
76 | transition: all 0.5s ease;
77 | &:hover {
78 | background: #23d997;
79 | color: white;
80 | }
81 | }
82 | `;
83 | const Image = styled.div`
84 | z-index: 2;
85 | flex: 1;
86 | overflow: hidden;
87 | img {
88 | width: 100%;
89 | height: 80vh;
90 | object-fit: cover;
91 | }
92 | `;
93 |
94 | const Hide = styled.div`
95 | overflow: hidden;
96 | `;
97 |
98 | export default AboutSection;
99 |
--------------------------------------------------------------------------------
/src/components/Cards.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import styled from "styled-components";
3 |
4 | const Cards = () => {
5 | return (
6 |
7 |
8 |
9 |
16 |
17 |
21 |
25 |
29 |
33 |
37 |
41 |
45 |
49 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
Efficient
61 |
62 | Lorem ipsum dolor sit amet.
63 |
64 |
65 |
66 |
73 |
77 |
81 |
85 |
89 |
93 |
94 |
Affordable
95 |
96 | Lorem ipsum dolor sit amet.
97 |
98 |
99 |
100 |
107 |
111 |
115 |
119 |
123 |
127 |
128 |
129 |
Pro Grade Gear
130 |
131 | Lorem ipsum dolor sit amet.
132 |
133 |
134 |
135 |
142 |
143 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
Teamwork
155 |
156 | Lorem ipsum dolor sit amet.
157 |
158 |
159 | );
160 | };
161 |
162 | const StyledCards = styled.div`
163 | display: flex;
164 | flex-wrap: wrap;
165 | `;
166 | const StyledCard = styled.div`
167 | flex-basis: 20rem;
168 |
169 | .icon {
170 | display: flex;
171 | align-items: center;
172 | h3 {
173 | margin-left: 1rem;
174 | background: white;
175 | color: black;
176 | padding: 1rem;
177 | }
178 | }
179 | `;
180 |
181 | export default Cards;
182 |
--------------------------------------------------------------------------------
/src/components/FaqSection.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect, useState } from "react";
2 | import { motion, useAnimation } from "framer-motion";
3 | import { useInView } from "react-intersection-observer";
4 | import styled from "styled-components";
5 | import { reveal } from "../util";
6 | import Question from "./Question";
7 |
8 | const FaqSection = () => {
9 | //State
10 | const [toggleFaq, setToggleFaq] = useState([
11 | {
12 | title: "How Do I Start?",
13 | description: `Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nostrum voluptatem dolorum obcaecati aperiam impedit, architecto reprehenderit aliquid tempore excepturi consequatur esse quis magni odit? Nesciunt animi veritatis distinctio rerum quo.
14 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsum expedita facere quasi aliquam harum saepe fuga suscipit enim quisquam alias?`,
15 | active: false,
16 | },
17 | {
18 | title: "What Products do you offer?",
19 | description: `Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nostrum voluptatem dolorum obcaecati aperiam impedit, architecto reprehenderit aliquid tempore excepturi consequatur esse quis magni odit? Nesciunt animi veritatis distinctio rerum quo.
20 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsum expedita facere quasi aliquam harum saepe fuga suscipit enim quisquam alias?`,
21 | active: false,
22 | },
23 | {
24 | title: "Diferrent Payment Methods",
25 | description: `Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nostrum voluptatem dolorum obcaecati aperiam impedit, architecto reprehenderit aliquid tempore excepturi consequatur esse quis magni odit? Nesciunt animi veritatis distinctio rerum quo.
26 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsum expedita facere quasi aliquam harum saepe fuga suscipit enim quisquam alias?`,
27 | active: false,
28 | },
29 | {
30 | title: "Daily Schedule",
31 | description: `Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nostrum voluptatem dolorum obcaecati aperiam impedit, architecto reprehenderit aliquid tempore excepturi consequatur esse quis magni odit? Nesciunt animi veritatis distinctio rerum quo.
32 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsum expedita facere quasi aliquam harum saepe fuga suscipit enim quisquam alias?`,
33 | active: false,
34 | },
35 | ]);
36 | //Scroll Animation
37 | const faqControls = useAnimation();
38 | const [faq, faqView] = useInView({ threshold: 0.75 });
39 | useEffect(() => {
40 | if (faqView) {
41 | faqControls.start("show");
42 | }
43 | }, [faqControls, faqView]);
44 | return (
45 |
52 |
53 | Any Questions?FAQ
54 |
55 | {toggleFaq.map((faq) => (
56 |
62 | ))}
63 |
64 | );
65 | };
66 |
67 | const Faq = styled(motion.section)`
68 | min-height: 100vh;
69 | padding: 5rem 10rem;
70 | background: #1b1b1b;
71 | color: white;
72 |
73 | span {
74 | display: block;
75 | color: #23d997;
76 | font-weight: bold;
77 | }
78 | h2 {
79 | font-weight: lighter;
80 | padding-bottom: 2rem;
81 | }
82 | .question {
83 | padding: 3rem 0rem;
84 | cursor: pointer;
85 | }
86 | .faq-line {
87 | background: #cccccc;
88 | height: 0.2rem;
89 | margin: 1rem 0rem;
90 | width: 100%;
91 | }
92 | .answer {
93 | padding: 2rem 0rem;
94 | p {
95 | padding: 1rem 0rem;
96 | }
97 | }
98 | `;
99 |
100 | export default FaqSection;
101 |
--------------------------------------------------------------------------------
/src/components/GlobalStyle.js:
--------------------------------------------------------------------------------
1 | import { createGlobalStyle } from "styled-components";
2 |
3 | const GlobalStyle = createGlobalStyle`
4 | *{
5 | margin: 0;
6 | padding: 0;
7 | box-sizing: border-box;
8 | }
9 | body{
10 | font-family: 'Inter', sans-serif;
11 | background: #1B1B1B;
12 | }
13 | button{
14 | font-family: 'Inter', sans-serif;
15 | font-weight: bold;
16 | font-size: 1.1rem;
17 | cursor: pointer;
18 | }
19 | a{
20 | font-size: 1.1rem;
21 |
22 | }
23 | h2{
24 | font-size: 5.5rem;
25 | }
26 | p{
27 | font-size: 1.6rem;
28 | line-height: 150%;
29 | }
30 | h4{
31 | font-size: 2.5rem;
32 | }
33 | `;
34 |
35 | export default GlobalStyle;
36 |
--------------------------------------------------------------------------------
/src/components/Movie.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import styled from "styled-components";
3 | import { motion } from "framer-motion";
4 | import { fade, lineAnim, workPhoto } from "../util";
5 |
6 | const Movie = ({ imgSrc, title }) => {
7 | return (
8 |
9 | {title}
10 |
11 |
12 |
22 |
23 |
24 | );
25 | };
26 |
27 | const StyledMovie = styled.div`
28 | padding-bottom: 10rem;
29 | .line {
30 | height: 1rem;
31 | background: #cccccc;
32 | margin-bottom: 3rem;
33 | }
34 | .img-container {
35 | overflow: hidden;
36 | cursor: pointer;
37 | }
38 | img {
39 | width: 100%;
40 | height: 70vh;
41 | object-fit: cover;
42 | transition: all 0.75s ease-in-out;
43 | }
44 | `;
45 |
46 | export default Movie;
47 |
--------------------------------------------------------------------------------
/src/components/Nav.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import styled from "styled-components";
3 | import { Link, useHistory } from "react-router-dom";
4 | import { motion } from "framer-motion";
5 |
6 | const Nav = () => {
7 | const history = useHistory();
8 | const activePath = history.location.pathname;
9 | return (
10 |
11 |
12 |
13 | Capture
14 |
15 |
16 |
17 |
18 | 1. About Us
19 |
24 |
25 |
26 | 2. Our Work
27 |
32 |
33 |
34 | 3. Contact Us
35 |
36 |
37 |
38 |
39 | );
40 | };
41 |
42 | const StyledNav = styled.nav`
43 | min-height: 10vh;
44 | display: flex;
45 | margin: auto;
46 | justify-content: space-between;
47 | align-items: center;
48 | background: #282828;
49 | padding: 1rem 10rem;
50 | ul {
51 | display: flex;
52 | list-style: none;
53 | }
54 | li {
55 | padding-left: 10rem;
56 | position: relative;
57 | }
58 | a {
59 | color: white;
60 | text-decoration: none;
61 | }
62 | #logo {
63 | font-size: 1.5rem;
64 | font-family: "Lobster", cursive;
65 | font-weight: lighter;
66 | }
67 | `;
68 |
69 | const Line = styled(motion.div)`
70 | height: 0.3rem;
71 | background: #23d997;
72 | width: 5%;
73 | position: absolute;
74 | bottom: -80%;
75 | left: 60%;
76 | `;
77 |
78 | export default Nav;
79 |
--------------------------------------------------------------------------------
/src/components/Question.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { motion } from "framer-motion";
3 |
4 | const Question = ({ faq, setToggleFaq, toggleFaq }) => {
5 | const toggleActive = () => {
6 | console.log(toggleFaq);
7 | const newFaqs = toggleFaq.map((state) => {
8 | if (state.title === faq.title) {
9 | return { ...state, active: !state.active };
10 | } else {
11 | return { ...state };
12 | }
13 | });
14 | setToggleFaq(newFaqs);
15 | };
16 | return (
17 |
18 | {faq.title}
19 |
20 | {faq.active && (
21 |
22 | {faq.description}
23 |
24 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsum
25 | expedita facere quasi aliquam harum saepe fuga suscipit enim
26 | quisquam alias?
27 |
28 |
29 | )}
30 |
31 |
32 |
33 | );
34 | };
35 |
36 | export default Question;
37 |
--------------------------------------------------------------------------------
/src/components/ServicesSection.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect } from "react";
2 | import { useInView } from "react-intersection-observer";
3 | import { useAnimation } from "framer-motion";
4 | import Cards from "../components/Cards";
5 | import styled from "styled-components";
6 | import homeImg2 from "../img/home2.png";
7 | import { reveal } from "../util";
8 | import { motion } from "framer-motion";
9 |
10 | const ServicesSection = () => {
11 | const serviceControls = useAnimation();
12 | const [description, descView] = useInView({ threshold: 0.75 });
13 | //Use Effect
14 | useEffect(() => {
15 | if (descView) {
16 | serviceControls.start("show");
17 | }
18 | }, [serviceControls, descView]);
19 | return (
20 |
26 |
27 |
28 | High quality services.
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 | );
37 | };
38 |
39 | const Services = styled(motion.section)`
40 | background: #1b1b1b;
41 | min-height: 90vh;
42 | color: white;
43 | display: flex;
44 | align-items: center;
45 | justify-content: space-between;
46 | padding: 5rem 10rem;
47 | h2 {
48 | margin-bottom: 4rem;
49 | }
50 | p {
51 | width: 70%;
52 | padding: 2rem 0rem 4rem 0rem;
53 | }
54 | `;
55 | const Description = styled.div`
56 | color: white;
57 | z-index: 2;
58 | flex: 1;
59 | padding-right: 5rem;
60 | h2 {
61 | font-weight: lighter;
62 | }
63 | p {
64 | padding: 3rem 0rem;
65 | color: #cccccc;
66 | }
67 | span {
68 | font-weight: bold;
69 | color: #23d997;
70 | }
71 | button {
72 | padding: 1rem 2rem;
73 | border: 3px solid #23d997;
74 | background: transparent;
75 | color: white;
76 | transition: all 0.5s ease;
77 | &:hover {
78 | background: #23d997;
79 | color: white;
80 | }
81 | }
82 | `;
83 | const Image = styled.div`
84 | z-index: 2;
85 | flex: 1;
86 | overflow: hidden;
87 | img {
88 | width: 100%;
89 | height: 80vh;
90 | object-fit: cover;
91 | }
92 | `;
93 |
94 | export default ServicesSection;
95 |
--------------------------------------------------------------------------------
/src/components/Wave.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import styled from "styled-components";
3 | import { motion } from "framer-motion";
4 |
5 | const Wave = () => (
6 |
11 |
20 |
21 | );
22 |
23 | const WaveSvg = styled.svg`
24 | position: absolute;
25 | left: 0;
26 | z-index: 1;
27 | `;
28 |
29 | export default Wave;
30 |
--------------------------------------------------------------------------------
/src/img/athlete-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/src/img/athlete-small.png
--------------------------------------------------------------------------------
/src/img/athlete1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/src/img/athlete1.png
--------------------------------------------------------------------------------
/src/img/athlete2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/src/img/athlete2.png
--------------------------------------------------------------------------------
/src/img/clock.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/img/diaphragm.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/img/goodtimes-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/src/img/goodtimes-small.png
--------------------------------------------------------------------------------
/src/img/home1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/src/img/home1.png
--------------------------------------------------------------------------------
/src/img/home2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/src/img/home2.png
--------------------------------------------------------------------------------
/src/img/money.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/img/teamwork.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/img/theathlete-big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/src/img/theathlete-big.png
--------------------------------------------------------------------------------
/src/img/theracer-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/developedbyed/capture/7b9e8abcf36163f1e5fa0305c3f866e44cf0e45c/src/img/theracer-small.png
--------------------------------------------------------------------------------
/src/img/wave.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom";
3 | import App from "./App";
4 | import * as serviceWorker from "./serviceWorker";
5 | import { BrowserRouter } from "react-router-dom";
6 |
7 | ReactDOM.render(
8 |
9 |
10 |
11 |
12 | ,
13 | document.getElementById("root")
14 | );
15 |
16 | // If you want your app to work offline and load faster, you can change
17 | // unregister() to register() below. Note this comes with some pitfalls.
18 | // Learn more about service workers: https://bit.ly/CRA-PWA
19 | serviceWorker.unregister();
20 |
--------------------------------------------------------------------------------
/src/pages/AboutUs.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import FaqSection from "../components/FaqSection";
3 | import AboutSection from "../components/AboutSection";
4 | import ServicesSection from "../components/ServicesSection";
5 |
6 | const AboutUs = () => {
7 | return (
8 | <>
9 |
10 |
11 |
12 | >
13 | );
14 | };
15 |
16 | export default AboutUs;
17 |
--------------------------------------------------------------------------------
/src/pages/OurWork.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import styled from "styled-components";
3 | import Movie from "../components/Movie";
4 |
5 | //Import Images
6 | import athlete from "../img/athlete-small.png";
7 | import goodtimes from "../img/goodtimes-small.png";
8 | import theracer from "../img/theracer-small.png";
9 | //Motion
10 | import { motion } from "framer-motion";
11 | import { containerWork } from "../util";
12 |
13 | const OurWork = () => {
14 | return (
15 |
16 |
17 |
18 |
19 |
20 | );
21 | };
22 |
23 | const Work = styled(motion.section)`
24 | min-height: 100vh;
25 | padding: 5rem 10rem;
26 | `;
27 |
28 | export default OurWork;
29 |
--------------------------------------------------------------------------------
/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/util.js:
--------------------------------------------------------------------------------
1 | export const container = {
2 | hidden: { opacity: 0 },
3 | show: {
4 | opacity: 1,
5 | transition: {
6 | staggerChildren: 0.2,
7 | duration: 0.5,
8 | when: "beforeChildren",
9 | },
10 | },
11 | exit: {
12 | opacity: 0,
13 | transition: { ease: "easeInOut", duration: 1 },
14 | },
15 | };
16 | export const containerWork = {
17 | hidden: { opacity: 0 },
18 | show: {
19 | background: "#FFFFFF",
20 | opacity: 1,
21 | transition: {
22 | staggerChildren: 0.2,
23 | duration: 0.5,
24 | ease: "easeOut",
25 |
26 | when: "beforeChildren",
27 | },
28 | },
29 | exit: {
30 | opacity: 0,
31 | transition: { ease: "easeInOut", duration: 1 },
32 | },
33 | };
34 |
35 | export const titleAnim = {
36 | hidden: { y: 100 },
37 | show: {
38 | y: 0,
39 | transition: { type: "tween", ease: "circOut", duration: 0.75 },
40 | },
41 | };
42 | export const fade = {
43 | hidden: { opacity: 0 },
44 | show: {
45 | opacity: 1,
46 | transition: { type: "tween", ease: "circOut", duration: 1 },
47 | },
48 | };
49 | export const photoAnim = {
50 | hidden: { scale: 1.5, opacity: 0 },
51 | show: {
52 | scale: 1,
53 | opacity: 1,
54 | transition: {
55 | type: "tween",
56 | ease: "circOut",
57 | duration: 1,
58 | delay: 0.75,
59 | },
60 | },
61 | };
62 |
63 | export const lineAnim = {
64 | hidden: { width: "0%" },
65 | show: {
66 | width: "100%",
67 | transition: { duration: 1 },
68 | },
69 | };
70 |
71 | export const workPhoto = {
72 | hidden: { scale: 1.5 },
73 | show: {
74 | scale: 1,
75 | transition: {
76 | type: "tween",
77 | ease: "easeOut",
78 | duration: 0.5,
79 | },
80 | },
81 | };
82 |
83 | export const reveal = {
84 | hidden: { opacity: 0, scale: 0.9 },
85 | show: {
86 | opacity: 1,
87 | scale: 1,
88 | transition: {
89 | type: "tween",
90 | ease: "easeOut",
91 | duration: 1,
92 | },
93 | },
94 | };
95 |
--------------------------------------------------------------------------------