├── public ├── robots.txt ├── manifest.json └── index.html ├── src ├── components │ └── main │ │ ├── header.js │ │ ├── links.js │ │ ├── about.js │ │ ├── footer.js │ │ ├── mainContent.js │ │ ├── contact.js │ │ └── content.js ├── index.js ├── index.css ├── App.js └── App.css ├── .gitignore ├── package.json └── README.md /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/components/main/header.js: -------------------------------------------------------------------------------- 1 | import Links from "./links"; 2 | 3 | export default function Header() { 4 | return ( 5 |
6 |

Codevengers

7 | 8 |
9 | ); 10 | } -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | 6 | const root = ReactDOM.createRoot(document.getElementById('root')); 7 | root.render( 8 | 9 | 10 | 11 | ); -------------------------------------------------------------------------------- /src/components/main/links.js: -------------------------------------------------------------------------------- 1 | export default function Links() { 2 | return ( 3 |
4 | Content 5 | About 6 | Contact 7 |
8 | ); 9 | } -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | .vscode/ 5 | /node_modules 6 | /.pnp 7 | .pnp.js 8 | 9 | # testing 10 | /coverage 11 | 12 | # production 13 | /build 14 | 15 | # misc 16 | .DS_Store 17 | .env.local 18 | .env.development.local 19 | .env.test.local 20 | .env.production.local 21 | 22 | npm-debug.log* 23 | yarn-debug.log* 24 | yarn-error.log* 25 | -------------------------------------------------------------------------------- /src/components/main/about.js: -------------------------------------------------------------------------------- 1 | export default function About() { 2 | return ( 3 |
4 |

About

5 |

Codevengers is a website that teaches you how to code. We teach you how to make websites using HTML, CSS, JavaScript, Php, NodeJs and MYSQL. We also teach you how to code in C/C++. We are a group of people who love to code and want to share our knowledge with you.

