Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Orange links #98

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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,341 changes: 3,332 additions & 9 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"serve": "live-server"
},
"devDependencies": {
"live-server": "^1.2.1",
"husky": "^0.14.3",
"live-server": "^1.2.1",
"prettier": "^1.14.2",
"pretty-quick": "^1.6.0"
}
Expand Down
1 change: 1 addition & 0 deletions week-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
6 changes: 4 additions & 2 deletions week-1/2-html-attributes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
<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 iCafe in Merchant City.
<p> <a href="https://goo.gl/maps/aza4h9nUBhn">click the location here </a> </p>
</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="width: 400px;" src="https://media.giphy.com/media/l41K4KlVE8dgozf8I/giphy.gif" alt="gif_ok">
</p>
<span class="message__time">7:38pm</span>
</div>
Expand Down
40 changes: 23 additions & 17 deletions week-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 class="site-header">
<div class="site-header__title">Messages</div>
</div>
<div class="messages">
<div class="message">
</header>
<main class="messages" role="main">
<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">
<time class="message__time" datetime="2018-03-25T19:25">Mar 25, 2018 7:25pm</time>
</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">
<div class="message__content">
Let's meet at the iCafe in Merchant City.
<p><a href="https://goo.gl/maps/aza4h9nUBhn">click the location here </a></p>
</div>
<time class="message__time" datetime="2018-03-25T19:35:00">Mar 25, 2018 7:35pm</time>
</article>
<article class="message">
<div class="message__author">Won</div>
<p class="message__content">
Ok! https://media.giphy.com/media/l41K4KlVE8dgozf8I/giphy.gif
Ok!
<img
style="width: 400px;"
src="https://media.giphy.com/media/l41K4KlVE8dgozf8I/giphy.gif"
alt="gif_ok"
/>
</p>
<span class="message__time">Mar 25, 2018 7:38pm</span>
</div>
</div>
<time class="message__time" datetime="2018-03-25T19:38:00">Mar 25, 2018 7:38pm</time>
</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 week-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="/week-1/4-links-scripts/css/missing-styles.css" />
</head>

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

article {
background-color: cadetblue;
}

.message--latest {
background-color: yellow;
}
30 changes: 30 additions & 0 deletions week-1/6-css-properties/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@
/* Add your CSS code below */
.link {
color: red;
text-decoration: none;
}

.link--map {
font-weight: bold;
}
.link--gif {
font-weight: bold;
font-size: small;
}

.message__time {
font-size: 0.9rem;
}
.message--unread {
border-left: 2px solid blue;
}

body {
padding: auto;
}
.message--old {
background-color: #ffffff;
opacity: 0.3;
}
.message {
line-height: 300%;
}
13 changes: 13 additions & 0 deletions week-1/7-css-box/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,16 @@
border-radius: 4px;
background: #fff;
}

.countries {
background-color: blue;
}
.country {
border: 1px solid #4491db;
width: auto;
height: auto;
padding: 7px;
margin: auto;
line-height: 40px;
font-size: auto;
}
11 changes: 11 additions & 0 deletions week-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: -0.5em;
}
.site-footer p {
font-size: 12px;
text-align: center;
}
.message:last-child {
box-shadow: 4px 4px 0 #dba944;
}
12 changes: 12 additions & 0 deletions week-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 screen and (max-width: 768px) {
.countries {
columns: 2;
}
}

@media screen and (min-width: 1200px) {
.countries {
columns: 3;
}
}
18 changes: 18 additions & 0 deletions week-2/11-flexbox/flexbox.css
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
/* Add your own CSS code below */

.countries {
display: flex;
}
.countries--first {
display: flex;
flex-direction: row-reverse;
}

.countries--second {
display: flex;
flex-direction: column;
}

.countries--third {
display: flex;
flex-direction: column-reverse;
}
17 changes: 17 additions & 0 deletions week-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: flex-end;
}

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

.countries--third {
justify-content: flex-end;
flex-direction: column;
}
.countries--fourth {
justify-content: space-around;
flex-direction: column-reverse;
}
18 changes: 18 additions & 0 deletions week-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 {
align-items: center;
}

.countries--second {
align-items: flex-end;
flex-direction: row-reverse;
}

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

.countries--fourth {
flex-direction: column-reverse;
align-items: center;
}
44 changes: 44 additions & 0 deletions week-2/14-order/flexbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,47 @@
}

/* Add your own CSS code below */
.countries--first .country:nth-child(1) {
order: 2;
background-color: lawngreen;
}

.countries--second .country:nth-child(1) {
order: 3;
background-color: lawngreen;
}

.countries--second .country:nth-child(4) {
order: 2;
background-color: lawngreen;
}

.countries--second .country:nth-child(5) {
order: 5;
background-color: lawngreen;
}

.countries--third .country:nth-child(5) {
order: -1;
background-color: lawngreen;
}

.countries--third .country:nth-child(4) {
order: 1;
background-color: lawngreen;
}

.countries--third .country:nth-child(3) {
order: 2;
background-color: lawngreen;
}

.countries--third .country:nth-child(2) {
order: 3;
background-color: lawngreen;
}

.countries--third .country:nth-child(1) {
order: 4;
background-color: lawngreen;
}
36 changes: 36 additions & 0 deletions week-2/15-align-self/flexbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,39 @@
}

/* Add your own CSS code below */
.countries--first :nth-child(3) {
align-self: flex-end;
}

.countries--second {
flex-direction: row;
align-items: center;
}
.countries--second :nth-child(3) {
align-self: flex-end;
}

.countries--third :nth-child(1) {
align-self: flex-start;
}
.countries--third :nth-child(2) {
align-self: flex-end;
}
.countries--third :nth-child(3) {
align-self: flex-end;
}

.countries--third :nth-child(4) {
align-self: flex-end;
}
.countries--third :nth-child(5) {
align-self: flex-start;
}
.countries--fourth {
flex-direction: column;
align-items: flex-start;
}
.countries--fourth :nth-child(5) {
flex-direction: column;
align-self: center;
}
Loading