Repository: codebucks27/Agency-website
Branch: main
Commit: aa40ed0df40a
Files: 24
Total size: 48.6 KB
Directory structure:
gitextract_uvzrgxt3/
├── .gitignore
├── README.md
├── package.json
├── public/
│ ├── index.html
│ ├── manifest.json
│ └── robots.txt
└── src/
├── App.js
├── App.test.js
├── Pages/
│ └── Home.js
├── Sections/
│ ├── About/
│ │ └── index.js
│ ├── Contact/
│ │ └── index.js
│ ├── Hero/
│ │ └── index.js
│ ├── Services/
│ │ └── index.js
│ └── Testimonials/
│ └── index.js
├── components/
│ ├── Card/
│ │ └── index.js
│ ├── Footer/
│ │ └── index.js
│ ├── Header/
│ │ └── index.js
│ ├── ScrollToTop/
│ │ └── index.js
│ ├── SvgBlock/
│ │ └── index.js
│ └── TextBlock/
│ └── index.js
├── globalStyles.js
├── index.js
├── reportWebVitals.js
└── setupTests.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
================================================
FILE: README.md
================================================
# Build Responsive Website in React JS with Styled-Components and GSAP for awesome scroll Animations
This repository contains code for Agency Website in ReactJS.
View Demo:
https://agency-website-eta.vercel.app/
If you want to learn how to create it please checkout following **Tutorial**👇: How to Build Responsive Website in React JS with Styled-Components and GSAP for awesome scroll Animations
[https://youtu.be/aAEfBxcGpJ8]::
### Images of Website:



### [ I appreciate if you give appropriate credit when using this Website for Commercial Use ]
### Resources Used in This Project
Design in : https://www.figma.com/
3D Shapes from : https://www.figma.com/community/file/917777039353073016/3D-shapes
Social Icons from :https://fontawesome.com/
Blob Images from : https://www.figma.com/community/plugin/739208439270091369/Blobs
Human Image : https://www.figma.com/community/plugin/739503328703046360/Humaaans-for-Figma
Svgs from : https://undraw.co/
Logo from : https://www.figma.com/community/plugin/768094929040207895/Logo-Creator
Rocket 3D Image from : https://www.figma.com/community/plugin/769588393361258724/Vectary-3D-Elements
Avatar-1 :
Photo by Christiana Rivers on Unsplash
Avatar-2 : Photo by Joseph Gonzalez on Unsplash
Avatar-3 : Photo by Sam Burriss on Unsplash
Avatar-4 : Photo by whereslugo on Unsplash
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
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.
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.
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.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
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)
### Analyzing the Bundle Size
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)
### Making a Progressive Web App
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)
### Advanced Configuration
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)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `npm run build` fails to minify
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)
================================================
FILE: package.json
================================================
{
"name": "agency-website",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.1",
"gsap": "^3.12.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.21.1",
"react-scripts": "^5.0.1",
"react-slick": "^0.29.0",
"slick-carousel": "^1.8.1",
"styled-components": "^6.1.3",
"web-vitals": "^3.5.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
================================================
FILE: public/index.html
================================================
CodeBucks
================================================
FILE: public/manifest.json
================================================
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
================================================
FILE: public/robots.txt
================================================
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
================================================
FILE: src/App.js
================================================
import { GlobalStyle } from "./globalStyles";
import { lazy, Suspense } from "react";
const Home = lazy(() => import("./Pages/Home"));
const Header = lazy(() => import("./components/Header/index"));
const Footer = lazy(() => import("./components/Footer/index"));
const ScrollToTop = lazy(() => import("./components/ScrollToTop/index"));
function App() {
return (
<>
{/* Hi There! */}
>
);
}
export default App;
================================================
FILE: src/App.test.js
================================================
import { render, screen } from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
render();
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
================================================
FILE: src/Pages/Home.js
================================================
//This is home page, It will contains all the sections require in this page.
//Import all the require sections here
import HeroSection from "../Sections/Hero/index";
import About from "../Sections/About/index";
import Services from "../Sections/Services/index";
import Testimonials from "../Sections/Testimonials/index";
import Contact from "../Sections/Contact/index";
import styled from "styled-components";
const Container = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
/* position: relative; */
`;
const Home = () => {
return (
);
};
export default Home;
================================================
FILE: src/Sections/About/index.js
================================================
import styled, { keyframes } from "styled-components";
import wave from "../../assets/waves.svg";
import rocket from "../../assets/rocket image.png";
import human from "../../assets/human.svg";
import hand from "../../assets/hand.svg";
const move = keyframes`
0% { transform: translateY(-5px) }
50% { transform: translateY(10px) translateX(10px) }
100% { transform: translateY(-5px) }
`;
const AboutSection = styled.section`
width: 100vw;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
`;
const Waves = styled.img`
width: 100%;
height: auto;
position: absolute;
top: -1rem;
`;
const Hand = styled.div`
position: absolute;
bottom: -1rem;
right: 0;
@media only Screen and (max-width: 40em) {
display: none;
}
`;
const Main = styled.div`
margin: 0 15rem;
margin-top: 15rem;
display: flex;
justify-content: center;
flex-direction: column;
@media only Screen and (max-width: 64em) {
margin: 0 calc(5rem + 5vw);
margin-top: 10rem;
}
@media only Screen and (max-width: 40em) {
align-items: center;
margin: 3rem calc(3rem + 3vw);
}
`;
const Title = styled.h1`
font-size: 2rem;
display: inline-block;
`;
const CurvedLine = styled.div`
width: 7rem;
height: 2rem;
border: solid 5px var(--purple);
border-color: var(--purple) transparent transparent transparent;
border-radius: 150%/60px 70px 0 0;
`;
const Content = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
@media only Screen and (max-width: 40em) {
flex-direction: column;
}
`;
const Rocket = styled.div`
display: flex;
justify-content: center;
align-content: center;
width: 40%;
padding-bottom: 5rem;
animation: ${move} 2.5s ease infinite;
@media only Screen and (max-width: 40em) {
width: 50vw;
padding-bottom: 0;
}
`;
const Human = styled.div`
width: 50%;
position: absolute;
right: 0;
bottom: 100%;
@media only Screen and (max-width: 40em) {
display: none;
}
`;
const Text = styled.h4`
font-size: calc(0.5rem + 1vw);
line-height: 1.5;
color: var(--nav2);
`;
const Circle = styled.span`
display: inline-block;
width: 1rem;
height: 1rem;
border-radius: 50%;
background-color: black;
margin-right: 0.5rem;
margin-top: 1rem;
`;
const AboutText = styled.div`
width: 50%;
position: relative;
@media only Screen and (max-width: 40em) {
width: 100%;
}
`;
const About = () => {
return (
About Us
We help our customers to tell about themselves, to grow and stand
out in an increasingly competitive digital world, through creative
projects that are able to attract and involve, creating strategic
value.