Skip to content

Commit b7c11f1

Browse files
committed
add creative agency website
1 parent be5abdb commit b7c11f1

File tree

3 files changed

+124
-7
lines changed

3 files changed

+124
-7
lines changed

79-creative agency website/index.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ <h1>Some of our finest work</h1>
334334
</div>
335335
</section>
336336
<!-- contact -->
337-
<!--
338337
<section id="contact">
339338
<div class="title">
340339
<h2>Contact us</h2>
@@ -396,7 +395,6 @@ <h4>Address</h4>
396395
<div class="details">
397396
<h4>Email</h4>
398397
<a href="mailto:anyone@example.com">anyone@example.com</a>
399-
<a href="mailto:anyone@example.com">anyone@example.com</a>
400398
</div>
401399
</div>
402400
<div class="info-box">
@@ -408,12 +406,11 @@ <h4>Email</h4>
408406
<div class="details">
409407
<h4>Call</h4>
410408
<a href="tel:+19785555555">+1 978 555 5555</a>
411-
<a href="tel:+19784444444">+1 978 555 4444</a>
412409
</div>
413410
</div>
414411
</div>
415412
</div>
416-
</section> -->
413+
</section>
417414
<script src="script.js"></script>
418415
</body>
419416
</html>

79-creative agency website/style.css

+122-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
:root {
44
--main-color: #f60f20;
5+
--secondary-color: #1b206e;
56
--highlight-color: #c4a2fc;
67
--text-color: #111;
7-
--alternate-text-color: #1b206e;
88
}
99

1010
* {
@@ -201,7 +201,7 @@ section.home {
201201
font-size: 1.6rem;
202202
font-weight: 500;
203203
margin-top: 20px;
204-
color: var(--alternate-text-color);
204+
color: var(--secondary-color);
205205
}
206206

207207
.services .service p {
@@ -256,6 +256,98 @@ section.home {
256256
opacity: 1;
257257
}
258258

259+
/* CONTACT */
260+
.contact {
261+
position: relative;
262+
width: 100%;
263+
margin-top: 50px;
264+
display: flex;
265+
justify-content: space-between;
266+
align-items: flex-start;
267+
flex-direction: column;
268+
}
269+
270+
.contact-form {
271+
position: relative;
272+
background-color: #f9f9f9;
273+
width: 100%;
274+
padding: 30px 30px 20px;
275+
}
276+
277+
.contact-form form {
278+
width: 100%;
279+
}
280+
281+
.contact-form .row {
282+
display: flex;
283+
flex-direction: column;
284+
width: 100%;
285+
}
286+
287+
.contact-form .input50,
288+
.contact-form .input100 {
289+
width: 100%;
290+
margin: 0;
291+
}
292+
293+
.contact-form .row input,
294+
.contact-form .row textarea {
295+
position: relative;
296+
border: 1px solid rgba(0, 0, 0, 0.2);
297+
color: #111;
298+
background: transparent;
299+
width: 100%;
300+
padding: 10px;
301+
outline: none;
302+
font-size: 1rem;
303+
font-family: inherit;
304+
font-weight: 300;
305+
margin: 10px 0;
306+
resize: none;
307+
}
308+
309+
.contact-form .row textarea {
310+
height: 150px;
311+
}
312+
313+
.contact-form .row input[type="submit"] {
314+
background-color: var(--secondary-color);
315+
color: #fff;
316+
margin: 0;
317+
text-transform: uppercase;
318+
letter-spacing: 2px;
319+
font-weight: 300;
320+
border: 0;
321+
cursor: pointer;
322+
}
323+
324+
.contact-info {
325+
width: 100%;
326+
margin-top: 20px;
327+
background: #f9f9f9;
328+
padding: 30px 30px 20px;
329+
}
330+
331+
.contact-info .info-box {
332+
display: flex;
333+
align-items: flex-start;
334+
margin-bottom: 40px;
335+
}
336+
337+
.contact-info .info-box .contact-icon {
338+
width: 20px;
339+
margin-right: 40px;
340+
}
341+
342+
.contact-info .info-box .details h4 {
343+
color: var(--secondary-color);
344+
}
345+
346+
.contact-info .info-box .details p,
347+
.contact-info .info-box .details a {
348+
color: var(--text-color);
349+
}
350+
259351
/* MEDIA QUERIES */
260352
@media (min-width: 768px) {
261353
.services {
@@ -300,4 +392,32 @@ section.home {
300392
.services {
301393
grid-template-columns: repeat(3, 1fr);
302394
}
395+
396+
.contact {
397+
flex-direction: row;
398+
}
399+
400+
.contact-form {
401+
width: calc(100% - 400px);
402+
padding: 60px 40px 20px;
403+
}
404+
405+
.contact-form .row {
406+
flex-direction: row;
407+
}
408+
409+
.contact-form .input50 {
410+
width: 50%;
411+
margin: 0 10px;
412+
}
413+
414+
.contact-form .input100 {
415+
margin: 0 10px;
416+
}
417+
418+
.contact-info {
419+
width: 350px;
420+
margin-top: 0;
421+
padding: 60px 40px 20px;
422+
}
303423
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
| 76 | [New Year Countdown](https://github.com/solygambas/html-css-fifty-projects/tree/master/76-new%20year%20countdown) | [Live Demo](https://codepen.io/solygambas/full/rNWEaBb) |
8585
| 77 | [Sortable List](https://github.com/solygambas/html-css-fifty-projects/tree/master/77-sortable%20list) | [Live Demo](https://codepen.io/solygambas/full/qBqzEdO) |
8686
| 78 | [Speak Number Guessing Game](https://github.com/solygambas/html-css-fifty-projects/tree/master/78-speak%20number%20guessing%20game) | [Live Demo](https://codepen.io/solygambas/full/jOVjEre) |
87-
| 79 | [Creative Agency Website](https://github.com/solygambas/html-css-fifty-projects/tree/master/79-creative%20agency%20website) | [Live Demo](#) |
87+
| 79 | [Creative Agency Website](https://github.com/solygambas/html-css-fifty-projects/tree/master/79-creative%20agency%20website) | [Live Demo](https://codepen.io/solygambas/full/LYbKoRj) |
8888

8989
This repository is mostly based on 2 courses by Brad Traversy (2020):
9090

0 commit comments

Comments
 (0)