Skip to content
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ assignment_markup_warmup_sprint

And 1 and 2! And 1, and 2...!
[An HTM5 and CSS3 project from the Viking Code School](http://www.vikingcodeschool.com)

Jon Szeto
53 changes: 53 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<div class="outer-container">
<div class="header sticky">
<nav>
<p>The Lorem Micro Blog</p>
</nav>
</div>
<div class="container">
<aside class="ad box">
<h4 class="text-center">Check out my vertically centered ad!</h3>
<div class="ad-image"></div>
</aside>
<div class="content-container">
<header class="title box corners text-center">
<h1>The Lorem Micro Blog</h1>
<p>By Foo Bar</p>
</header>
<main class="main-container">
<article class="article-1 box">
<h2 class="text-center">A Most Posty Post</h2>
<p class="text-center">Written 1/2/2017</p>
<h3>First Thoughts...</h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</article>
<article class="article-2 box">
<h2 class="text-center">Another Posty Post</h2>
<p class="text-center">Written 1/2/2017</p>
<h3>Second Thought...</h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</article>
<article class="article-3 box">
<h2 class="text-center">A Posty Post</h2>
<p class="text-center">Written 1/2/2017</p>
<h3>Be it Resolved</h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</article>
</main>
<footer class="footer box corners">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p>
</footer>
</div>
</div>
</div>
</body>
</html>
198 changes: 198 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe, h2, h3, h4, h5, h6, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, canvas, details, embed,
figure, figcaption, hgroup,
menu, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
margin: 0;
padding: 0;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

/*--------------------CSS for assignment--------------------*/
.title {
background-color: green;
order: 3;
}

.ad {
background-color: pink;
}

.article-1 {
background-color: #C0C0C0;
order: 5;
}

.article-2 {
background-color: #808080;
order: 6;
}

.article-3 {
background-color: #A9A9A9;
order: 7;
}

.footer {
background-color: aqua;
padding: 1em;
order: 8;
}

nav {
background-color: yellow;
}

nav p {
margin: 0;
padding: 10px;
}

.header {
width:100%;
margin: 0;
margin-bottom: 10px;
padding: 0;
border-top: 2px solid black;
border-bottom: 2px solid black;
order: 0;

}

.sticky {
position: sticky;
top: 0;
}

aside {
display: flex;
flex-direction: column;
justify-content: center;
padding: 10% 1em;
height: 75%;
}

article {
align-self: flex-start;
width: 33%;
padding: 1em;
}

article h2{
margin: 0;
padding: 0;
}

.box {
border: 2px solid black;
margin: 5px;
align-items: center;
}

.container {
display: flex;
flex-flow: row nowrap;
justify-content: center;
margin: auto;
order: 1;
}

.content-container {
display: flex;
flex-direction: column;
}

.main-container {
display: flex;
flex-flow: row nowrap;
order: 4;
}

.ad-image {
width: 200px;
height: 200px;
background-color: white;
border: 2px dashed black;
margin-top: 1em;
}

.corners {
border-radius: 20px;
}

.text-center {
text-align: center;
}

@media only screen and (max-width: 990px) {
.header {
padding: 0;
margin-bottom: 0;
border-top: 2px solid black;
}

@media only screen and (max-width: 990px) {
.ad {display: none;}
.title {
order: 0;
margin: auto 0 0 0;
border-radius: 0;
border: none;
border-bottom: 2px solid black;
}
.main-container {
flex-flow: row wrap;
justify-content: space-between;
order: 1;
}
.article-1 {order: 1;}
.article-2 {order: 1;}
.article-3 {order: 2;}
.footer {
order: 2;
margin: auto 0 0 0;
border-radius: 0;
border-left: none;
border-right: none;
}
article:nth-child(3) {
flex-basis: 100%
}
}