-
-
Notifications
You must be signed in to change notification settings - Fork 245
completed exercises 2 and 3 #61
base: master
Are you sure you want to change the base?
Changes from all commits
6583347
ba1e06f
6a85db9
5ae2215
aeb08e5
b93b81c
419e79d
cd6a385
83569eb
650cc2a
9ae63b7
e297a14
5d24c87
791413a
62a9dd9
b06e3fb
3c3f1b9
1061549
5082327
fd1a6cd
9e75cea
57ae0a5
89de248
ac03f7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
0 info it worked if it ends with ok | ||
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'week', '1/4' ] | ||
2 info using [email protected] | ||
3 info using [email protected] | ||
4 verbose stack Error: missing script: week | ||
4 verbose stack at run (/usr/share/npm/lib/run-script.js:147:19) | ||
4 verbose stack at /usr/share/npm/lib/run-script.js:57:5 | ||
4 verbose stack at /usr/share/npm/node_modules/read-package-json/read-json.js:345:5 | ||
4 verbose stack at checkBinReferences_ (/usr/share/npm/node_modules/read-package-json/read-json.js:309:45) | ||
4 verbose stack at final (/usr/share/npm/node_modules/read-package-json/read-json.js:343:3) | ||
4 verbose stack at then (/usr/share/npm/node_modules/read-package-json/read-json.js:113:5) | ||
4 verbose stack at /usr/share/npm/node_modules/read-package-json/read-json.js:300:12 | ||
4 verbose stack at /usr/share/npm/node_modules/graceful-fs/graceful-fs.js:76:16 | ||
4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3) | ||
5 verbose cwd /home/coder/html-css-git-exercises | ||
6 error Linux 4.15.0-45-generic | ||
7 error argv "/usr/bin/node" "/usr/bin/npm" "run" "week" "1/4" | ||
8 error node v8.10.0 | ||
9 error npm v3.5.2 | ||
10 error missing script: week | ||
11 error If you need help, you may report this error at: | ||
11 error <https://github.com/npm/npm/issues> | ||
12 verbose exit [ 1, true ] | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,25 +10,27 @@ | |
</head> | ||
|
||
<body> | ||
<div class="site-wrapper"> | ||
<div class="site-header"> | ||
<header role="banner"></header> | ||
<main role="main"> | ||
<header role="banner"> | ||
<div class="site-header__title">Messages</div> | ||
</div> | ||
</header> | ||
|
||
<div class="messages"> | ||
<div class="message"> | ||
<article> | ||
<div class="message__author">Anthony</div> | ||
<p class="message__content"> | ||
Who is available to meet this week to work on our group project? | ||
</p> | ||
<span class="message__time">6:48pm</span> | ||
</div> | ||
<div class="message"> | ||
<time datetime="19:15"></time> | ||
</article> | ||
<article> | ||
<div class="message__author">Habiba</div> | ||
<p class="message__content"> | ||
I can meet on Tuesday and Wednesday after 4. | ||
</p> | ||
</div> | ||
</article> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
</html> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only thing you're meant to do for exercise 1 is add a time value to the HTML. Exercises 2 and 3 should be changes in other files (you don't seem to have done those?). |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
/* Add your CSS code below */ | ||
article { | ||
background-color: cadetblue; | ||
} | ||
|
||
.message--latest { | ||
background-color: yellow; | ||
} | ||
|
||
#first-message { | ||
background-color: red; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks good! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
/* Add your CSS code below */ | ||
.link-link--gif, | ||
.link-link--map { | ||
color: red; | ||
font-weight: bold; | ||
text-decoration: none; | ||
} | ||
.message_time { | ||
font-size: 0.9rem; | ||
} | ||
.message_content { | ||
opacity: 1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you check whether this works? Always run the code (or view the web page here) and make sure the changes you make have the intended effect. Look up what |
||
line-height: 36px; | ||
} | ||
.message_unread { | ||
border-left: 5px dashed blue; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +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; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
/* Write your media queries and flexbox CSS below */ | ||
@media (min-width: 480px) { | ||
.site-header__nav { | ||
display: flex; | ||
align-items: center; | ||
} | ||
} | ||
@media (min-width: 700px) { | ||
.site-header { | ||
display: flex; | ||
align-items: center; | ||
} | ||
} | ||
@media (min-width: 992px) { | ||
.site-header { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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="Git"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're confusing |
||
<input type="submit" value="Google search" /> | ||
</form> | ||
</main> | ||
</div> | ||
</body> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,12 @@ <h1 class="shopping-basket__title">Your Shopping Basket</h1> | |
<div class="checkout"> | ||
<h2 class="checkout__title">Checkout</h2> | ||
<form method="GET" id="checkout-form" class="checkout__form"> | ||
<!-- Add the form fields here --> | ||
|
||
<label> for="customer-name">customer-name</label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The text values for the labels should be normal text the user will see on screen, so something like "Name" rather than "customer-name", and "Email" rather than "customer-email". |
||
<input id="customer-name" type="text" name="customer-name"> | ||
<label for="email">customer-email</label> | ||
<input id="email" type="email" name="customer-email"> | ||
<label for="tel">customer-phone</label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
<input id="cusomer-phone" type="tel" name="cusomer-phone"> | ||
<button type="submit">Complete Purchase</button> | ||
</form> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,12 @@ <h1>Our t-shirts are amazing!</h1> | |
|
||
<div class="comments"> | ||
<p>Add your comments and let us know what you think!</p> | ||
<form> | ||
<label>Add Your Message</label> | ||
<textarea> comment </textarea> | ||
<button>Send Comment</button> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remember the label must always be explicitly matched to another element (even if it seems obvious to you what it is for here, because there is only one input field. We saw two ways to do this, you can use either. |
||
</form> | ||
|
||
<!-- Your comment form goes here --> | ||
</div> | ||
</main> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,29 @@ <h1>CodeYourFuture Summit</h1> | |
</p> | ||
|
||
<form> | ||
<!-- Your multiple choice goes here --> | ||
<fieldset> | ||
<legend>dietry requirments</legend> | ||
<label> | ||
<input type="checkbox" name="yumy food" value="ha" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Watch out for typos. You have two fields here, one called There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tanks for your feedback and recommendation.i will finish the rest of exercises. |
||
Halal | ||
</label> | ||
<label> | ||
<input type="checkbox" name="yummy food" value="ko" /> | ||
Kosher | ||
</label> | ||
<label> | ||
<input type="checkbox" name="yummy food" value="ve" /> | ||
Vegeterian | ||
</label> | ||
<label> | ||
<input type="checkbox" name="yummy food" value="ve" /> | ||
Vegan | ||
</label> | ||
<label> | ||
<input type="checkbox" name="yummy food" value="gl" /> | ||
Gluten Free | ||
</label> | ||
</fieldset> | ||
<button type="submit">Submit</button> | ||
</form> | ||
</main> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be careful to review your changes before committing them :). Use
git status
andgit diff
to check what's changed and what you are adding, and don't use the commandsgit add .
orgit commit -am
(even if you see instructions somewhere that say to do that 🙂 ).