Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
danoscarmike committed Feb 23, 2014
1 parent 4ebaab0 commit d6414b5
Show file tree
Hide file tree
Showing 7 changed files with 629 additions and 0 deletions.
125 changes: 125 additions & 0 deletions flexbox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
h {
color: indigo;
}

.flex-container {
padding: 0;
margin: 0;
list-style: none;

display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;

-webkit-flex-flow: row wrap;
justify-content: space-around;
}

.flex-item {
background: tomato;
padding: 5px;
width: 125px;
height: 200px;
margin-top: 10px;

line-height: 75px;
color: white;
font-weight: bold;
font-size: 3em;
text-align: left;
}

#weekend {
background: crimson;
}

#today {
color: indigo;
border: 3px solid indigo;
}

#previous {
background: darkred;
}

.navigation {
list-style: none;
margin: 0;

background: deepskyblue;
border-bottom: 2px solid gold;
box-shadow: 0 3px 2px rgba(0,0,0,0.1);

display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;

-webkit-flex-flow: row wrap;
justify-content: flex-end;
}

.navigation a {
color: #333;
text-decoration: none;
display: block;
padding: 15px;
color: white;
font-weight: bold;
}

.navigation a:hover {
background: darken(deepskyblue, 2%);
}

@media all and (max-width: 800px) {
.navigation {
justify-content: space-around;
}
}

@media all and (max-width: 600px) {
.navigation {
-webkit-flex-flow: column wrap;
padding: 0;
}

.navigation a {
text-align: center;
padding: 10px;
border-top: 1px solid rgba(255,255,255,0.3);
border-bottom: 1px solid rgba(0,0,0,0.1);
}


.navigation li:last-of-type a {
border-bottom: none;
}
}

html, body { margin: 0; padding: 0 }
body { background-color:deepskyblue; }
#container { margin: 3em auto 0 3em; padding-bottom: 3em;
background-color: #fff; }
#month { border-collapse: collapse; margin-left: 2em; }
#month th, #month td { border: 1px solid #000; }
#month thead { background-color:#9c9; }
#month td { width: 7em; height: 7em; padding: .2em; vertical-align: top;
overflow: auto; }
td .day { width: 7em; height: 6em; overflow:auto; margin-top: 0; }
#month tbody .weekend { background-color:#ded; }
#month tbody .next, #month tbody .previous { background-color:#ddd; }
.rtop { display:block; background:#060; }
.rtop * { display: block; height: 1px; overflow: hidden; background:#fff; }
.r1{margin: 0 0 0 5px}
.r2{margin: 0 0 0 3px}
.r3{margin: 0 0 0 2px}
.r4{margin: 0 0 0 1px; height: 2px}
#container h1 { margin: 0 0 .5em .5em;
font: 2em Arial, Helvetica, sans-serif;
color: #060; }
#month th { font: 1em bold Arial, Helvetica, sans-serif; }
p {margin-top: 0; }
121 changes: 121 additions & 0 deletions flexbox.css~
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
.flex-container {
padding: 0;
margin: 0;
list-style: none;

display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;

-webkit-flex-flow: row wrap;
justify-content: space-around;
}

.flex-item {
background: tomato;
padding: 5px;
width: 125px;
height: 200px;
margin-top: 10px;

line-height: 75px;
color: white;
font-weight: bold;
font-size: 3em;
text-align: left;
}

#weekend {
background: crimson;
}

#today {
color: indigo;
border: 3px solid indigo;
}

#previous {
background: darkred;
}

.navigation {
list-style: none;
margin: 0;

background: deepskyblue;
border-bottom: 2px solid gold;
box-shadow: 0 3px 2px rgba(0,0,0,0.1);

display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;

-webkit-flex-flow: row wrap;
justify-content: flex-end;
}

.navigation a {
color: #333;
text-decoration: none;
display: block;
padding: 15px;
color: white;
font-weight: bold;
}

.navigation a:hover {
background: darken(deepskyblue, 2%);
}

@media all and (max-width: 800px) {
.navigation {
justify-content: space-around;
}
}

@media all and (max-width: 600px) {
.navigation {
-webkit-flex-flow: column wrap;
padding: 0;
}

.navigation a {
text-align: center;
padding: 10px;
border-top: 1px solid rgba(255,255,255,0.3);
border-bottom: 1px solid rgba(0,0,0,0.1);
}


.navigation li:last-of-type a {
border-bottom: none;
}
}

