Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orange links #1

Open
wants to merge 19 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
4,690 changes: 3,533 additions & 1,157 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.1.0",
"prettier": "^1.14.2",
"pretty-quick": "^1.6.0"
}
Expand Down
1 change: 0 additions & 1 deletion part-1/5-css-selectors/message-backgrounds.css

This file was deleted.

1 change: 0 additions & 1 deletion part-1/6-css-properties/styles.css

This file was deleted.

1 change: 0 additions & 1 deletion part-1/8-advanced-selectors/styles.css

This file was deleted.

1 change: 0 additions & 1 deletion part-2/10-media-queries/columns.css

This file was deleted.

1 change: 0 additions & 1 deletion part-2/11-flexbox/flexbox.css

This file was deleted.

9 changes: 0 additions & 9 deletions part-2/12-justify-content/flexbox.css

This file was deleted.

4 changes: 0 additions & 4 deletions part-2/13-align-items/flexbox.css

This file was deleted.

5 changes: 0 additions & 5 deletions part-2/14-order/flexbox.css

This file was deleted.

5 changes: 0 additions & 5 deletions part-2/15-align-self/flexbox.css

This file was deleted.

5 changes: 0 additions & 5 deletions part-2/16-more-flexbox/flexbox.css

This file was deleted.

1 change: 0 additions & 1 deletion part-2/17-nav-menu/styles.css

This file was deleted.

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
File renamed without changes.
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="https://goo.gl/maps/aza4h9nUBhn">iCafe</a> in Merchant City.
</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" />
</p>
<span class="message__time">7:38pm</span>
</div>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,30 @@

<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">
<time datetime="2018-03-25T19:25" class="message__time">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">
<time datetime="2018-03-25T19:35" class="message__time">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
</p>
<span class="message__time">Mar 25, 2018 7:38pm</span>
</div>
</div>
<time datetime="2018-03-25T19:38" class="message__time">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
File renamed without changes.
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>
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions week-1/5-css-selectors/message-backgrounds.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* Add your CSS code below */
#first-message {
background-color: red;
}

article {
background-color: cadetblue;
}

.message--latest {
background-color: yellow;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions week-1/6-css-properties/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* Add your CSS code below */
a {
color: red;
font-weight: bold;
text-decoration: none;
}

.message__time {
font-size: 0.9rem;
}

.message--unread {
border-left: 5px solid blue;
}

.message__time--old {
opacity: 0.5;
}

.message__content {
line-height: 2pc;
}
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions part-1/7-css-box/styles.css → week-1/7-css-box/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@
border: 1px solid #4491db;
border-radius: 4px;
background: #fff;
width: 100%;
height: 100%;
margin: 5px;
padding: 2px 5px;
}

.pages__showing {
padding: 0 5px;
margin: 0 5px;
}
14 changes: 14 additions & 0 deletions week-1/8-advanced-selectors/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +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;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions week-2/10-media-queries/columns.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* Add your own CSS code below */
@media screen and (min-width: 768px) {
.countries {
columns: 2;
}
}

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

.countries--third .container {
display: flex;
flex-direction: column-reverse;
}
24 changes: 14 additions & 10 deletions part-2/11-flexbox/index.html → week-2/11-flexbox/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ <h1 class="site-header__title">Exercises</h1>
<div class="exercise">
<h2 class="exercise__title">First</h2>
<ul class="countries countries--first">
<li class="country">1. Brazil</li>
<li class="country">2. Croatia</li>
<li class="country">3. Ethiopia</li>
<li class="country">4. Laos</li>
<li class="country">5. Uganda</li>
<div class="container">
<li class="country">1. Brazil</li>
<li class="country">2. Croatia</li>
<li class="country">3. Ethiopia</li>
<li class="country">4. Laos</li>
<li class="country">5. Uganda</li>
</div>
</ul>
</div>
<div class="solution">
Expand Down Expand Up @@ -57,11 +59,13 @@ <h3 class="solution__title">Solution</h3>
<div class="exercise">
<h2 class="exercise__title">Third</h2>
<ul class="countries countries--third">
<li class="country">1. Brazil</li>
<li class="country">2. Croatia</li>
<li class="country">3. Ethiopia</li>
<li class="country">4. Laos</li>
<li class="country">5. Uganda</li>
<div class="container">
<li class="country">1. Brazil</li>
<li class="country">2. Croatia</li>
<li class="country">3. Ethiopia</li>
<li class="country">4. Laos</li>
<li class="country">5. Uganda</li>
</div>
</ul>
</div>
<div class="solution">
Expand Down
File renamed without changes.
26 changes: 26 additions & 0 deletions week-2/12-justify-content/flexbox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.countries {
display: flex;
}

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

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

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

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

.countries--fourth {
flex-direction: column-reverse;
justify-content: space-around;
}
22 changes: 22 additions & 0 deletions week-2/13-align-items/flexbox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.countries {
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;
}
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions week-2/14-order/flexbox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.countries {
display: flex;
}

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

.countries--second .country--brazil {
order: 3;
}

.countries--second .country--uganda {
order: 5;
}

.countries--third .country--brazil {
order: 5;
}

.countries--third .country--croatia {
order: 4;
}

.countries--third .country--ethiopia {
order: 3;
}

.countries--third .country--laos {
order: 2;
}

.countries--third .country--uganda {
order: 1;
}
File renamed without changes.
File renamed without changes.
Loading