Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use wrapper instead of body

  • Loading branch information...
commit 4b22da748427459bcbed0ec7b8b7201423b6ef0c 1 parent 038aa95
@garethrees authored
Showing with 137 additions and 134 deletions.
  1. +54 −54 index.html
  2. +83 −80 stylesheets/application.css
View
108 index.html
@@ -1,77 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="utf-8" />
- <title>Nice Landing Page</title>
- <link rel="stylesheet" href="stylesheets/reset.css" />
- <link rel="stylesheet" href="stylesheets/application.css" />
- <link href='http://fonts.googleapis.com/css?family=Maven+Pro:regular,500,bold,900' rel='stylesheet' type='text/css'>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
- <!--[if IE]>
- <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
+ <meta charset="utf-8" />
+ <title>Nice Landing Page</title>
+ <link rel="stylesheet" href="stylesheets/reset.css" />
+ <link rel="stylesheet" href="stylesheets/application.css" />
+ <link href='http://fonts.googleapis.com/css?family=Maven+Pro:regular,500,bold,900' rel='stylesheet' type='text/css'>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
+ <!--[if IE]>
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
</head>
<body>
- <header>
- <h1><span id="logo">N</span> nicelandingpage.com</h1>
- <nav>
- <ul>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- <li><a href="#">Link</a></li>
- </ul>
- </nav>
- </header>
+ <div id="page" class="clearfix">
- <div id="body" class="clearfix">
+ <header>
+ <h1><span id="logo">N</span> nicelandingpage.com</h1>
+ <nav>
+ <ul>
+ <li><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ <li><a href="#">Link</a></li>
+ </ul>
+ </nav>
+ </header>
- <h1>A Nice Looking Headline</h1>
+ <h1>A Nice Looking Headline</h1>
- <section id="intro" class="clearfix">
+ <section id="intro" class="clearfix">
- <img src="http://placehold.it/460x310" alt="An image relevant to the copy" />
+ <img src="http://placehold.it/460x310" alt="An image relevant to the copy" />
- <div>
- <h1>A Secondary Headline</h1>
+ <div>
+ <h1>A Secondary Headline</h1>
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
- <ul>
- <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit</li>
- <li>Sed do eiusmod tempor incididunt ut labore et dolore</li>
- <li>Ut enim ad minim veniam, quis nostrud exercitation</li>
- </ul>
+ <ul>
+ <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit</li>
+ <li>Sed do eiusmod tempor incididunt ut labore et dolore</li>
+ <li>Ut enim ad minim veniam, quis nostrud exercitation</li>
+ </ul>
- <span id="call-to-action">Do it now! <a href="#">click here!</a></span>
- </div>
+ <span id="call-to-action">Do it now! <a href="#">click here!</a></span>
+ </div>
- </section>
+ </section>
- <article class="testimonial">
- <img src="http://placehold.it/150x180" alt="An image relevant to the copy" />
- <div>
- <h1>A Testimonial!</h1>
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate.</p>
- </div>
- </article>
+ <article class="testimonial">
+ <img src="http://placehold.it/150x180" alt="An image relevant to the copy" />
+ <div>
+ <h1>A Testimonial!</h1>
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate.</p>
+ </div>
+ </article>
- <section id="info">
- <img src="http://placehold.it/150x180" alt="An image relevant to the copy" />
- <div>
- <h1>More Information</h1>
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate.</p>
- </div>
- </section>
+ <section id="info">
+ <img src="http://placehold.it/150x180" alt="An image relevant to the copy" />
+ <div>
+ <h1>More Information</h1>
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate.</p>
+ </div>
+ </section>
- </div>
+ </div>
- <footer>
- <p><span class="made-by">Made by <a href="http://github.com/garethrees">Gareth</a></span> / <span class="inspiration">Inspired by <a href="http://blog.kissmetrics.com/landing-page-design-infographic">Kissmetrics</a></span></p>
- </footer>
+ <footer>
+ <p><span class="made-by">Made by <a href="http://github.com/garethrees">Gareth</a></span> / <span class="inspiration">Inspired by <a href="http://blog.kissmetrics.com/landing-page-design-infographic">Kissmetrics</a></span></p>
+ </footer>
</body>
</html>
View
163 stylesheets/application.css
@@ -1,12 +1,8 @@
html { background:#eee; }
body {
- background:#FFF;
- color:#111;
- font-family:"Maven Pro", Arial, Helvetica, Sans-Serif;
- margin:0 auto;
- padding:20px;
- width:960px;
+ color:#111;
+ font-family:"Maven Pro", Arial, Helvetica, Sans-Serif;
}
h1,h2,h3,h4,h5,h6 { text-transform:uppercase; }
@@ -15,151 +11,158 @@ a { color:#64ACDE; }
a:focus,
a:hover {
- background:#64ACDE;
- color:#FFF;
- text-decoration:none;
+ background:#64ACDE;
+ color:#FFF;
+ text-decoration:none;
}
p {
- color:#777;
- font-size:0.9em;
- line-height:1.3;
- margin-bottom:0.75em;
+ color:#777;
+ font-size:0.9em;
+ line-height:1.3;
+ margin-bottom:0.75em;
+}
+
+#page {
+ background:#FFF;
+ margin:0 auto;
+ padding:20px;
+ width:960px;
}
header {
- border-bottom:2px dotted #E4E4E4;
- clear:both;
- padding:20px 0;
+ border-bottom:2px dotted #E4E4E4;
+ clear:both;
+ padding:20px 0;
}
header h1 {
- display:inline;
- font-size:1.25em;
- font-weight:900;
+ display:inline;
+ font-size:1.25em;
+ font-weight:900;
}
header h1 span#logo {
- background:#C5D33A;
- border-radius:1em; -moz-border-radius:1em; -webkit-border-radius:1em;
- color:#FFF;
- font-weight:600;
- padding:0 0.2em;
+ background:#C5D33A;
+ border-radius:1em; -moz-border-radius:1em; -webkit-border-radius:1em;
+ color:#FFF;
+ font-weight:600;
+ padding:0 0.2em;
}
header nav {
- float:right;
- font-weight:bold;
- text-transform:uppercase;
+ float:right;
+ font-weight:bold;
+ text-transform:uppercase;
}
header nav ul {}
header nav li {
- border-right:2px solid #DDD;
- display:inline;
- padding:0 0.5em;
+ border-right:2px solid #DDD;
+ display:inline;
+ padding:0 0.5em;
}
header nav li:last-child {
- border:none;
+ border:none;
}
header nav li a {
- color:#888;
- text-decoration:none;
+ color:#888;
+ text-decoration:none;
}
-#body > h1 {
- color:#64ACDE;
- font-size:3em;
- font-weight:900;
- padding:0.5em 0;
+#page > h1 {
+ color:#64ACDE;
+ font-size:3em;
+ font-weight:900;
+ padding:0.5em 0;
}
#intro {
- border-bottom:2px dotted #E4E4E4;
- clear:both;
- margin-bottom:20px;
- padding:20px 0;
+ border-bottom:2px dotted #E4E4E4;
+ clear:both;
+ margin-bottom:20px;
+ padding:20px 0;
}
#intro img {
- float:left;
- margin-right:10px;
+ float:left;
+ margin-right:10px;
}
#intro > div {
- float:left;
- margin-left:10px;
- width:460px;
+ float:left;
+ margin-left:10px;
+ width:460px;
}
#intro h1 {
- color:#555;
- font-size:1.5em;
- font-weight:bold;
- margin-bottom:0.25em;
+ color:#555;
+ font-size:1.5em;
+ font-weight:bold;
+ margin-bottom:0.25em;
}
#intro ul {
- font-weight:bold;
- line-height:1.5;
- list-style-type:square;
- margin-bottom:0.75em;
- padding-left:1.2em;
+ font-weight:bold;
+ line-height:1.5;
+ list-style-type:square;
+ margin-bottom:0.75em;
+ padding-left:1.2em;
}
#intro span#call-to-action {
- color:#C63;
- display:block;
- font-size:1.75em;
- font-weight:600;
- margin-top:0.75em;
- text-transform:uppercase;
+ color:#C63;
+ display:block;
+ font-size:1.75em;
+ font-weight:600;
+ margin-top:0.75em;
+ text-transform:uppercase;
}
#intro span#call-to-action a {
- background:#C63;
- border-radius:12px; -moz-border-radius:12px; -webkit-border-radius:12px;
- color:#FFF;
- padding:0.25em;
- text-decoration:none;
- text-transform:none;
+ background:#C63;
+ border-radius:12px; -moz-border-radius:12px; -webkit-border-radius:12px;
+ color:#FFF;
+ padding:0.25em;
+ text-decoration:none;
+ text-transform:none;
}
#intro span#call-to-action a:focus,
#intro span#call-to-action a:hover {
- background:#64ACDE;
+ background:#64ACDE;
}
article.testimonial {
- float:left;
- margin-right:10px;
- width:460px;
+ float:left;
+ margin-right:10px;
+ width:460px;
}
section#info {
- float:left;
- margin-left:10px;
- width:460px;
+ float:left;
+ margin-left:10px;
+ width:460px;
}
article.testimonial img,
section#info img {
- float:left;
- margin-right:10px;
+ float:left;
+ margin-right:10px;
}
article.testimonial h1,
section#info h1 {
- font-weight:bold;
- margin-bottom:0.25em;
+ font-weight:bold;
+ margin-bottom:0.25em;
}
article.testimonial > div,
section#info > div {
- padding:0.5em;
+ padding:0.5em;
}
footer {
Please sign in to comment.
Something went wrong with that request. Please try again.