Skip to content

Commit

Permalink
add exercise files
Browse files Browse the repository at this point in the history
  • Loading branch information
bch-fullstack committed Jan 20, 2020
1 parent 8814b8c commit 1714cc1
Show file tree
Hide file tree
Showing 5 changed files with 2,016 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
191 changes: 191 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
@import url("http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,400italic");
@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
body {
padding: 60px 0px;
background-color: rgb(220, 220, 220);
}

#event-list {
list-style: none;
font-family: 'Lato', sans-serif;
margin: 0px;
padding: 0px;
}
#event-list > li {
background-color: rgb(255, 255, 255);
box-shadow: 0px 0px 5px rgb(51, 51, 51);
box-shadow: 0px 0px 5px rgba(51, 51, 51, 0.7);
padding: 0px;
margin: 0px 0px 20px;
}
#event-list > li > time {
display: inline-block;
width: 100%;
color: rgb(255, 255, 255);
background-color: rgb(197, 44, 102);
padding: 5px;
text-align: center;
text-transform: uppercase;
}
#event-list > li:nth-child(even) > time {
background-color: rgb(165, 82, 167);
}
#event-list > li > time > span {
display: none;
}
#event-list > li > time > .day {
display: block;
font-size: 56pt;
font-weight: 100;
line-height: 1;
}
#event-list > li time > .month {
display: block;
font-size: 24pt;
font-weight: 900;
line-height: 1;
}
#event-list > li > img {
width: 100%;
}
#event-list > li > .info {
padding-top: 5px;
text-align: center;
}
#event-list > li > .info > .title {
font-size: 17pt;
font-weight: 700;
margin: 0px;
}
#event-list > li > .info > .desc {
font-size: 13pt;
font-weight: 300;
margin: 0px;
}
#event-list > li > .info > ul,
#event-list > li > .social > ul {
display: table;
list-style: none;
margin: 10px 0px 0px;
padding: 0px;
width: 100%;
text-align: center;
}
#event-list > li > .social > ul {
margin: 0px;
}
#event-list > li > .info > ul > li,
#event-list > li > .social > ul > li {
display: table-cell;
cursor: pointer;
color: rgb(30, 30, 30);
font-size: 11pt;
font-weight: 300;
padding: 3px 0px;
}
#event-list > li > .info > ul > li > a {
display: block;
width: 100%;
color: rgb(30, 30, 30);
text-decoration: none;
}
#event-list > li > .social > ul > li {
padding: 0px;
}
#event-list > li > .social > ul > li > a {
padding: 3px 0px;
}
#event-list > li > .info > ul > li:hover,
#event-list > li > .social > ul > li:hover {
color: rgb(30, 30, 30);
background-color: rgb(200, 200, 200);
}
.facebook a,
.twitter a,
.google-plus a {
display: block;
width: 100%;
color: rgb(75, 110, 168) !important;
}
.twitter a {
color: rgb(79, 213, 248) !important;
}
.google-plus a {
color: rgb(221, 75, 57) !important;
}
.facebook:hover a {
color: rgb(255, 255, 255) !important;
background-color: rgb(75, 110, 168) !important;
}
.twitter:hover a {
color: rgb(255, 255, 255) !important;
background-color: rgb(79, 213, 248) !important;
}
.google-plus:hover a {
color: rgb(255, 255, 255) !important;
background-color: rgb(221, 75, 57) !important;
}

@media (min-width: 768px) {
#event-list > li {
position: relative;
display: block;
width: 100%;
height: 120px;
padding: 0px;
}
#event-list > li > time,
#event-list > li > img {
display: inline-block;
}
#event-list > li > time,
#event-list > li > img {
width: 120px;
float: left;
}
#event-list > li > .info {
background-color: rgb(245, 245, 245);
overflow: hidden;
}
#event-list > li > time,
#event-list > li > img {
width: 120px;
height: 120px;
padding: 0px;
margin: 0px;
}
#event-list > li > .info {
position: relative;
height: 120px;
text-align: left;
padding-right: 40px;
}
#event-list > li > .info > .title,
#event-list > li > .info > .desc {
padding: 0px 10px;
}
#event-list > li > .info > ul {
position: absolute;
left: 0px;
bottom: 0px;
}
#event-list > li > .social {
position: absolute;
top: 0px;
right: 0px;
display: block;
width: 40px;
}
#event-list > li > .social > ul {
border-left: 1px solid rgb(230, 230, 230);
}
#event-list > li > .social > ul > li {
display: block;
padding: 0px;
}
#event-list > li > .social > ul > li > a {
display: block;
width: 40px;
padding: 10px 0px 9px;
}
}
56 changes: 56 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Object and Array</title>
<link rel="stylesheet" type="text/css" href="css/styles.css">

<script src="js/loadData.js"></script>

<script
src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

<!-- Latest compiled and minified JavaScript -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="[ col-xs-12 col-sm-offset-2 col-sm-8 ]">
<ul id="eventList">
<li>
<time datetime="2014-07-20">
<span class="day">4</span>
<span class="month">Jul</span>
<span class="year">2014</span>
<span class="time">ALL DAY</span>
</time>
<img alt="Independence Day" src="https://farm4.staticflickr.com/3100/2693171833_3545fb852c_q.jpg" />
<div class="info">
<h2 class="title">Independence Day</h2>
<p class="desc">Holiday</p>
</div>
<div class="social">
<ul>
<li class="facebook" style="width:33%;"><a href="#facebook"><span class="fa fa-facebook"></span></a></li>
<li class="twitter" style="width:34%;"><a href="#twitter"><span class="fa fa-twitter"></span></a></li>
<li class="google-plus" style="width:33%;"><a href="#google-plus"><span class="fa fa-google-plus"></span></a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
<script src="js/scripts.js"></script>
</body>
</html>
Loading

0 comments on commit 1714cc1

Please sign in to comment.