Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
46914c4
Completed 1-parent-child exercise
Moemenhaydar Dec 1, 2022
095ea88
Completed 2-html-attributes exercise
Moemenhaydar Dec 2, 2022
78be4ed
Completed 3-html-attributes exercise
Moemenhaydar Dec 2, 2022
6eaf527
Completed 4-html-attributes exercise
Moemenhaydar Dec 2, 2022
c85d97d
Completed 5-html-attributes exercise
Moemenhaydar Dec 2, 2022
dc92226
Completed 6-html-attributes exercise
Moemenhaydar Dec 2, 2022
ffb5285
Completed 6-html-attributes exercise
Moemenhaydar Dec 2, 2022
94a4a7c
Completed 7-html-attributes exercise
Moemenhaydar Dec 2, 2022
68f1eef
Completed 8-html-attributes exercise
Moemenhaydar Dec 2, 2022
3ee6d86
Completed 10-html-attributes exercise
Moemenhaydar Dec 2, 2022
03c3973
Completed 11-html-attributes exercise
Moemenhaydar Dec 2, 2022
6967b64
Completed 12-html-attributes exercise
Moemenhaydar Dec 2, 2022
17b88c7
Completed 13-html-attributes exercise
Moemenhaydar Dec 2, 2022
889c404
Completed 14-html-attributes exercise
Moemenhaydar Dec 2, 2022
a63c3c1
Completed 15-html-attributes exercise
Moemenhaydar Dec 2, 2022
0420664
Completed 16-html-attributes exercise
Moemenhaydar Dec 2, 2022
8145458
Completed 17-html-attributes exercise
Moemenhaydar Dec 2, 2022
200af2b
change link color to orange
Moemenhaydar Dec 2, 2022
da1843a
Merge pull request #1 from Moemenhaydar/orange_links
Moemenhaydar Dec 2, 2022
b8591c2
Completed 19-html-attributes exercise
Moemenhaydar Dec 2, 2022
c1f42ed
Merge branch 'master' of https://github.com/Moemenhaydar/HTML-CSS-GIT-1
Moemenhaydar Dec 2, 2022
bee6b22
Completed 20-html-attributes exercise
Moemenhaydar Dec 2, 2022
59a0f85
Completed 21-html-attributes exercise
Moemenhaydar Dec 2, 2022
009d931
Completed 22-html-attributes exercise
Moemenhaydar Dec 2, 2022
0d32d42
Completed 23-html-attributes exercise
Moemenhaydar Dec 2, 2022
a28ea9f
Completed 24-html-attributes exercise
Moemenhaydar Dec 2, 2022
e9a2a9c
Completed 25-html-attributes exercise
Moemenhaydar Dec 2, 2022
35044a3
Completed 26-html-attributes exercise
Moemenhaydar Dec 2, 2022
2db61b9
Completed 27-html-attributes exercise
Moemenhaydar Dec 2, 2022
77867f8
fuchsia color
Moemenhaydar Dec 2, 2022
0db6e29
finalllyyyyyyyy
Moemenhaydar Dec 2, 2022
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
Binary file added .swp
Binary file not shown.
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
4 changes: 2 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,14 @@
<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="#"> 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 src="https://media.giphy.com/media/l41K4KlVE8dgozf8I/giphy.gif" alt="gif" width="300px">
</p>
<span class="message__time">7:38pm</span>
</div>
Expand Down
26 changes: 16 additions & 10 deletions part-1/3-semantic-html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,35 @@

<body>
<div class="site-wrapper">
<header role="banner" class="site-header">
<div class="site-header">
<div class="site-header__title">Messages</div>
</div>
</div>
</header>
<main role="main" class="messages">

<div class="messages">
<div class="message">
<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-25T07: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">
</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>
<span class="message__time"><time datetime="2018-03-25T07:38:00"></time>Mar 25, 2018 7:38pm</span>
</article>
</div>
<div id="result" class="result"></div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions part-1/4-links-scripts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<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="/part-1/4-links-scripts/css/missing-styles.css">
</head>

<body>

<div class="site-wrapper">
<div class="site-header">
<div class="site-header__title">Messages</div>
Expand All @@ -33,5 +35,6 @@
</div>
</div>
</div>
<script src="/part-1/4-links-scripts/js/convertUrls.js" ></script>
</body>
</html>
2 changes: 1 addition & 1 deletion part-1/5-css-selectors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<p class="message__content">Where should we meet later?</p>
<time class="message__time">7:25pm</time>
</div>
<article>
<article id="second-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
Expand Down
9 changes: 9 additions & 0 deletions part-1/5-css-selectors/message-backgrounds.css
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/* Add your CSS code below */
#first-message{
background-color: red;
}
#second-message{
background-color: cadetblue;
}
.message--latest{
background-color: yellow;
}
18 changes: 18 additions & 0 deletions part-1/6-css-properties/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
/* Add your CSS code below */
.link {

color: red;
text-decoration: none;
font-weight: bold;
}
.message__time{
font-size: 0.9em;
}
.message--unread{
border-left: 1px blue solid;
}
.message:first-child{
opacity: 0.4;
}
.message > *{
line-height: 50px;
}
14 changes: 14 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,18 @@
border: 1px solid #4491db;
border-radius: 4px;
background: #fff;

