Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cd39422
Completed 1-parent-child exercise
hodhod0 Nov 8, 2021
34b5601
Completed 2-html-attributes exercise
hodhod0 Nov 8, 2021
7a67021
completed 4-links-scripts exercice
hodhod0 Nov 8, 2021
a2c0227
completed 5-css-selectors exercice
hodhod0 Nov 8, 2021
73eec8a
completed 6-css-properties exercice
hodhod0 Nov 8, 2021
8b6ab70
completed 7-css-box exercise
hodhod0 Nov 9, 2021
b8cbd24
completed 8-advanced-selectors exercise
hodhod0 Nov 9, 2021
143a15e
completed 10-media-queries exercise
hodhod0 Nov 9, 2021
487ffa6
completed 11-flexbox exercise
hodhod0 Nov 9, 2021
2f213ff
completed 12-justify-content exercise
hodhod0 Nov 9, 2021
18ab24a
completed 13-align-items exercise
hodhod0 Nov 9, 2021
d371df8
completed 14-order exercise
hodhod0 Nov 9, 2021
af7d629
completed 15-align-self exercise
hodhod0 Nov 9, 2021
a248c3d
completed 16-more-flexbox exercise
hodhod0 Nov 9, 2021
05ca76a
completed 17-nav-menu exercise
hodhod0 Nov 9, 2021
4694898
completed 19-search exercise
hodhod0 Nov 9, 2021
7354419
completed 20-labels
hodhod0 Nov 9, 2021
7675d0b
completed 21-buttons exercise
hodhod0 Nov 9, 2021
2a53666
completed 22-checkout exercicse
hodhod0 Nov 9, 2021
da71927
completed 23-comments exercise
hodhod0 Nov 9, 2021
94043de
completed 24-dietary exercise
hodhod0 Nov 9, 2021
813692a
completed 25-shirt-size exercise
hodhod0 Nov 9, 2021
7062886
completed 26-checkout-groups exercise
hodhod0 Nov 9, 2021
32b1cde
completed 27-attributes exercicse
hodhod0 Nov 10, 2021
353b554
purple links
hodhod0 Nov 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,365 changes: 3,350 additions & 15 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions part-1/1-parent-child/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<p class="message__content">
I can meet on Tuesday and Wednesday after 4.
</p>
<span class="message__time">7:15pm</span>
</div>
</div>
</div>
Expand Down
9 changes: 7 additions & 2 deletions part-1/2-html-attributes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@
<div class="message">
<div class="message__author">Luke</div>
<p class="message__content">
Let's meet at the iCafe in Merchant City. https://goo.gl/maps/aza4h9nUBhn
Let's meet at the <a href="https://goo.gl/maps/aza4h9nUBhn">iCafe</a> in Merchant City.
https://goo.gl/maps/aza4h9nUBhn
</p>
<span class="message__time">7:35pm</span>
</div>
<div class="message">
<div class="message__author">Won</div>
<p class="message__content">
Ok! https://media.giphy.com/media/l41K4KlVE8dgozf8I/giphy.gif
Ok!
<img
style="max-width: 400px;"
src="https://media.giphy.com/media/l41K4KlVE8dgozf8I/giphy.gif"
/>
</p>
<span class="message__time">7:38pm</span>
</div>
Expand Down
32 changes: 19 additions & 13 deletions part-1/3-semantic-html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,36 @@

