Skip to content

Commit 85d4cd5

Browse files
committed
Merge pull request #1 from PythonMilano/motto
Motto random, meetup button and alignment
2 parents 8dca96c + 7a69e7e commit 85d4cd5

File tree

4 files changed

+65
-40
lines changed

4 files changed

+65
-40
lines changed

assets/css/bootstrap-theme.css

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -238,28 +238,3 @@
238238
border-radius: 3px;
239239
}
240240

241-
/* calendar */
242-
243-
#calendar {
244-
position: absolute;
245-
top: 25%;
246-
left:25%;
247-
font-weight: bold;
248-
border: 2px solid black;
249-
}
250-
251-
#month {
252-
position: relative;
253-
left: 0;
254-
top: 0;
255-
margin: 0;
256-
padding: 10px 15px;
257-
color: #fff;
258-
background-color: #BC0000;
259-
border-bottom: 2px solid black;
260-
font-size: 15px;
261-
}
262-
263-
#day {
264-
font-size: 44px;
265-
}

assets/css/pymi.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/* Meetup calendario evento */
2+
3+
#next-meetup {
4+
position:relative;
5+
width: 570px;
6+
}
7+
8+
#calendar {
9+
float:left;
10+
margin: 35px 15px 15px 15px;
11+
font-weight: bold;
12+
border: 2px solid black;
13+
}
14+
15+
#month {
16+
position: relative;
17+
left: 0;
18+
top: 0;
19+
margin: 0;
20+
padding: 10px 15px;
21+
color: #fff;
22+
background-color: #BC0000;
23+
border-bottom: 2px solid black;
24+
font-size: 15px;
25+
}
26+
27+
#day {
28+
font-size: 44px;
29+
}
30+

assets/js/motto.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
$(document).ready(function(){
2+
var motti = [
3+
"La pyBissa de Milan",
4+
"Il serpent[1] di Milano",
5+
"Python Milano's Flying Cathedral",
6+
"Il secondo serpente di Milano, dopo il biscione",
7+
];
8+
9+
var motto = motti[Math.floor(Math.random() * motti.length)];
10+
11+
$('#motto').text('"""' + motto + '"""');
12+
13+
});

index.html

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<!-- Custom styles for our template -->
1818
<link rel="stylesheet" href="assets/css/bootstrap-theme.css" media="screen">
1919
<link rel="stylesheet" href="assets/css/main.css">
20+
<link rel="stylesheet" href="assets/css/pymi.css">
2021

2122
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2223
<!--[if lt IE 9]>
@@ -30,10 +31,10 @@
3031
<div class="navbar navbar-inverse navbar-fixed-top headroom">
3132
<div class="container">
3233
<div class="navbar-header">
33-
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"><span
34-
class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span></button>
35-
<a class="navbar-brand" href="index.html"><img src="assets/images/logo.png" alt="Progressus HTML5 template">
36-
Python Milano</a>
34+
<a class="navbar-brand" href="index.html">
35+
<img src="assets/images/logo.png" alt="Python Milano" />
36+
Python Milano
37+
</a>
3738
</div>
3839
</div>
3940
</div>
@@ -43,21 +44,23 @@
4344
<div class="row">
4445
<h1 class="lead">Sviluppatori e Appassionati di Python a Milano</h1>
4546

46-
<p class="tagline"><i>"""La pyBissa de Milan"""</i></p>
47+
<p class="tagline"><i id="motto">"""La pyBissa de Milan"""</i></p>
4748
</div>
4849
</div>
4950
</header>
5051

51-
<div class="container text-center" style="position:relative">
52+
<div class="container text-center" id="next-meetup">
5253
<div id="calendar">
5354
<div id="month">OTTOBRE</div>
5455
<div id="day">22</div>
5556
</div>
56-
<h2 class="thin">Prossimo Meetup</h2>
57-
<p class="text-muted">
58-
<strong>Genropy - Tool di Migrazione e package editor.</strong> <br><br>
59-
<a href="http://www.meetup.com/it/Python-Milano/events/225798285/" class="btn-social btn-outline">Partecipa!</a>
60-
</p>
57+
<div id="meetup">
58+
<h2 class="thin">Prossimo Meetup</h2>
59+
<p class="text-muted">
60+
<strong>Genropy - Tool di Migrazione e package editor.</strong> <br><br>
61+
<a href="http://www.meetup.com/it/Python-Milano/events/225798285/" class="btn btn-action btn-lg">Partecipa!</a>
62+
</p>
63+
</div>
6164
</div>
6265

6366
<div class="jumbotron top-space">
@@ -69,7 +72,8 @@ <h2 class="text-center thin">Unisciti al gruppo</h2>
6972

7073
<div class="col-md-3 col-sm-6 highlight">
7174
<div class="h-caption">
72-
<h4><i class="fa fa-group fa-5"></i>
75+
<h4>
76+
<i class="fa fa-group fa-5"></i>
7377
<a href="http://www.meetup.com/it/Python-Milano/" class="btn-social btn-outline">Meetup</a>
7478
</h4>
7579
</div>
@@ -82,7 +86,8 @@ <h4><i class="fa fa-group fa-5"></i>
8286

8387
<div class="col-md-3 col-sm-6 highlight">
8488
<div class="h-caption">
85-
<h4><i class="fa fa-trello fa-5"></i>
89+
<h4>
90+
<i class="fa fa-trello fa-5"></i>
8691
<a href="https://trello.com/b/0BEDDL3K/argomenti-incontri"
8792
class="btn-social btn-outline">Trello</a>
8893
</h4>
@@ -126,7 +131,8 @@ <h4>
126131
<div class="row">
127132
<div class="col-md-3 col-sm-6 highlight">
128133
<div class="h-caption">
129-
<h4><i class="fa fa-github fa-5"></i>
134+
<h4>
135+
<i class="fa fa-github fa-5"></i>
130136
<a href="https://github.com/PythonMilano" class="btn-social btn-outline">GitHub</a>
131137
</h4>
132138
</div>
@@ -162,6 +168,7 @@ <h4><i class="fa fa-github fa-5"></i>
162168
<script src="assets/js/headroom.min.js"></script>
163169
<script src="assets/js/jQuery.headroom.min.js"></script>
164170
<script src="assets/js/template.js"></script>
171+
<script src="assets/js/motto.js"></script>
165172

166173
</body>
167-
</html>
174+
</html>

0 commit comments

Comments
 (0)