File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1010</ head >
1111
1212< body >
13+
1314 < header >
1415 < h1 > < i class ="fa fa-code "> </ i > Code Browser</ h1 >
16+ < p > < a href ="https://lzx0626.me " class ="blog-link "> Visit My Blog</ a > </ p >
1517 </ header >
1618
1719 < main id ="link-container ">
@@ -24,6 +26,7 @@ <h1><i class="fa fa-code"></i> Code Browser</h1>
2426
2527 < script src ="./source/js/link-generator.js "> </ script >
2628 < script src ="./source/js/update-year.js "> </ script >
29+
2730</ body >
2831
2932</ html >
Original file line number Diff line number Diff line change @@ -15,9 +15,11 @@ header {
1515 background-color : # 007acc ;
1616 color : white;
1717 width : 100% ;
18- padding : 1.5em 0 ;
18+ padding : 1.5em 0 1em ;
19+ /* Adjusted padding to reduce bottom margin */
1920 text-align : center;
20- margin-bottom : 2em ;
21+ margin-bottom : 1.5em ;
22+ /* Reduced bottom margin */
2123 box-shadow : 0 2px 4px rgba (0 , 0 , 0 , 0.1 );
2224}
2325
@@ -26,6 +28,27 @@ header h1 {
2628 font-size : 2em ;
2729}
2830
31+ header .blog-link {
32+ display : inline-block;
33+ margin-top : 1em ;
34+ padding : 0.5em 1em ;
35+ text-decoration : none;
36+ color : # 007acc ;
37+ font-size : 1em ;
38+ border : 2px solid white;
39+ border-radius : 5px ;
40+ background-color : white;
41+ transition : background-color 0.2s , color 0.2s , border-color 0.2s ;
42+ }
43+
44+ header .blog-link : hover {
45+ background-color : # 4da6ff ;
46+ /* Lighter blue for hover */
47+ color : white;
48+ border-color : # 4da6ff ;
49+ /* Match border with background on hover */
50+ }
51+
2952main {
3053 background-color : white;
3154 border-radius : 12px ;
You can’t perform that action at this time.
0 commit comments