├── 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 |
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 |
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 |
24 | {content.map((item, index) => (
25 |
26 |
27 |
28 |

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 | }
--------------------------------------------------------------------------------