Skip to content

Commit 0a2c4b8

Browse files
authored
ENH: update AMZN button for Book (#11)
* ENH: update font size, add link to Amazon Book * ENH: adjust Amazon buy link * fix merge problem
1 parent a0b8744 commit 0a2c4b8

File tree

2 files changed

+46
-13
lines changed

2 files changed

+46
-13
lines changed

website/assets/css/main.css

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ input, select, textarea {
9797
transition: none !important;
9898
}
9999

100-
body, input, select, textarea {
101-
color: #a2a2a2;
102-
font-family: "Source Sans Pro", Helvetica, sans-serif;
103-
font-size: 16pt;
104-
font-weight: 400;
105-
line-height: 1.75em;
106-
} /* LINKS */
100+
body, input, select, textarea {
101+
color: #a2a2a2;
102+
font-family: "Source Sans Pro", Helvetica, sans-serif;
103+
font-size: 16pt;
104+
font-weight: 400;
105+
line-height: 1.75em;
106+
}
107+
108+
/* LINKS */
107109
a {
108110
-moz-transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
109111
-webkit-transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
@@ -2640,12 +2642,42 @@ body, input, select, textarea {
26402642
margin: 0;
26412643
} #header .image.avatar {
26422644
margin: 0 0 1em 0;
2643-
width: 6.25em;
2644-
}
2645+
width: 6.25em;
2646+
}
26452647

2646-
/* Footer */
2648+
.amazon-link-container {
2649+
text-align: right;
2650+
padding: 0 4em;
2651+
position: absolute;
2652+
bottom: auto;
2653+
top: 26.5em;
2654+
right: 0;
2655+
left: 0;
2656+
}
26472657

2648-
#footer .icons {
2658+
.amazon-button {
2659+
display: inline-block;
2660+
background: transparent;
2661+
color: #c9c9c9 !important;
2662+
padding: 4px 10px;
2663+
border-radius: 4px;
2664+
font-weight: 400;
2665+
font-size: 1.0em;
2666+
text-decoration: none;
2667+
border: 1px solid rgba(255, 255, 255, 0.2) !important;
2668+
box-shadow: none;
2669+
transition: all 0.3s ease;
2670+
margin-top: 5px;
2671+
}
2672+
2673+
.amazon-button:hover {
2674+
background: rgba(255, 255, 255, 0.05);
2675+
transform: none;
2676+
box-shadow: none;
2677+
color: #ffffff !important;
2678+
border-color: rgba(255, 255, 255, 0.3) !important;
2679+
}
2680+
/* Footer */ #footer .icons {
26492681
margin: 1em 0 0 0;
26502682
}
26512683

website/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
<h1><b>Dynamic Programming</b></h1>
2323
<br>
2424
<a href="http://www.tomsargent.com/">Thomas J. Sargent</a> and <a href="http://johnstachurski.net/">John Stachurski</a>
25-
<br><br>
26-
<a href="https://www.amazon.com/Dynamic-Programming-Finite-Thomas-Sargent/dp/1009540750/">Amazon</a>
25+
</div>
26+
<div class="amazon-link-container">
27+
<a href="https://www.amazon.com/Dynamic-Programming-Finite-Thomas-Sargent/dp/1009540750/" class="amazon-button">📚 Buy on Amazon</a>
2728
</div>
2829
</header>
2930

0 commit comments

Comments
 (0)