html, body { margin: 0; padding: 0 }
body { background-color:deepskyblue; }
#container { margin: 3em auto 0 3em; padding-bottom: 3em;
background-color: #fff; }
#month { border-collapse: collapse; margin-left: 2em; }
#month th, #month td { border: 1px solid #000; }
#month thead { background-color:#9c9; }
#month td { width: 7em; height: 7em; padding: .2em; vertical-align: top;
overflow: auto; }
td .day { width: 7em; height: 6em; overflow:auto; margin-top: 0; }
#month tbody .weekend { background-color:#ded; }
#month tbody .next, #month tbody .previous { background-color:#ddd; }
.rtop { display:block; background:#060; }
.rtop * { display: block; height: 1px; overflow: hidden; background:#fff; }
.r1{margin: 0 0 0 5px}
.r2{margin: 0 0 0 3px}
.r3{margin: 0 0 0 2px}
.r4{margin: 0 0 0 1px; height: 2px}
#container h1 { margin: 0 0 .5em .5em;
font: 2em Arial, Helvetica, sans-serif;
color: #060; }
#month th { font: 1em bold Arial, Helvetica, sans-serif; }
p {margin-top: 0; }
60 changes: 60 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN" >
<HTML>
<head>
<link rel="stylesheet" type="text/css" href="flexbox.css">
<title>

February 2014 </title>
</head>
<body>
<ul class="navigation">
<li><a href="#">Home</a></li>
<li><a href="#">New record</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Family</a></li>
</ul>
<h1> February 2014 </h1 >
<ul class="flex-container">
<li class="flex-item" id=previous></li>
<li class="flex-item" id=previous></li>
<li class="flex-item" id=previous></li>
<li class="flex-item" id=previous></li>
<li class="flex-item" id=previous></li>
<li class="flex-item" id="normalday">1</li>
<li class="flex-item" id="normalday">2</li>
<li class="flex-item" id="normalday">3</li>
<li class="flex-item" id="normalday">4</li>
<li class="flex-item" id="normalday">5</li>
<li class="flex-item" id="normalday">6</li>
<li class="flex-item" id="normalday">7</li>
<li class="flex-item" id="normalday">8</li>
<li class="flex-item" id="normalday">9</li>
<li class="flex-item" id="normalday">10</li>
<li class="flex-item" id="normalday">11</li>
<li class="flex-item" id="normalday">12</li>
<li class="flex-item" id="normalday">13</li>
<li class="flex-item" id="normalday">14</li>
<li class="flex-item" id="normalday">15</li>
<li class="flex-item" id="normalday">16</li>
<li class="flex-item" id="normalday">17</li>
<li class="flex-item" id="normalday">18</li>
<li class="flex-item" id="normalday">19</li>
<li class="flex-item" id="normalday">20</li>
<li class="flex-item" id="normalday">21</li>
<li class="flex-item" id="normalday">22</li>
<li class="flex-item" id="today">23</li>
<li class="flex-item" id="normalday">24</li>
<li class="flex-item" id="normalday">25</li>
<li class="flex-item" id="normalday">26</li>
<li class="flex-item" id="normalday">27</li>
<li class="flex-item" id="normalday">28</li>
<li class="flex-item" id=previous></li>
<li class="flex-item" id=previous></li>
</ul>
</tbody>
</table>
</div>
</body>
</html>
27 changes: 27 additions & 0 deletions scrapeTest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import urllib2
from bs4 import BeautifulSoup

urls = ['http://www.eppingclub.com/category/entertainment-weekly/']

for url in urls:
output = urllib2.urlopen(url)
html = output.read()
soup = BeautifulSoup(html)
link_data = soup.findAll("div", {"class": "post-image-r"})
# ext = re.findall('', str(link_data))
for div in link_data:
title = div.h2.a.string
details = div.p.string
#title = event_header.a.string
#details = event_details.string
print "Event name: %s \tEvent details: %s" % (title, details)



#soup = BeautifulSoup(urllib2.urlopen(
#'http://www.eppingclub.com/category/entertainment-weekly/').read())

#for row in soup('div', {'class': 'post-image-r'})[0]:
#event = row('h2')
#details = row('p')
#print event.string, details.string
Loading

0 comments on commit d6414b5

Please sign in to comment.