-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
116 lines (95 loc) · 1.48 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/* style.css */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
padding-bottom: 60px;
}
#header {
background-color: #f0f0f0;
padding: 20px;
}
#intro {
text-align: center;
max-width: 800px;
margin: 0 auto;
}
#profile-photo {
width: 250px;
height: auto;
border-radius: 50%;
margin-bottom: 20px;
}
#title {
font-size: 36px;
color: #333;
margin-bottom: 10px;
}
.subtitle {
color: #666;
}
#top-links {
margin-bottom: 20px;
}
#main-links {
margin-top: 20px;
}
.main-links {
display: inline-block;
margin-right: 10px;
text-decoration: none;
color: #333;
padding: 5px 10px;
background-color: #ccc;
border-radius: 5px;
}
.main-links:hover {
background-color: #999;
}
#projects {
max-width: 800px;
margin: 20px auto;
display: flex;
justify-content: space-between;
}
.project {
width: calc(50% - 10px); /* 50% 宽度减去间距 */
margin-right: 20px; /* 设置项目之间的水平间距 */
}
.project h2 {
font-size: 24px;
}
.project p {
margin-top: 10px;
}
.project img {
width: 100%;
border-radius: 5px;
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: #f0f0f0;
color: #000000;
text-align: center;
padding: 10px 0;
}
#socials {
margin-top: 20px;
}
.socials {
margin-right: 10px;
}
.socials svg {
fill: #000000;
width: 20px;
height: 20px;
}
.socials:hover {
opacity: 0.7;
}
.content {
padding-bottom: 60px; /* 确保内容不被 footer 遮挡 */
}