File tree 2 files changed +28
-2
lines changed
2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 10
10
</ head >
11
11
12
12
< body >
13
+
13
14
< header >
14
15
< 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 >
15
17
</ header >
16
18
17
19
< main id ="link-container ">
@@ -24,6 +26,7 @@ <h1><i class="fa fa-code"></i> Code Browser</h1>
24
26
25
27
< script src ="./source/js/link-generator.js "> </ script >
26
28
< script src ="./source/js/update-year.js "> </ script >
29
+
27
30
</ body >
28
31
29
32
</ html >
Original file line number Diff line number Diff line change @@ -15,9 +15,11 @@ header {
15
15
background-color : # 007acc ;
16
16
color : white;
17
17
width : 100% ;
18
- padding : 1.5em 0 ;
18
+ padding : 1.5em 0 1em ;
19
+ /* Adjusted padding to reduce bottom margin */
19
20
text-align : center;
20
- margin-bottom : 2em ;
21
+ margin-bottom : 1.5em ;
22
+ /* Reduced bottom margin */
21
23
box-shadow : 0 2px 4px rgba (0 , 0 , 0 , 0.1 );
22
24
}
23
25
@@ -26,6 +28,27 @@ header h1 {
26
28
font-size : 2em ;
27
29
}
28
30
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
+
29
52
main {
30
53
background-color : white;
31
54
border-radius : 12px ;
You can’t perform that action at this time.
0 commit comments