Skip to content

Commit 66d610e

Browse files
authored
Refactor CSS for improved design and layout
Updated styles for body, header, and various elements to enhance aesthetics and usability.
1 parent d859922 commit 66d610e

File tree

1 file changed

+88
-31
lines changed

1 file changed

+88
-31
lines changed

style.css

Lines changed: 88 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,87 +6,144 @@
66

77
body {
88
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
9-
background: #f0f0f0 url('https://img.freepik.com/free-vector/abstract-decorative-circular-stripes-seamless-pattern-design_1035-25453.jpg?semt=ais_hybrid&w=740&q=80') repeat;
9+
background: #f0f8fb; /* softer light blue background */
10+
background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.15) 35px, rgba(255,255,255,.15) 70px);
1011
background-size: 152px;
11-
padding: 42px;
12+
padding: 50px 42px;
13+
line-height: 1.6;
14+
color: #2c2c2c;
1215
}
1316

1417
header {
1518
text-align: center;
16-
margin-bottom: 32px;
19+
margin-bottom: 40px;
1720
}
1821

1922
h1 {
20-
background: #a3d8f4;
21-
color: #2c2c2c;
22-
padding: 16px;
23-
font-size: 28px;
24-
border-radius: 11px;
23+
background: linear-gradient(135deg, #a3d8f4, #7cc1e2); /* subtle gradient */
24+
color: #1e1e1e;
25+
padding: 18px 24px;
26+
font-size: 32px;
27+
border-radius: 14px;
28+
display: inline-block;
29+
box-shadow: 0 6px 12px rgba(0,0,0,0.1);
30+
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
2531
}
2632

2733
.tagline {
28-
color: #555;
34+
color: #446677;
2935
font-style: italic;
30-
margin-top: 9px;
36+
margin-top: 12px;
37+
font-size: 18px;
3138
}
3239

3340
#friends {
3441
float: left;
35-
width: 222px;
36-
margin-right: 28px;
42+
width: 240px;
43+
margin-right: 36px;
3744
}
3845

3946
#entries {
4047
float: left;
41-
width: 598px;
48+
width: 640px;
4249
}
4350

4451
.box {
45-
background: #c3e8f5;
46-
border: 3px solid #7cc1e2;
47-
border-radius: 16px;
48-
padding: 21px;
49-
margin-bottom: 24px;
52+
background: #d0edfb;
53+
border: 3px solid #5dbde0;
54+
border-radius: 18px;
55+
padding: 24px;
56+
margin-bottom: 28px;
57+
box-shadow: 0 6px 16px rgba(0,0,0,0.08);
58+
transition: transform 0.2s ease, box-shadow 0.2s ease;
59+
}
60+
61+
.box:hover {
62+
transform: translateY(-4px);
63+
box-shadow: 0 12px 24px rgba(0,0,0,0.12);
5064
}
5165

5266
#friends .box {
53-
background: #0094aa;
67+
background: linear-gradient(135deg, #0094aa, #007a8f);
5468
color: white;
5569
}
5670

5771
#friends h2 {
5872
color: white;
59-
margin-bottom: 16px;
73+
margin-bottom: 18px;
74+
font-size: 22px;
75+
border-bottom: 2px solid rgba(255,255,255,0.3);
76+
padding-bottom: 8px;
6077
}
6178

6279
#friends ul {
6380
list-style: none;
6481
}
6582

83+
#friends li {
84+
margin: 12px 0;
85+
}
86+
6687
#friends a {
67-
color: white;
88+
color: #bfffd9;
89+
text-decoration: none;
90+
font-weight: bold;
91+
transition: color 0.2s;
92+
}
93+
94+
#friends a:hover {
95+
color: #ffffff;
6896
text-decoration: underline;
6997
}
7098

7199
.entry h2 {
72-
color: #00607a;
73-
margin-bottom: 14px;
74-
font-size: 20px;
100+
color: #005070;
101+
margin-bottom: 12px;
102+
font-size: 24px;
103+
position: relative;
104+
}
105+
106+
.entry h2::after {
107+
content: '';
108+
display: block;
109+
width: 60px;
110+
height: 4px;
111+
background: #5dbde0;
112+
margin-top: 8px;
113+
border-radius: 2px;
75114
}
76115

77116
.date {
78-
background: #a3d8f4;
79-
padding: 5px 11px;
80-
border-radius: 9px;
81-
font-weight: normal;
117+
display: inline-block;
118+
background: #7cc1e2;
119+
color: white;
120+
padding: 6px 14px;
121+
border-radius: 20px;
122+
font-weight: bold;
123+
font-size: 14px;
124+
margin-bottom: 16px;
125+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
82126
}
83127

84128
.right-img {
85129
float: right;
86-
margin: 0 0 14px 21px;
87-
border: 2px solid #7cc1e2;
130+
margin: 0 0 18px 24px;
131+
border: 4px solid #7cc1e2;
132+
border-radius: 10px;
133+
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
134+
max-width: 280px;
88135
}
89136

90137
p {
91-
line-height: 1.62;
138+
line-height: 1.75;
92139
text-align: justify;
140+
margin-bottom: 18px;
141+
text-justify: inter-word;
142+
}
143+
144+
/* Simple clearfix */
145+
.clearfix::after {
146+
content: "";
147+
display: table;
148+
clear: both;
149+
}

0 commit comments

Comments
 (0)