Skip to content

did again moar thingies #6

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

Merged
merged 1 commit into from
Jan 23, 2022
Merged
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
37 changes: 34 additions & 3 deletions projectfolder/css/shopStyle.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
* {
margin: 0px;
padding: 0px;
}

body {
font-family: sans-serif;
border: black 5px solid;
line-height: 1.4;
}

p {
margin-bottom: 20px;
}

.product-container {
border: black 4px solid;
width: 825px;
margin: 5 0px auto;
}

.product-name {
background: #f7f7f7;
text-transform: uppercase;
text-align: center;
padding: 20px 0;
}

.product-details {
text-transform: uppercase;
margin-bottom: 20px;
}

.shipping {
Expand All @@ -22,6 +38,7 @@ body {

.price {
font-size: 25px;
margin-bottom: 0px;
}

/* Link styling */
Expand Down Expand Up @@ -54,23 +71,37 @@ a:hover {
/* Other stuff */

button {
width: 100%;
background-color: black;
text-transform: uppercase;
color: white;
border: black solid 5px;
color: white;
font-size: 18px;
}

button:hover {
color: black;
background-color: white;
border: white solid 5px;
border: black solid 5px;
/* The above can be consolidated down into:
background-color: white
filter:invert(100%)
*/
}

ul {
margin-left: 15px;
margin-bottom: 10px;
}

ul li {
list-style: square;
margin-bottom: 10px;
}

nav {
border: #1098ad solid 5px;
background-color: #ad2510;
opacity: 0.8;
justify-content: center;
}
79 changes: 63 additions & 16 deletions projectfolder/css/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,53 @@
/* Global reset, this resets everything to a starting point of 0 so you can customize the padding and margin at an individual level */
* {
margin: 0;
padding: 0;
}

body {
border-top: 5px solid #1098ad;
color: #444;
font-family: sans-serif;
}

.container {
width: 800px;
/* margin-left: auto;
margin-right: auto; */
margin: 0 auto;
}

nav a:link {
font-size: 18px;
}

article {
margin-bottom: 60px;
}
.main-header {
background-color: #f7f7f7;
/* padding: 20px;
padding-left: 40px;
padding-right: 40px; */
padding: 20px 40px;
margin-bottom: 60px;
height: 80px;
}

.post-header {
margin-bottom: 40px;
}

aside {
background-color: #f7f7f7;
border-top: 5px solid #1098ad;
border-bottom: 5px solid #1098ad;
/* padding-top: 50px;
padding-bottom: 50px; */
padding: 50px 0;
width: 500px;
}

h1,
h2,
h3 {
Expand All @@ -18,10 +63,13 @@ h1 {
h2 {
font-size: 40px;
border-bottom: 5px solid #1098ad;
margin-bottom: 30px;
}

h3 {
font-size: 30px;
margin-bottom: 20px;
margin-top: 40px;
}
h4 {
font-size: 20px;
Expand All @@ -31,10 +79,18 @@ h4 {
p {
font-size: 22px;
line-height: 1.5;
margin-bottom: 15px;
}

ul,
ol {
margin-left: 50px;
margin-bottom: 20px;
}

li {
font-size: 20px;
margin-bottom: 10px;
}

/* footer p {
Expand Down Expand Up @@ -63,26 +119,17 @@ li {
list-style: none;
}

.main-header {
background-color: #f7f7f7;
}

aside {
background-color: #f7f7f7;
border-top: 5px solid #1098ad;
border-bottom: 5px solid #1098ad;
}

/* .first-li {
font-weight: bold;
} */

/*
li:first-child {
font-weight: bold;
}
} */

li:last-child {
font-style: italic;
/* font-style: italic; */
margin-bottom: 0px;
}
/* style based on odd number of item, odd can be changed to even or a specific number
li:nth-child(odd) {
Expand Down Expand Up @@ -153,7 +200,7 @@ High to Low
5 -> child element

*/

nav a:link {
font-size: 18px;
.post-img {
width: 100%;
height: auto;
}
162 changes: 82 additions & 80 deletions projectfolder/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,96 +14,98 @@
</head>
<body>
<!-- Comment Block, this his how you do comments in html-->
<header class="main-header">
<!-- We can do inline CSS style like below
<div class="container">
<header class="main-header">
<!-- We can do inline CSS style like below
<h1 style="color: blue">
But we dont want do this
-->
<h1>📘 The Code Magazine</h1>
<h1>📘 The Code Magazine</h1>

<nav>
<a href="./pages/blog.html">Blog</a>
<a href="./pages/challenges.html">Challenges</a>
<a href="#">Fexbox</a>
<a href="#">CSS Grid </a>
</nav>
</header>
<nav>
<a href="./pages/blog.html">Blog</a>
<a href="./pages/challenges.html">Challenges</a>
<a href="#">Fexbox</a>
<a href="#">CSS Grid </a>
</nav>
</header>

<article>
<header>
<h2>The Basic Langauge of The Web: HTML</h2>
<img src="./imgs/laura-jones.jpg" src="the person who wrote this" width="50" height="50" />
<p id="author">Posted by <strong>Laura Jones </strong> on Monday, June 21st 2027</p>
<br />
<article>
<header class="post-header">
<h2>The Basic Langauge of The Web: HTML</h2>
<img src="./imgs/laura-jones.jpg" src="the person who wrote this" width="50" height="50" />
<p id="author">Posted by <strong>Laura Jones </strong> on Monday, June 21st 2027</p>
<br />

<img src="./imgs/post-img.jpg" alt="This is the voice of Satan" width="500" height="200" />
</header>
<p>
All modern websites and web applications are built using three <em>fundamental</em> technologies: HTML, CSS and
JavaScript. These are the languages of the web.
</p>
<p>In this post, let's focus on HTML. We will learn what HTML is all about, and why you too should learn it.</p>
<h3>What is HTML?</h3>
<p>
<strong>HTML </strong> stands for <strong>H</strong>yper<strong>T</strong>ext <strong>M</strong>arkup
<strong>L</strong>anguage. It's a markup language that web developers use to structure and describe the content
of a webpage (not a programming language).
</p>
<p>
HTML consists of elements that describe different types of content: paragraphs, links, headings, images, video,
etc. Web browsers understand HTML and render HTML code as websites.
</p>
<p>In HTML, each element is made up of 3 parts:</p>
<ol>
<li class="first-li">The opening tag</li>
<li>The closing tag</li>
<li>The actual element</li>
<li>You can learn more at the MDN Web Docs.</li>
</ol>
<img class="post-img" src="./imgs/post-img.jpg" alt="This is the voice of Satan" width="500" height="200" />
</header>
<p>
All modern websites and web applications are built using three <em>fundamental</em> technologies: HTML, CSS
and JavaScript. These are the languages of the web.
</p>
<p>In this post, let's focus on HTML. We will learn what HTML is all about, and why you too should learn it.</p>
<h3>What is HTML?</h3>
<p>
<strong>HTML </strong> stands for <strong>H</strong>yper<strong>T</strong>ext <strong>M</strong>arkup
<strong>L</strong>anguage. It's a markup language that web developers use to structure and describe the
content of a webpage (not a programming language).
</p>
<p>
HTML consists of elements that describe different types of content: paragraphs, links, headings, images,
video, etc. Web browsers understand HTML and render HTML code as websites.
</p>
<p>In HTML, each element is made up of 3 parts:</p>
<ol>
<li class="first-li">The opening tag</li>
<li>The closing tag</li>
<li>The actual element</li>
<li>You can learn more at the MDN Web Docs.</li>
</ol>

<p>
You can learn more at the
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank">MDN Web Docs</a>
</p>
<p>
You can learn more at the
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank">MDN Web Docs</a>
</p>

<h3>Why should you learn HTML</h3>
<h3>Why should you learn HTML</h3>

<p>There are countless reasons for learning the fundamental language of the web. Here are 5 of them:</p>
<p>There are countless reasons for learning the fundamental language of the web. Here are 5 of them:</p>

<ul>
<li class="first-li">To be able to use the fundamental web dev language</li>
<li>To hand-craft beautiful websites instead of relying on tools like Worpress or Wix</li>
<li>To build web applications</li>
<li>To impress friends To have fun 😃</li>
</ul>
<p>Hopefully you learned something new here. See you next time!</p>
</article>
<!--- Aside element is used for secondary information designed to compliment information-->
<aside class="related-aside">
<h4><strong>Related Posts</strong></h4>
<ul class="related-list">
<li>
<img src="imgs/related-1.jpg" alt="How to Learn Web Development" height="50" width="50" />
<a href="#"> How to Learn Web Development</a>
<p class="related-author">By Jonas Schmeltmann</p>
</li>
<br />
<li>
<img src="imgs/related-2.jpg" alt="Unknown Power of CSS" height="50" width="50" />
<a href="#"> The Uknown Power of CSS</a>
<p class="related-author">By Jonas Schmeltmann</p>
</li>
<br />
<li>
<img src="imgs/related-3.jpg" alt="Why Javascript is Awsome" height="50" width="50" />
<a href="#"> Why Javascript is Awsome</a>
<p class="related-author">By Jonas Schmeltmann</p>
</li>
</ul>
</aside>
<ul>
<li class="first-li">To be able to use the fundamental web dev language</li>
<li>To hand-craft beautiful websites instead of relying on tools like Worpress or Wix</li>
<li>To build web applications</li>
<li>To impress friends To have fun 😃</li>
</ul>
<p>Hopefully you learned something new here. See you next time!</p>
</article>
<!--- Aside element is used for secondary information designed to compliment information-->
<aside class="related-aside">
<h4><strong>Related Posts</strong></h4>
<ul class="related-list">
<li>
<img src="imgs/related-1.jpg" alt="How to Learn Web Development" height="50" width="50" />
<a href="#"> How to Learn Web Development</a>
<p class="related-author">By Jonas Schmeltmann</p>
</li>
<br />
<li>
<img src="imgs/related-2.jpg" alt="Unknown Power of CSS" height="50" width="50" />
<a href="#"> The Uknown Power of CSS</a>
<p class="related-author">By Jonas Schmeltmann</p>
</li>
<br />
<li>
<img src="imgs/related-3.jpg" alt="Why Javascript is Awsome" height="50" width="50" />
<a href="#"> Why Javascript is Awsome</a>
<p class="related-author">By Jonas Schmeltmann</p>
</li>
</ul>
</aside>

<footer>
<p id="copyright" class="copyright text">Copyright &copy 2017 by The Code Magazine</p>
</footer>
<footer>
<p id="copyright" class="copyright text">Copyright &copy 2017 by The Code Magazine</p>
</footer>
</div>
</body>
</html>
Loading