Skip to content

Commit

Permalink
Revamp recommended readings
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamouization committed Dec 14, 2024
1 parent 7667fae commit 9920027
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 32 deletions.
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<link rel="stylesheet" href="{{ '/assets/css/buttons.css' | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ '/assets/css/stackoverflow.css' | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ '/assets/css/modal.css' | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ '/assets/css/recommended_readings.css' | prepend: site.baseurl }}">
<link rel="shortcut icon" type="image/png" href="{{ '/assets/favicon.ico' }}">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
Expand Down
37 changes: 23 additions & 14 deletions _includes/recommended_readings.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,29 @@ <h1>Recommended Readings</h1>
</div>
</div>

<div class="card-container">
<div class="zoom-container">
<img class="book-zoom" src="assets/img/hands-on.jpg">
Hands-On Machine Learning<br>Aurélien Géron
</div>

<div class="zoom-container">
<img class="book-zoom" src="assets/img/aima.jpg">
AI: A Modern Approach<br>Stuart Russell & Peter Norvig
</div>

<div class="zoom-container">
<img class="book-zoom" src="assets/img/clean_code.jpg">
Clean Code<br>Robert C. Martin
<div class="carousel-container">
<div class="carousel">
<div class="zoom-container">
<img class="book-zoom" src="assets/img/hands-on.jpg">
Hands-On Machine Learning<br>Aurélien Géron
</div>
<div class="zoom-container">
<img class="book-zoom" src="assets/img/aima.jpg">
AI: A Modern Approach<br>Stuart Russell & Peter Norvig
</div>
<div class="zoom-container">
<img class="book-zoom" src="assets/img/clean_code.jpg">
Clean Code<br>Robert C. Martin
</div>
<div class="zoom-container next-book">
<img class="book-zoom" src="assets/img/practical_statistics.jpeg">
Practical Statistics for Data Scientists<br>Bruce, Bruce & Gedeck
</div>
<div class="zoom-container">
<img class="book-zoom" src="assets/img/statsquest.jpeg">
The StatsQuest Illustrated Guide<br>to Machine Learning<br>Josh Starmer
</div>
</div>
<div class="scroll-indicator"></div>
</div>
<br>
18 changes: 0 additions & 18 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,6 @@ hr.dashed-line { /* used between projects */
margin-right: 15px;
}

/* Recommended book readings */
.zoom-container {
transition: transform .2s;
box-sizing: border-box;
margin: 25px 40px 25px;
text-align: center
}
.zoom-container:hover {
-ms-transform: scale(1.25); /* IE 9 */
-webkit-transform: scale(1.25); /* Safari 3-8 */
transform: scale(1.25);
}
.book-zoom {
max-height: 275px;
display: block;
margin: 0 auto;
}

/* Mathematical expressions */
.sup {
position: relative;
Expand Down
46 changes: 46 additions & 0 deletions assets/css/recommended_readings.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* Recommended readings */
.zoom-container {
transition: transform .2s;
box-sizing: border-box;
margin: 25px 40px 25px;
text-align: center
}
.zoom-container:hover {
-ms-transform: scale(1.25); /* IE 9 */
-webkit-transform: scale(1.25); /* Safari 3-8 */
transform: scale(1.25);
}
.book-zoom {
max-height: 275px;
display: block;
margin: 0 auto;
}

/* Carousel horizontal scrolling */
.carousel-container {
position: relative; /* Ensure arrows are positioned relative to this container */
overflow-x: auto; /* Enable horizontal scrolling */
white-space: nowrap; /* Prevent line breaks */
padding: 20px 0; /* Add some padding */
}

.carousel {
display: inline-flex; /* Align items in a row */
}

.zoom-container {
display: inline-block; /* Allow items to be inline */
margin-right: 20px; /* Space between items */
}

/* New styles for the scroll indicator */
.scroll-indicator {
position: absolute;
right: 0;
top: 0;
height: 100%;
width: 50px; /* Width of the indicator */
/* background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%); */
pointer-events: none; /* Allow clicks to pass through */
z-index: 1; /* Ensure it appears above other elements */
}
Binary file added assets/img/practical_statistics.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/statsquest.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9920027

Please sign in to comment.