2020 }
2121 .container {
2222 max-width : 800px ;
23- width : auto ;
23+ width : 100 % ;
2424 box-sizing : border-box;
25- margin : auto;
2625 padding : 20px ;
27- position : absolute ;
26+ position : relative ;
2827 }
2928 # rain-container {
30- position : relative;
31- width : 100% ;
32- height : 100% ;
29+ position : absolute;
30+ top : 0 ;
31+ left : 0 ;
32+ right : 0 ;
33+ bottom : 0 ;
34+ overflow : hidden;
3335 }
3436
3537 .book {
4749
4850 .notebook-cover {
4951 text-align : center;
50- padding : 50 px ;
52+ padding : 20 px ;
5153 background-color : # b2e2f8 ;
5254 color : # 333 ;
5355 border-radius : 10px ;
5759 }
5860 h1 {
5961 color : # 556b2f ;
60- font-size : 38px ;
62+ font-size : 1.5rem ;
63+ margin-top : 0 ;
6164 }
6265 @keyframes fadeInScale {
6366 0% {
7881 }
7982 .section-title {
8083 color : # 41339c ;
84+ margin-top : 20px ;
8185 }
8286 ul {
8387 list-style-type : none;
88+ padding : 0 ;
8489 }
8590 li {
8691 margin-bottom : 10px ;
8792 }
93+
94+ /* Responsive Breakpoints */
95+ @media (max-width : 768px ) {
96+ .notebook-cover {
97+ padding : 15px ;
98+ }
99+ h1 {
100+ font-size : 1.2rem ;
101+ }
102+ .section-title {
103+ font-size : 1rem ;
104+ }
105+ }
106+ @media (max-width : 480px ) {
107+ body {
108+ font-size : 16px ;
109+ }
110+ .notebook-cover {
111+ padding : 10px ;
112+ margin : 0 10px ;
113+ }
114+ h1 {
115+ font-size : 1rem ;
116+ }
117+ .section-title {
118+ font-size : 0.9rem ;
119+ }
120+ }
121+
88122 </ style >
89123</ head >
90124< body >
91- < div id ="rain-container " class =" absolute inset-0 overflow-hidden " > </ div >
125+ < div id ="rain-container "> </ div >
92126 < script >
93127 const rainContainer = document . getElementById ( 'rain-container' ) ;
94128
95129 function createBook ( ) {
96130 const book = document . createElement ( 'div' ) ;
97131 book . className = 'book' ;
98132 book . style . left = `${ Math . random ( ) * 100 } vw` ;
99- book . style . animationDuration = `${ Math . random ( ) * 2 + 2 } s` ;
133+ book . style . animationDuration = `${ Math . random ( ) * 3 + 3 } s` ;
100134 book . textContent = Math . random ( ) > 0.5 ? '📖' : '📒' ;
101135 rainContainer . appendChild ( book ) ;
102136
109143 </ script >
110144 < div class ="container ">
111145 < div class ="notebook-cover ">
112- <!-- <h1><a href="https://github.com/cmlpolymath/Notebooks/tree/main" style="color:#daa520; text-decoration: none;">✨ CML Polymath Notebooks ✨</a></h1> -->
113- < h1 > < span > < a href ="https://github.com/cmlpolymath/Notebooks/tree/main " style ="color:#daa520; text-decoration: none; "> ✨ CML Polymath Notebooks ✨</ a > </ span > </ h1 >
146+ < h1 > < span > < a href ="https://github.com/cmlpolymath/Notebooks/tree/main " style ="color:#daa520; text-decoration: none; "> ✨ CML Polymath Notebooks ✨</ a > </ span > </ h1 >
114147 < p > Welcome to this repository, which contains all the notebooks based on Data Science books I've read.
115148 The purpose of this repository is to show my journey through the field and, most importantly, < b > to share the knowledge.</ b >
116149 </ p >
117150
118151 < hr >
119152
120- < p class ="section-title "> Each series of notebooks is dedicated to a specific book and contains< br > the following sections:</ br > </ p >
153+ < p class ="section-title "> Each series of notebooks is dedicated to a specific book and contains the following sections:</ p >
121154
122155 < ul >
123156 < li > < strong > Book Information:</ strong > < em > Title, Author, Publication Year,</ em > and a brief summary.</ li >
@@ -126,7 +159,7 @@ <h1><span ><a href="https://github.com/cmlpolymath/Notebooks/tree/main" style="c
126159 < li > < strong > Discussion:</ strong > Comments about the material to spark conversation</ li >
127160 </ ul >
128161
129- < p > Come explore the notebooks, contribute your own insights, and join the discussion. < br > < i > Happy reading!</ i > </ br > </ p >
162+ < p > Come explore the notebooks, contribute your own insights, and join the discussion. < i > Happy reading!</ i > </ p >
130163 </ div >
131164 </ div >
132165</ body >
0 commit comments