Skip to content

Commit bf35b03

Browse files
committed
beautify main layout
1 parent 621b789 commit bf35b03

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/css/styles.css

+11-11
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ header {
1616
color: white;
1717
width: 100%;
1818
padding: 1.5em 0 1em;
19-
/* Adjusted padding to reduce bottom margin */
2019
text-align: center;
2120
margin-bottom: 1.5em;
22-
/* Reduced bottom margin */
2321
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
2422
}
2523

@@ -35,13 +33,9 @@ header .header-link {
3533
text-decoration: none;
3634
color: #007acc;
3735
font-size: 1.1em;
38-
/* Slightly increased font size */
3936
font-weight: bold;
40-
/* Bold text */
4137
line-height: 1.4;
42-
/* Adjusted line height for better readability */
4338
letter-spacing: 0.05em;
44-
/* Added letter spacing */
4539
border: 2px solid white;
4640
border-radius: 5px;
4741
background-color: white;
@@ -50,10 +44,8 @@ header .header-link {
5044

5145
header .header-link:hover {
5246
background-color: #4da6ff;
53-
/* Lighter blue for hover */
5447
color: white;
5548
border-color: #4da6ff;
56-
/* Match border with background on hover */
5749
}
5850

5951
main {
@@ -71,17 +63,25 @@ main:hover {
7163
transform: translateY(-5px);
7264
}
7365

66+
.link-container {
67+
display: flex;
68+
flex-wrap: wrap;
69+
justify-content: center;
70+
gap: 1em;
71+
}
72+
7473
a {
75-
display: block;
76-
width: fit-content;
77-
margin: 1em auto;
74+
display: inline-block;
75+
margin: 1em;
7876
padding: 0.5em 1em;
7977
text-decoration: none;
8078
color: #007acc;
8179
font-size: 1.2em;
8280
transition: color 0.2s, transform 0.2s, box-shadow 0.2s;
8381
border: 2px solid #007acc;
8482
border-radius: 5px;
83+
min-width: 200px;
84+
text-align: center;
8585
}
8686

8787
a:hover {

0 commit comments

Comments
 (0)