width: 50px;
height: 40px;
margin: 60px;
padding: 10px;
border: 1px;
}
.country
{
background-color: lightgrey;
width: 300px;
border: 15px solid blueviolet;
padding: 20px;
margin: 30px;
}
2 changes: 1 addition & 1 deletion part-1/8-advanced-selectors/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Follow the steps below to complete this exercise. _Do not modify the index.html

When you complete this exercise it should look like the image below.

![Screenshot of the solution](/images/8/solution.png).
![Screenshot of 4px 4px 0 #dba944 solution](/images/8/solution.png).

_Hint: All of the selectors you need are described [in this guide](https://learn.shayhowe.com/advanced-html-css/complex-selectors/)._
11 changes: 11 additions & 0 deletions part-1/8-advanced-selectors/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
/* Try different box model properties below */
.site-header p {
color: white;
margin-bottom: -4px;
}
.site-footer p{
font-size: 12px;
text-align: center;
}
.message:last-child{
box-shadow: 4px 4px 0 #dba944;
}
13 changes: 13 additions & 0 deletions part-2/10-media-queries/columns.css
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
/* 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; }
}
10 changes: 10 additions & 0 deletions part-2/11-flexbox/flexbox.css
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
/* Add your own CSS code below */
.countries{
display: flex;
flex-direction: row-reverse;
}
.countries--second{
flex-direction: column
}
.countries--third{
flex-direction: column-reverse;
}
18 changes: 18 additions & 0 deletions part-2/12-justify-content/flexbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@

.countries--second .country {
padding: 0.5em;

}

/* Add your own CSS code below */
.countries--second{
justify-content: space-around;

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

}
.countries--fourth{
flex-direction: column-reverse;
justify-content: space-around;
}
.countries--first
{
justify-content: end;
}
18 changes: 18 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,21 @@
display: flex;
}
/* Add your own CSS code below */
.countries--first{
flex-direction: row;
align-items: center;
}
.countries--second{
flex-direction: row-reverse;
align-items: flex-end;

}
.countries--third{
flex-direction: column;
align-items: flex-end;
}
.countries--fourth{
flex-direction: column-reverse;
align-items:center

}
27 changes: 27 additions & 0 deletions part-2/14-order/flexbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,30 @@
}

/* Add your own CSS code below */
.countries--first .country--brazil{
order: 6;
}
.countries--second .country--laos{
order: -2;
}
.countries--second .country--ethiopia{
order: -3;
}
.countries--second .country--croatia{
order: -4;
}
.countries--third .country--brazil{
order: 5;
}
.countries--third .country--laos{
order: 2;
}
.countries--third .country--ethiopia{
order: 3;
}
.countries--third .country--croatia{
order: 4
}
.countries--third .country--uganda{
order: 1;
}
28 changes: 28 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,31 @@
}

/* 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-start;
}
.countries--third .country--ethiopia {
align-self: flex-end;
}
.countries--third .country--croatia {
align-self: flex-end;
}
.countries--third .country--laos{
align-self: flex-end;
}
.countries--fourth{
align-items: flex-start;
flex-direction: column;
}
.countries--fourth .country--uganda {
align-self: center;
}
38 changes: 38 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,41 @@
}

/* Add your own CSS code below */
.countries--first {
align-items: flex-end;
justify-content: end;
}
.countries--second {
flex-direction: row-reverse;
align-items: flex-end;
justify-content: center;
}
.countries--third .country--brazil{
align-self: flex-end;
}
.countries--third{
align-items: flex-start;
}
.countries--fourth{
align-items: flex-end;
justify-content: center;
flex-direction: column;
}
.countries--fourth .country--laos{
align-self: center;
}
.countries--fourth .country--ethiopia{
align-self: center;
}
.countries--fifth{
flex-direction: column-reverse;
align-items: flex-end;
justify-content: space-around;
}
.countries--fifth .country--laos{
order: 5;
}
.countries--fifth .country--uganda{
order: 4;
align-self: center;
}
28 changes: 28 additions & 0 deletions part-2/17-nav-menu/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
/* Write your media queries and flexbox CSS below */
@media only screen and (min-width:480px) {
.site-header__nav{
display:flex;
flex-direction: column;

}
}
@media only screen and (min-width:700px) {
.site-header__nav{
display:flex;
flex-direction: row;

}
.site-wrapper {
display: flex;
flex-direction: row;
}

}
@media only screen and (min-width:992px) {
.site-header__nav{
display:flex;
}
.site-wrapper {
display: flex;
flex-direction: row;
}
}
2 changes: 1 addition & 1 deletion part-2/18-git-merge/styles.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Add your own CSS code below */
.link {
color: #4491db;
color: orange;
font-weight: 700;
text-decoration: none;
}
Loading