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
Binary file modified EmilyTrojan-emt2cy/exercises/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions EmilyTrojan-emt2cy/exercises/bootstrap/bootstrap_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require "sinatra"

get "/" do
erb :index
end
344 changes: 344 additions & 0 deletions EmilyTrojan-emt2cy/exercises/bootstrap/views/index.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,344 @@
<!DOCTYPE html>
<html lang="en">

<style>
/*!
* Start Bootstrap - Business Casual Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/

body {
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
background: url('../img/bg.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}

h1,
h2,
h3,
h4,
h5,
h6 {
text-transform: uppercase;
font-family: "Josefin Slab","Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: 700;
letter-spacing: 1px;
}

p {
font-size: 1.25em;
line-height: 1.6;
color: #000;
}

hr {
max-width: 400px;
border-color: #999999;
}

.brand,
.address-bar {
display: none;
}

.navbar-brand {
text-transform: uppercase;
font-weight: 900;
letter-spacing: 2px;
}

.navbar-nav {
text-transform: uppercase;
font-weight: 400;
letter-spacing: 3px;
}

.img-full {
min-width: 100%;
}

.brand-before,
.brand-name {
text-transform: capitalize;
}

.brand-before {
margin: 15px 0;
}

.brand-name {
margin: 0;
font-size: 4em;
}

.tagline-divider {
margin: 15px auto 3px;
max-width: 250px;
border-color: #999999;
}

.box {
margin-bottom: 20px;
padding: 30px 15px;
background: #fff;
background: rgba(255,255,255,0.9);
}

.intro-text {
text-transform: uppercase;
font-size: 1.25em;
font-weight: 400;
letter-spacing: 1px;
}

.img-border {
float: none;
margin: 0 auto 0;
border: #999999 solid 1px;
}

.img-left {
float: none;
margin: 0 auto 0;
}

footer {
background: #fff;
background: rgba(255,255,255,0.9);
}

footer p {
margin: 0;
padding: 50px 0;
}

@media screen and (min-width:768px) {
.brand {
display: inherit;
margin: 0;
padding: 30px 0 10px;
text-align: center;
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
font-family: "Josefin Slab","Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 5em;
font-weight: 700;
line-height: normal;
color: #fff;
}

.top-divider {
margin-top: 0;
}

.img-left {
float: left;
margin-right: 25px;
}

.address-bar {
display: inherit;
margin: 0;
padding: 0 0 40px;
text-align: center;
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
text-transform: uppercase;
font-size: 1.25em;
font-weight: 400;
letter-spacing: 3px;
color: #fff;
}

.navbar {
border-radius: 0;
}

.navbar-header {
display: none;
}

.navbar {
min-height: 0;
}

.navbar-default {
border: none;
background: #fff;
background: rgba(255,255,255,0.9);
}

.nav>li>a {
padding: 35px;
}

.navbar-nav>li>a {
line-height: normal;
}

.navbar-nav {
display: table;
float: none;
margin: 0 auto;
table-layout: fixed;
font-size: 1.25em;
}
}

@media screen and (min-width:1200px) {
.box:after {
content: '';
display: table;
clear: both;
}
}
</style>

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<title>About - Business Casual - Start Bootstrap Theme</title>

<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="css/business-casual.css" rel="stylesheet">

<!-- Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Josefin+Slab:100,300,400,600,700,100italic,300italic,400italic,600italic,700italic" rel="stylesheet" type="text/css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

</head>

<body>

<div class="brand">Business Casual</div>
<div class="address-bar">3481 Melrose Place | Beverly Hills, CA 90210 | 123.456.7890</div>

<!-- Navigation -->
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- navbar-brand is hidden on larger screens, but visible when the menu is collapsed -->
<a class="navbar-brand" href="index.html">Business Casual</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="about.html">About</a>
</li>
<li>
<a href="blog.html">Blog</a>
</li>
<li>
<a href="contact.html">Contact</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>

<div class="container">

<div class="row">
<div class="box">
<div class="col-lg-12">
<hr>
<h2 class="intro-text text-center">About
<strong>business casual</strong>
</h2>
<hr>
</div>
<div class="col-md-6">
<img class="img-responsive img-border-left" src="img/slide-2.jpg" alt="">
</div>
<div class="col-md-6">
<p>This is a great place to introduce your company or project and describe what you do.</p>
<p>Lid est laborum dolo rumes fugats untras. Etharums ser quidem rerum facilis dolores nemis omnis fugats vitaes nemo minima rerums unsers sadips amets.</p>
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p>
</div>
<div class="clearfix"></div>
</div>
</div>

<div class="row">
<div class="box">
<div class="col-lg-12">
<hr>
<h2 class="intro-text text-center">Our
<strong>Team</strong>
</h2>
<hr>
</div>
<div class="col-sm-4 text-center">
<img class="img-responsive" src="http://placehold.it/750x450" alt="">
<h3>John Smith
<small>Job Title</small>
</h3>
</div>
<div class="col-sm-4 text-center">
<img class="img-responsive" src="http://placehold.it/750x450" alt="">
<h3>John Smith
<small>Job Title</small>
</h3>
</div>
<div class="col-sm-4 text-center">
<img class="img-responsive" src="http://placehold.it/750x450" alt="">
<h3>John Smith
<small>Job Title</small>
</h3>
</div>
<div class="clearfix"></div>
</div>
</div>

</div>
<!-- /.container -->

<footer>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<p>Copyright &copy; Your Website 2014</p>
</div>
</div>
</div>
</footer>

<!-- jQuery -->
<script src="js/jquery.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>

</body>

</html>
10 changes: 10 additions & 0 deletions EmilyTrojan-emt2cy/exercises/d3/personal_site/test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
numbers = [4,7,8,9]
numbers.each do |hello|
puts hello
end

fruit = ['apple','grape','guava']
fruit.each_with_index do |fruit, index|
puts "Hello #{index}: #{fruit}"
end

Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css'>

<style>
body {
text-align: center;
background-color: rgba(255,218,185,1);
font-family: 'Open Sans', sans-serif;
font-family: 'Poiret One', cursive;
}
ul {
padding: 10px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css'>

<style>

body {
text-align: center;
background-color: rgba(255,218,185,1);
font-family: 'Open Sans', sans-serif;
font-family: 'Poiret One', cursive;
}

h1 {
Expand Down
Loading