{"id":51,"date":"2018-01-23T23:50:20","date_gmt":"2018-01-24T04:50:20","guid":{"rendered":"http:\/\/newmediaproduction.mynmi.net\/?page_id=51"},"modified":"2023-09-06T23:58:42","modified_gmt":"2023-09-06T23:58:42","slug":"getting-started-on-project-one","status":"publish","type":"page","link":"https:\/\/nmi.cool\/web\/getting-started-on-project-one\/","title":{"rendered":"Getting started on Project One"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"1695\" src=\"https:\/\/nmi.cool\/newmediaproduction\/wp-content\/uploads\/sites\/3\/2020\/09\/dayne-topkin-y5_mFlLMwJk-unsplash-scaled-1.jpg\" alt=\"\" class=\"wp-image-2370\" srcset=\"https:\/\/nmi.cool\/web\/wp-content\/uploads\/sites\/3\/2020\/09\/dayne-topkin-y5_mFlLMwJk-unsplash-scaled-1.jpg 2560w, https:\/\/nmi.cool\/web\/wp-content\/uploads\/sites\/3\/2020\/09\/dayne-topkin-y5_mFlLMwJk-unsplash-scaled-1-300x199.jpg 300w, https:\/\/nmi.cool\/web\/wp-content\/uploads\/sites\/3\/2020\/09\/dayne-topkin-y5_mFlLMwJk-unsplash-scaled-1-1024x678.jpg 1024w, https:\/\/nmi.cool\/web\/wp-content\/uploads\/sites\/3\/2020\/09\/dayne-topkin-y5_mFlLMwJk-unsplash-scaled-1-768x509.jpg 768w, https:\/\/nmi.cool\/web\/wp-content\/uploads\/sites\/3\/2020\/09\/dayne-topkin-y5_mFlLMwJk-unsplash-scaled-1-1536x1017.jpg 1536w, https:\/\/nmi.cool\/web\/wp-content\/uploads\/sites\/3\/2020\/09\/dayne-topkin-y5_mFlLMwJk-unsplash-scaled-1-2048x1356.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><figcaption class=\"wp-element-caption\">Photo by&nbsp;<a href=\"https:\/\/unsplash.com\/@dtopkin1?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\">Dayne Topkin<\/a>&nbsp;on&nbsp;<a href=\"https:\/\/unsplash.com\/s\/photos\/start?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\">Unsplash<\/a>.<\/figcaption><\/figure>\n\n\n\n<p>1) In your class folder, navigate to the project-one folder. Within the project-one folder, create two new folders, one named <code>css<\/code> and one named <code>img<\/code>.<\/p>\n\n\n\n<p>2) Open Visual Studio Code. Create two new files. File one: an HTML file named\u2014you guessed it!\u2014<code>index.html<\/code>. Save this within your <code>project-one<\/code> folder.&nbsp;File two: a CSS file named&nbsp;<code>style.css<\/code>, saved in your css folder.<\/p>\n\n\n\n<p>3) In your <code>index.html<\/code>, start with our usual <a href=\"https:\/\/nmi.cool\/web\/html-boilerplate\/\">HTML boilerplate<\/a>, either with the VS Code <code>html5<\/code> autocomplete or, if you&#8217;re up for a challenge, from memory!<\/p>\n\n\n\n<p>4) In the <code>&lt;head&gt;<\/code> of <code>index.html<\/code>, go ahead and link to your <code>style.css<\/code> file. Remember the three elements of a <a href=\"https:\/\/nmi.cool\/web\/linking-to-an-external-stylesheet\/\">proper <code>&lt;link&gt;<\/code> element<\/a>. Again, try to do this from memory.<\/p>\n\n\n\n<p>5) In the <code>&lt;body&gt;<\/code> of <code>index.html<\/code>, add a <a href=\"https:\/\/developer.mozilla.org\/nl\/docs\/Web\/HTML\/Element\/header\"><code>&lt;header&gt;<\/code> element<\/a> and, enclosed within it, a&nbsp;<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/nav\"><code>&lt;nav&gt;<\/code> element<\/a>. You haven&#8217;t seen these elements before, but remember: a big part of learning what you need to learn in this class is learning how to find and implement online resources.<a href=\"#footnote-1-51\" id=\"note-1-51\" rel=\"footnote\">1<\/a><\/p>\n\n\n\n<p>6) In your <code>&lt;nav&gt;<\/code>, add a <code>&lt;ul&gt;<\/code> with three <code>&lt;li&gt;<\/code> elements. Each <code>&lt;li&gt;<\/code> should contain a link to one of the three pages of your site. Your first page is, of course, <code>index.html<\/code>. Your second and third pages should be&nbsp;<code>page-two.html<\/code> and <code>page-three.html<\/code>.<\/p>\n\n\n\n<p>7) Underneath your <code>&lt;header&gt;<\/code> element, add a <code>&lt;main&gt;<\/code> element.<a href=\"#footnote-2-51\" id=\"note-2-51\" rel=\"footnote\">2<\/a><\/p>\n\n\n\n<p>8) At this point, be sure to save your <code>index.html<\/code> in Visual Studio Code. Now, head over to the Finder, navigate to your <code>project-one<\/code> Dropbox folder. There, duplicate<a href=\"#footnote-3-51\" id=\"note-3-51\" rel=\"footnote\">3<\/a> your <code>index.html<\/code> twice. Rename one of the files\u2014again, you guessed it!\u2014<code>page-two.html<\/code> and the other <code>page-three.html<\/code>.<\/p>\n\n\n\n<p>9) Stop and think about why we did what we did in the last step. No really: stop and think about it for a second. Think about why it was efficient. Think about why we did it at the particular moment in this process that we did.<\/p>\n\n\n\n<p>10) Okay, from here, it&#8217;s up to you. Add some content to each of the three pages. A few quick thoughts to keep in mind as you do so:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To follow best practices, include only a single <code>&lt;h1&gt;<\/code> element per page.<\/li>\n\n\n\n<li>Place any body text in <code>&lt;p&gt;<\/code> tags.<\/li>\n\n\n\n<li>All <code>&lt;img&gt;<\/code> tags must include a descriptive <code>alt=\"\"<\/code> attribute.<\/li>\n\n\n\n<li>Maintain proper indenting throughout.<\/li>\n\n\n\n<li>Experiment with classes!<\/li>\n<\/ul>\n\n\n\n<p>11) And now, on to your <code>style.css<\/code>. A few things to think about here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Proper <a href=\"https:\/\/www.granneman.com\/webdev\/coding\/formatting-and-indenting-your-html\" target=\"_blank\" rel=\"noreferrer noopener\">formatting \/ indenting<\/a> throughout, obvs.<\/li>\n\n\n\n<li>Organize your style logically from most broad to most specific.<\/li>\n\n\n\n<li>Related to the above point, try to eliminate duplicated styles.<\/li>\n\n\n\n<li>Don&#8217;t just format top-level elements (<code>h1<\/code>, <code>h2<\/code>, <code>nav<\/code>, etc.)\u2014style a class or two!<\/li>\n\n\n\n<li>Maybe try styling your <code>&lt;nav&gt;<\/code> to look more like, well, a <code>nav<\/code>! Try searching for a tutorial \/ guide on how to do so.<\/li>\n<\/ul>\n\n\n\n<p>12) When you&#8217;re done working, it&#8217;s time to publish a copy of the files on your server! Connect to your server via Cyberduck.<\/p>\n\n\n\n<p>13) If you haven&#8217;t yet,&nbsp;download the entire file structure for this class <a rel=\"noreferrer noopener\" href=\"https:\/\/nmi.cool\/web\/indexes-and-directories\/#coursefilestructure\" target=\"_blank\">here<\/a>, unzip the file, and then upload the folder called \u201c<code>webdev<\/code>\u201d to the root of your domain (your <code>public_html<\/code> folder) in Cyberduck.<\/p>\n\n\n\n<p>14) In Cyberduck, navigate to <code>yourdomain.com\/webdev\/project-one<\/code>. Then, copy\u00a0all the files from your <code>project-one<\/code> folder <a href=\"#footnote-4-51\" id=\"note-4-51\" rel=\"footnote\">4<\/a> into your <code>project-one<\/code> folder on your server!<\/p>\n<div class=\"footnotes\"><hr \/><ol><li id=\"footnote-1-51\" class=\"footnote\"><p>Also, they&#8217;re&nbsp;just fancy (semantic) <code>divs<\/code>\u2014think on that for a bit.<a href=\"#note-1-51\" class=\"footnote-return\">&#8617;<\/a><\/p><\/li><!--\/#footnote-1.footnote--><li id=\"footnote-2-51\" class=\"footnote\"><p>No link provided this time\u2014it works how you expect it works, but you can look it up if you&#8217;re curious.<a href=\"#note-2-51\" class=\"footnote-return\">&#8617;<\/a><\/p><\/li><!--\/#footnote-2.footnote--><li id=\"footnote-3-51\" class=\"footnote\"><p>Either by right-clicking <code>index.html<\/code> and selecting &#8220;Duplicate&#8221; or, better, by clicking once on <code>index.html<\/code> and then holding down the Option key while you drag the file within the Finder.<a href=\"#note-3-51\" class=\"footnote-return\">&#8617;<\/a><\/p><\/li><!--\/#footnote-3.footnote--><li id=\"footnote-4-51\" class=\"footnote\"><p>But not the enclosing folder itself!<a href=\"#note-4-51\" class=\"footnote-return\">&#8617;<\/a><\/p><\/li><!--\/#footnote-4.footnote--><\/ol><\/div><!--\/#footnotes-->","protected":false},"excerpt":{"rendered":"<p>1) In your class folder, navigate to the project-one folder. Within the project-one folder, create two new folders, one named css and one named img. 2) Open Visual Studio Code. Create two new files. File one: an HTML file named\u2014you guessed it!\u2014index.html. Save this within your project-one folder.&nbsp;File two: a CSS file named&nbsp;style.css, saved in &hellip; <a href=\"https:\/\/nmi.cool\/web\/getting-started-on-project-one\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Getting started on Project One<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-51","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/nmi.cool\/web\/wp-json\/wp\/v2\/pages\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nmi.cool\/web\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/nmi.cool\/web\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/nmi.cool\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nmi.cool\/web\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":8,"href":"https:\/\/nmi.cool\/web\/wp-json\/wp\/v2\/pages\/51\/revisions"}],"predecessor-version":[{"id":4407,"href":"https:\/\/nmi.cool\/web\/wp-json\/wp\/v2\/pages\/51\/revisions\/4407"}],"wp:attachment":[{"href":"https:\/\/nmi.cool\/web\/wp-json\/wp\/v2\/media?parent=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}