21
21
content ="A curated collection of diverse machine learning repositories available on GitHub, presented by the RecodeHive community " />
22
22
< title > Machine Learning Repositories</ title >
23
23
<!-- <link rel="canonical" href="url-here" /> define base(root) link of deployment here -->
24
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css ">
24
25
< link rel ="stylesheet " href ="css/styles.css " />
25
26
< link rel ="icon " href ="/assets/recode-hive.png " type ="image/png "> <!-- Added favicon -->
26
27
< link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css ">
117
118
118
119
.dark-mode .paragraph {
119
120
color : # 555 ;
121
+
122
+ body {
123
+ font-family : 'Poppins' , sans-serif;
124
+ min-height : 2000px ; /* Add some height to enable scrolling */
125
+ margin : 0 ;
126
+ padding : 0 ;
127
+ }
128
+
129
+ /* Scroll to Top Button Styles */
130
+ .top-btn {
131
+ display : none;
132
+ width : 50px ;
133
+ height : 50px ;
134
+ position : fixed;
135
+ bottom : 23px ;
136
+ right : 44px ;
137
+ background-color : # ab45e7 ;
138
+ color : # ffffff ;
139
+ border : none;
140
+ border-radius : 50% ;
141
+ cursor : pointer;
142
+ font-size : 18px ;
143
+ align-items : center;
144
+ justify-content : center;
145
+ }
146
+
147
+ .top-btn : hover {
148
+ background-color : # 0056b3 ;
149
+ }
120
150
}
121
151
</ style >
122
152
</ head >
@@ -742,7 +772,24 @@ <h4 class="h46">Contact</h4>
742
772
</ div >
743
773
744
774
775
+ < button class ="top-btn " id ="goToTopBtn " onclick ="goToTop() ">
776
+ < i class ="fa-solid fa-chevron-up "> </ i >
777
+ </ button >
745
778
779
+ < script >
780
+ const goToTopBtn = document . getElementById ( "goToTopBtn" ) ;
781
+
782
+ window . onscroll = function ( ) {
783
+ if ( window . scrollY > 100 ) {
784
+ goToTopBtn . style . display = "flex" ; // Use "flex" to center the icon
785
+ } else {
786
+ goToTopBtn . style . display = "none" ;
787
+ }
788
+ } ;
789
+ function goToTop ( ) {
790
+ window . scrollTo ( { top : 0 , behavior : "smooth" } ) ;
791
+ }
792
+ </ script >
746
793
< script >
747
794
const year = new Date ( ) . getFullYear ( ) ;
748
795
document . getElementById ( "year" ) . textContent = year ;
@@ -757,4 +804,4 @@ <h4 class="h46">Contact</h4>
757
804
</ script >
758
805
</ body >
759
806
760
- </ html >
807
+ </ html >
0 commit comments