Skip to content

Commit 3cbdb68

Browse files
committed
cleaning up the mess
1 parent c80e45f commit 3cbdb68

File tree

2 files changed

+44
-6
lines changed

2 files changed

+44
-6
lines changed

assets/css/style.css

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
Current colors:
1010
#f39200; /*blue*/
1111

12-
/* test */
13-
1412
/*--------------------------------------------------------------
1513
# General
1614
--------------------------------------------------------------*/
@@ -1192,3 +1190,43 @@ section {
11921190
#footer .credits {
11931191
font-size: 13px;
11941192
}
1193+
1194+
/* Default styles for buttons */
1195+
.button {
1196+
font-family: "Raleway", sans-serif;
1197+
text-transform: uppercase;
1198+
font-weight: 600;
1199+
font-size: 18px;
1200+
letter-spacing: 1px;
1201+
width: 275px; /* Fixed width for the buttons */
1202+
display: inline-block;
1203+
padding: 14px 40px;
1204+
border-radius: 0px;
1205+
transition: 0.5s;
1206+
margin-top: auto;
1207+
color: #fff;
1208+
background: #f39200;
1209+
outline: none; /* Remove the outline */
1210+
border: none;
1211+
text-align: center;
1212+
}
1213+
1214+
/* Style for the container that holds the buttons */
1215+
.button-container {
1216+
text-align: left;
1217+
}
1218+
1219+
/* Media query for screens with a maximum width of 600px (typical mobile screens) */
1220+
@media only screen and (max-width: 992px){
1221+
/* Change alignment to vertical */
1222+
.button-container {
1223+
align-items: center; /* Center horizontally */
1224+
justify-content: center; /* Center vertically */
1225+
text-align: center;
1226+
}
1227+
/* Add margin between buttons */
1228+
.button {
1229+
margin-bottom: 10px;
1230+
1231+
}
1232+
}

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
<head>
55

6-
<!-- test -->
7-
86
<!-- Global site tag (gtag.js) - Google Analytics -->
97
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-215562771-1"></script>
108
<script>
@@ -95,8 +93,10 @@ <h6>by <a href="https://sbonaretti.github.io/" target="_blank">Serena Bonaretti<
9593

9694
<br>
9795
<br>
98-
<a href="assets/book/learn_python_with_jupyter.pdf" class="btn-preorder">Get the free book</a>
99-
<a href="https://forms.gle/iPiEc4wfW84e8QrS9" target="_blank" class="btn-preorder">Leave a feedback</a>
96+
<div class="button-container">
97+
<a href="assets/book/learn_python_with_jupyter.pdf" class="button">Get the free book</a>
98+
<a href="https://forms.gle/iPiEc4wfW84e8QrS9" target="_blank" class="button">Leave a feedback</a>
99+
</div>
100100
<br>
101101
<br>
102102
<h5>Read about the book on <a href="https://medium.com/p/11214f152159" target="_blank">Project Jupyter's blog</a>! </h5>

0 commit comments

Comments
 (0)