<body>
<div class="site-wrapper">
<div class="site-header">
<header role="banner" class="site-header">
<div class="site-header__title">Messages</div>
</div>
<div class="messages">
<div class="message">
</header>
<main role="main" class="messages">
<article class="message">
<div class="message__author">Won</div>
<p class="message__content">Where should we meet later?</p>
<span class="message__time">Mar 25, 2018 7:25pm</span>
</div>
<div class="message">
<span class="message__time"
><time datetime="2018-03-25T19:25:00">Mar 25, 2018 7:25pm</time></span
>
</article>
<article class="message">
<div class="message__author">Luke</div>
<p class="message__content">
Let's meet at the iCafe in Merchant City. https://goo.gl/maps/aza4h9nUBhn
</p>
<span class="message__time">Mar 25, 2018 7:35pm</span>
</div>
<div class="message">
<span class="message__time"
><time datetime="2018-03-25T19:35:00">Mar 25, 2018 7:35pm</time></span
>
</article>
<article class="message">
<div class="message__author">Won</div>
<p class="message__content">
Ok! https://media.giphy.com/media/l41K4KlVE8dgozf8I/giphy.gif
</p>
<span class="message__time">Mar 25, 2018 7:38pm</span>
</div>
</div>
<span class="message__time"
><time datetime="2018-03-25T19:38:00">Mar 25, 2018 7:38pm</time></span
>
</article>
</main>
<div id="result" class="result"></div>
</div>
<script defer src="/js/3-result.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions part-1/4-links-scripts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8" />
<title>4. Adding Links and Scripts - HTML, CSS and Git Exercises</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="css/missing-styles.css" />
</head>

<body>
Expand Down Expand Up @@ -33,5 +34,6 @@
</div>
</div>
</div>
<script src="js/convertUrls.js"></script>
</body>
</html>
10 changes: 10 additions & 0 deletions part-1/5-css-selectors/message-backgrounds.css
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
/* Add your CSS code below */
#first-message {
background-color: red;
}
article {
background-color: cadetblue;
}

.message--latest {
background-color: yellow;
}
15 changes: 15 additions & 0 deletions part-1/6-css-properties/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
/* Add your CSS code below */
.site-wrapper a {
color: red;
font-weight: bold;
text-decoration: none;
font-size: 0.9rem;
}
.message--unread {
border-left: 5px solid blue;
}
.message:first-of-type {
opacity: 0.5;
}
.message {
line-height: 30px;
}
6 changes: 6 additions & 0 deletions part-1/7-css-box/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
border: 1px solid #4491db;
border-radius: 4px;
background: #fff;
margin: 20px;
}

.country {
border: 2px solid transparent;
margin: 10px;
}
13 changes: 13 additions & 0 deletions part-1/8-advanced-selectors/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
/* Try different box model properties below */
.site-header p {
color: white;
margin-bottom: 0;
}

.site-footer p {
font-size: 12px;
text-align: center;
}

.message:last-child {
box-shadow: 4px 4px 0 #dba944;
}
12 changes: 12 additions & 0 deletions part-2/10-media-queries/columns.css
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
/* Add your own CSS code below */

@media only screen and (min-width: 768px) {
.countries {
columns: 2;
}
}

@media only screen and (min-width: 1200px) {
.countries {
columns: 3;
}
}
9 changes: 9 additions & 0 deletions part-2/11-flexbox/flexbox.css
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/* Add your own CSS code below */
.countries--first {
display: flex;
flex-direction: row-reverse;
}

.countries--third {
display: flex;
flex-direction: column-reverse;
}
17 changes: 17 additions & 0 deletions part-2/12-justify-content/flexbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,20 @@
}

/* Add your own CSS code below */
.countries--first {
justify-content: end;
}

.countries--second {
justify-content: space-around;
}

.countries--third {
justify-content: end;
flex-direction: column;
}

.countries--fourth {
flex-direction: column-reverse;
justify-content: space-around;
}
16 changes: 16 additions & 0 deletions part-2/13-align-items/flexbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,19 @@
display: flex;
}
/* Add your own CSS code below */
.countries--first {
align-items: center;
}
.countries--second {
align-items: flex-end;
flex-direction: row-reverse;
}
.countries--third {
align-items: flex-end;
flex-direction: column;
}
.countries--fourth {
align-items: center;
flex-direction: column-reverse;
justify-content: end;
}
18 changes: 18 additions & 0 deletions part-2/14-order/flexbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,21 @@
}

/* Add your own CSS code below */
.countries--first .country--brazil {
order: 5;
}

.countries--second .country--croatia {
order: -1;
}
.countries--second .country--brazil {
order: 1;
}
.countries--second .country--uganda {
order: 1;
}