6 |
7 | ); 8 | }; -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import './App.css'; 2 | import About from './components/main/about'; 3 | import Contact from './components/main/contact'; 4 | import Content from './components/main/content'; 5 | import Footer from './components/main/footer'; 6 | import Header from './components/main/header.js'; 7 | import MainContent from './components/main/mainContent'; 8 | 9 | function App() { 10 | return ( 11 |
12 |
13 | 14 | 15 | 16 | 17 |
19 | ); 20 | } 21 | 22 | export default App; -------------------------------------------------------------------------------- /src/components/main/footer.js: -------------------------------------------------------------------------------- 1 | export default function Footer(){ 2 | return
3 |
4 |

Codevengers

5 |

6 | 7 | 8 | 9 | 10 |

11 |
12 |
13 | } -------------------------------------------------------------------------------- /src/components/main/mainContent.js: -------------------------------------------------------------------------------- 1 | export default function MainContent() { 2 | return ( 3 |
4 |
5 |

Unlock the power of programming

6 |

Learn, Code and Conquer

7 |
8 |
9 |
10 | Code 11 |
12 |
13 |
14 | ); 15 | } -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 12 | 13 | 14 | 15 | Codevengers 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "homepage": "https://bitwisegaurav.github.io/ReactWebsite", 3 | "name": "codevengers", 4 | "version": "0.1.0", 5 | "private": true, 6 | "dependencies": { 7 | "@testing-library/jest-dom": "^5.17.0", 8 | "@testing-library/react": "^13.4.0", 9 | "@testing-library/user-event": "^13.5.0", 10 | "gh-pages": "^6.0.0", 11 | "react": "^18.2.0", 12 | "react-dom": "^18.2.0", 13 | "react-scripts": "5.0.1", 14 | "web-vitals": "^2.1.4" 15 | }, 16 | "scripts": { 17 | "predeploy": "npm run build", 18 | "deploy": "gh-pages -d build", 19 | "start": "react-scripts start", 20 | "build": "react-scripts build", 21 | "test": "react-scripts test", 22 | "eject": "react-scripts eject" 23 | }, 24 | "eslintConfig": { 25 | "extends": [ 26 | "react-app", 27 | "react-app/jest" 28 | ] 29 | }, 30 | "browserslist": { 31 | "production": [ 32 | ">0.2%", 33 | "not dead", 34 | "not op_mini all" 35 | ], 36 | "development": [ 37 | "last 1 chrome version", 38 | "last 1 firefox version", 39 | "last 1 safari version" 40 | ] 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/components/main/contact.js: -------------------------------------------------------------------------------- 1 | export default function Contact(){ 2 | return
3 |
4 |

Contact Us

5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |
18 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # A Basic website in react 2 | 3 | ## You can visit website by clicking on this link : 4 | 5 | https://bitwisegaurav.github.io/ReactWebsite 6 | 7 |
8 | 9 | # 10 | 11 |
12 | 13 | ## For me : 14 | 15 | ### `npm start` 16 | 17 | Runs the app in the development mode.\ 18 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 19 | 20 | The page will reload when you make changes.\ 21 | You may also see any lint errors in the console. 22 | 23 | ### `npm test` 24 | 25 | Launches the test runner in the interactive watch mode.\ 26 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 27 | 28 | ### `npm run build` 29 | 30 | Builds the app for production to the `build` folder.\ 31 | It correctly bundles React in production mode and optimizes the build for the best performance. 32 | 33 | The build is minified and the filenames include the hashes.\ 34 | Your app is ready to be deployed! 35 | 36 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 37 | 38 | ### `npm run eject` 39 | 40 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 41 | 42 | 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. 43 | 44 | 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. 45 | 46 | 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. -------------------------------------------------------------------------------- /src/components/main/content.js: -------------------------------------------------------------------------------- 1 | export default function Content(){ 2 | 3 | // create a object with a heading and a paragraph 4 | let content = [ 5 | { 6 | heading: "Learn programming with us", 7 | image : "https://images.unsplash.com/photo-1653138956520-c700df007734?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1674&q=80", 8 | paragraph: "Discover the world of programming with us. We have a wide range of courses on programming languages and web development. From frontend technologies like HTML, CSS and Javascript to backend technologies like NodeJS, ExpressJS, Php and database such as PL/SQL, MYSQL, C/C++, Java, and many more. Join us and get started on your coding your coding journey with us." 9 | }, 10 | { 11 | heading: "Our Courses", 12 | image : "https://images.unsplash.com/photo-1670821910930-3135e33820bc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1760&q=80", 13 | paragraph: "Exlore our wide range of courses on programming languages and web development. From frontend technologies like HTML, CSS and Javascript to backend technologies like NodeJS, ExpressJS, Php and database such as PL/SQL and MYSQL, we have it all covered. Get started on your coding your coding journey with us." 14 | }, 15 | { 16 | heading: "Couse details", 17 | image : "https://images.unsplash.com/photo-1638139740740-0ce3696ae14a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80", 18 | paragraph: "Our courses are designed to be beginner friendly. We have a wide range of courses on programming languages and web development. From frontend technologies like HTML, CSS and Javascript to backend technologies like NodeJS, ExpressJS, Php and database such as PL/SQL and MYSQL, we have it all covered. Get started on your coding your coding journey with us." 19 | }, 20 | ]; 21 | 22 | return( 23 |
24 | {content.map((item, index) => ( 25 |
26 |
27 |
28 | Code 29 |
30 |
31 |
32 |

{item.heading}

33 |

{item.paragraph}

34 |
35 |
36 | ))}; 37 |
38 | ); 39 | } -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | *{ 2 | margin: 0; 3 | padding: 0; 4 | box-sizing: border-box; 5 | /* font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; */ 6 | font-family: 'Rubik', sans-serif; 7 | transition: all 0.3s ease-in-out; 8 | scroll-behavior: smooth; 9 | } 10 | 11 | :root{ 12 | --circle-background: #3D6399; 13 | --text-color: #121315; 14 | --background-color: #fff; 15 | --secondary-bgcolor: #E9ECF3; 16 | --padding: 10%; 17 | } 18 | 19 | body{ 20 | background-color: var(--background-color); 21 | } 22 | 23 | /* Navbar */ 24 | .header{ 25 | display: flex; 26 | justify-content: space-between; 27 | align-items: center; 28 | padding: 2rem var(--padding); 29 | background-color: var(--background-color); 30 | width: 100%; 31 | flex-wrap: wrap; 32 | } 33 | 34 | .links{ 35 | display: flex; 36 | justify-content: space-between; 37 | align-items: center; 38 | /* width: 40%; */ 39 | gap: 3rem; 40 | } 41 | 42 | .links span a{ 43 | color: var(--text-color); 44 | text-decoration: none; 45 | /* border: 2px solid red; */ 46 | transition: all 0.3s ease-in-out; 47 | } 48 | 49 | .links span a:hover{ 50 | color: #484848; 51 | } 52 | 53 | .links span a:hover::after{ 54 | content: ""; 55 | display: block; 56 | width: 100%; 57 | height: 1px; 58 | background-color: #484848; 59 | } 60 | 61 | /* Main content */ 62 | .main-content{ 63 | display: flex; 64 | justify-content: space-between; 65 | padding: 5rem var(--padding); 66 | background-color: var(--background-color); 67 | width: 100%; 68 | gap: 4rem; 69 | flex-wrap: wrap; 70 | } 71 | 72 | .intro-section{ 73 | display: flex; 74 | flex-direction: column; 75 | justify-content: center; 76 | flex: 0.8; 77 | gap: 3rem; 78 | /* border: 2px solid blue; */ 79 | } 80 | 81 | .main-content-title{ 82 | font-size: 4rem; 83 | width: 90%; 84 | } 85 | 86 | .main-content-text{ 87 | font-size: 1.5rem; 88 | text-align: center; 89 | color: var(--text-color); 90 | text-align: start; 91 | } 92 | 93 | .intro-image-section{ 94 | display: flex; 95 | justify-content: flex-end; 96 | flex: 1.2; 97 | /* border: 2px solid blue; */ 98 | position: relative; 99 | min-width: 40rem; 100 | } 101 | 102 | .intro-image{ 103 | margin-top: 2rem; 104 | width: 70%; 105 | aspect-ratio: 1/1; 106 | border-radius: 50%; 107 | /* border: 2px solid blue; */ 108 | position: relative; 109 | } 110 | 111 | .intro-image::after{ 112 | content: ''; 113 | position: absolute; 114 | top: -10%; 115 | left: 0; 116 | width: 40%; 117 | aspect-ratio: 1/1; 118 | border-radius: 50%; 119 | background-color: var(--circle-background); 120 | /* border: 3px solid red; */ 121 | z-index: 1; 122 | } 123 | 124 | .intro-image::before{ 125 | content: ''; 126 | position: absolute; 127 | bottom: 0; 128 | left: -25%; 129 | width: 25%; 130 | aspect-ratio: 1/1; 131 | border-radius: 50%; 132 | background-color: var(--circle-background); 133 | /* border: 3px solid red; */ 134 | z-index: 1; 135 | } 136 | 137 | .intro-image img{ 138 | width: 100%; 139 | height: 100%; 140 | border-radius: 50%; 141 | object-fit: cover; 142 | z-index: 2; 143 | } 144 | 145 | /* Content section */ 146 | .content-section{ 147 | --padding: 20%; 148 | display: flex; 149 | justify-content: space-between; 150 | align-items: center; 151 | padding: 5rem var(--padding); 152 | background-color: var(--secondary-bgcolor); 153 | /* box-shadow: 0 0 10px rgba(0,0,0,0.1); */ 154 | /* position: fixed; */ 155 | width: 100%; 156 | gap: 5rem; 157 | flex-wrap: wrap; 158 | /* border: 2px solid red; */ 159 | /* z-index: 100; */ 160 | } 161 | 162 | .content-section-item{ 163 | display: flex; 164 | flex-direction: column; 165 | justify-content: center; 166 | /* align-items: center; */ 167 | flex: 1; 168 | gap: 3rem; 169 | min-width: 15rem; 170 | /* border: 2px solid blue; */ 171 | } 172 | 173 | .content-section-item-heading{ 174 | font-size: 2rem; 175 | font-weight: 600; 176 | color: var(--text-color); 177 | /* border: 2px solid goldenrod; */ 178 | } 179 | 180 | .content-section-item-paragraph{ 181 | font-size: 1.1rem; 182 | color: var(--text-color); 183 | /* border: 2px solid goldenrod; */ 184 | line-height: 1.5rem; 185 | } 186 | 187 | .content-section-image{ 188 | display: flex; 189 | justify-content: center; 190 | align-items: center; 191 | aspect-ratio: 1/1; 192 | /* padding: 0 6rem; */ 193 | flex: 1; 194 | min-width: 15rem; 195 | /* border: 2px solid green; */ 196 | } 197 | 198 | .content-section:nth-child(even){ 199 | flex-direction: row-reverse; 200 | background-color: var(--background-color); 201 | } 202 | 203 | .content-section-image-overlay{ 204 | width: 100%; 205 | aspect-ratio: 1/1; 206 | border-radius: 50%; 207 | /* border: 2px solid blue; */ 208 | 209 | } 210 | 211 | .content-section-image img{ 212 | width: 100%; 213 | height: 100%; 214 | border-radius: 50%; 215 | object-fit: cover; 216 | } 217 | 218 | /* About section */ 219 | .about{ 220 | /* height: 7rem; */ 221 | padding: var(--padding); 222 | gap: 3rem; 223 | display: flex; 224 | flex-direction: column; 225 | justify-content: center; 226 | align-items: center; 227 | } 228 | 229 | .about-title{ 230 | font-size: 3rem; 231 | font-weight: 600; 232 | color: var(--text-color); 233 | text-align: center; 234 | width: 60%; 235 | /* border: 2px solid goldenrod; */ 236 | } 237 | 238 | .about-text{ 239 | font-size: 1.2rem; 240 | color: var(--text-color); 241 | /* border: 2px solid goldenrod; */ 242 | text-align: center; 243 | width: 60%; 244 | line-height: 1.7rem; 245 | } 246 | 247 | /* Contact Section */ 248 | .contact{ 249 | display: flex; 250 | justify-content: center; 251 | align-items: center; 252 | padding: 5rem var(--padding); 253 | background-color: var(--background-color); 254 | /* width: 100%; */ 255 | /* border: 2px solid red; */ 256 | } 257 | 258 | .contact-section{ 259 | display: flex; 260 | flex-direction: column; 261 | justify-content: center; 262 | align-items: center; 263 | flex: 1; 264 | gap: 3rem; 265 | /* width: 40%; */ 266 | /* border: 2px solid blue; */ 267 | } 268 | 269 | .contact-section-form{ 270 | display: flex; 271 | flex-direction: column; 272 | justify-content: center; 273 | align-items: center; 274 | gap: 5px; 275 | width: 50%; 276 | /* border: 2px solid green; */ 277 | } 278 | 279 | .contact-section-title{ 280 | font-size: 2rem; 281 | font-weight: 600; 282 | color: var(--text-color); 283 | text-align: center; 284 | width: 50%; 285 | /* border: 2px solid goldenrod; */ 286 | } 287 | 288 | .contact-section-form-label{ 289 | font-size: 1.1rem; 290 | color: var(--text-color); 291 | /* border: 2px solid goldenrod; */ 292 | width: 100%; 293 | /* line-height: 1.7rem; */ 294 | } 295 | 296 | .contact-section-form-input, .contact-section-form-textarea{ 297 | width: 100%; 298 | height: 3rem; 299 | border-radius: 5px; 300 | border: 1px solid var(--text-color); 301 | padding: 10px 1rem; 302 | font-size: 1rem; 303 | outline: none; 304 | margin-bottom: 1.5rem; 305 | transition: border 0s; 306 | } 307 | 308 | .contact-section-form-input:focus, .contact-section-form-textarea:focus{ 309 | border: 2px solid blue; 310 | } 311 | 312 | .contact-section-form-textarea{ 313 | height: 7rem; 314 | resize: none; 315 | } 316 | 317 | .contact-section-form-button{ 318 | /* width: 100%; */ 319 | height: 3rem; 320 | border-radius: 4px; 321 | border: none; 322 | padding: 0 1rem; 323 | font-size: 1.2rem; 324 | outline: none; 325 | margin-bottom: 1.5rem; 326 | background-color: var(--circle-background); 327 | color: var(--background-color); 328 | cursor: pointer; 329 | } 330 | 331 | .contact-section-form-button:hover{ 332 | background-color: #2F4C7A; 333 | } 334 | 335 | /* Footer Section */ 336 | .footer{ 337 | display: flex; 338 | justify-content: center; 339 | align-items: center; 340 | padding: 5rem var(--padding); 341 | background-color: var(--secondary-bgcolor); 342 | /* width: 100%; */ 343 | /* border: 2px solid red; */ 344 | } 345 | 346 | .footer-section{ 347 | display: flex; 348 | /* flex-direction: column; */ 349 | justify-content: space-between; 350 | align-items: center; 351 | flex: 1; 352 | /* gap: 3rem; */ 353 | /* width: 40%; */ 354 | /* border: 2px solid blue; */ 355 | } 356 | 357 | .footer-section-title{ 358 | font-size: 2.4rem; 359 | font-weight: 600; 360 | color: var(--text-color); 361 | text-align: center; 362 | /* width: 50%; */ 363 | /* border: 2px solid goldenrod; */ 364 | } 365 | 366 | .footer-section-icons{ 367 | display: flex; 368 | justify-content: center; 369 | align-items: center; 370 | gap: 3rem; 371 | /* width: 50%; */ 372 | /* border: 2px solid green; */ 373 | } 374 | 375 | .footer-section-icons i{ 376 | font-size: 1.4rem; 377 | color: var(--text-color); 378 | cursor: pointer; 379 | } 380 | 381 | .footer-section-icons i:hover{ 382 | color: #484848; 383 | } --------------------------------------------------------------------------------