.countries--third {
flex-direction: row-reverse;
justify-content: start;
}
26 changes: 26 additions & 0 deletions part-2/15-align-self/flexbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,29 @@
}

/* Add your own CSS code below */
.countries--first .country--ethiopia {
align-self: flex-end;
}
.countries--second {
align-items: center;
}
.countries--second .country--ethiopia {
align-self: flex-end;
}

.countries--third {
align-items: flex-end;
}
.countries--third .country--brazil {
align-self: flex-start;
}
.countries--third .country--uganda {
align-self: flex-start;
}
.countries--fourth {
flex-direction: column;
align-items: flex-start;
}
.countries--fourth .country--uganda {
align-self: center;
}
42 changes: 42 additions & 0 deletions part-2/16-more-flexbox/flexbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,45 @@
}

/* Add your own CSS code below */
.countries--first {
justify-content: flex-end;
align-items: flex-end;
}
.countries--second {
align-items: flex-end;
justify-content: center;
flex-direction: row-reverse;
}

.countries--third {
align-items: flex-start;
justify-content: flex-end;
}
.countries--third .country--brazil {
align-self: flex-end;
}
.countries--fourth {
align-items: end;
flex-direction: column;
justify-content: center;
}
.countries--fourth .country--ethiopia {
align-self: center;
}
.countries--fourth .country--laos {
align-self: center;
}

.countries--fifth {
align-items: end;
flex-direction: column-reverse;
justify-content: center;
justify-content: space-between;
}
.countries--fifth .country--uganda {
align-self: center;
order: 0;
}
.countries--fifth .country--laos {
order: 1;
}
20 changes: 20 additions & 0 deletions part-2/17-nav-menu/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
/* Write your media queries and flexbox CSS below */
@media only screen and (min-width: 480px) {
.site-header__nav {
display: flex;
flex-direction: row;
}
}

@media only screen and (min-width: 700px) {
header {
display: flex;
flex-direction: row;
}
}
@media only screen and (min-width: 992px) {
header {
display: flex;
flex-direction: row;
justify-content: space-between;
}
}
4 changes: 3 additions & 1 deletion part-3/19-search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<body>
<div class="site-wrapper">
<main>
<p>Delete this line and add your form.</p>
<form action="https://www.google.com/search" method="get">
<input type="text" name="q" />
</form>
</main>
</div>
</body>
Expand Down
3 changes: 2 additions & 1 deletion part-3/20-labels/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<main>
<form method="GET" action="https://www.google.com/search">
<!-- Add a label here -->
<input type="text" name="q" />
<label for="search-input">search on google</label>
<input id="search-input" type="text" name="q" />
</form>
</main>
</div>
Expand Down
1 change: 1 addition & 0 deletions part-3/21-buttons/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<label for="search-input">Search on Google</label>
<input type="text" name="q" id="search-input" />
<!-- Add a submit button here -->
<button type="submit">search</button>
</form>
</main>
</div>
Expand Down
12 changes: 12 additions & 0 deletions part-3/22-checkout/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ <h1 class="shopping-basket__title">Your Shopping Basket</h1>
<h2 class="checkout__title">Checkout</h2>
<form method="GET" id="checkout-form" class="checkout__form">
<!-- Add the form fields here -->
<div style="margin-bottom: 15px;">
<label for="name">Name</label>
<input id="name" type="text" name="customer-name" />
</div>
<div style="margin-bottom: 15px;">
<label for="email">Email</label>
<input id="email" type="email" name="customer-email" />
</div>
<div style="margin-bottom: 15px;">
<label for="phone">Phone</label>
<input id="phone" type="tel" name="customer-phone" />
</div>

<button type="submit">Complete Purchase</button>
</form>
Expand Down
5 changes: 5 additions & 0 deletions part-3/23-comments/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ <h1>Our t-shirts are amazing!</h1>
<p>Add your comments and let us know what you think!</p>

<!-- Your comment form goes here -->
<form method="get">
<label for="">Add Your Message </label>
<textarea name="comment" id="" cols="30" rows="10"></textarea>
<button>Send Comment</button>
</form>
</div>
</main>
</div>
Expand Down
Loading