-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
103 lines (88 loc) · 1.7 KB
/
styles.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
body, h1, h2, p, a, img {
margin: 0;
padding: 0;
text-decoration: none;
border: none;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.h23 {
margin-left: 20px;
margin-top: 10px;
}
h1 {
margin-left: 7px;
}
.aych22 {
background-color: #c4c4c4;
border-radius: 10px;
position: relative;
width: 95%;
margin: 10px;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f4;
color: #333;
line-height: 1.6;
}
header, footer {
background-color: #224B2A;
color: #fff;
text-align: center;
padding: 1rem 0;
}
header {
display: flex;
align-items: center;
padding-left: 100px; /* Offset from the left */
}
header img {
max-width: 150px; /* Logo size */
margin-right: 20px; /* Spacing between logo and title */
}
#about {
margin-top: 2rem; /* Added space above the about section */
margin-bottom: 3rem; /* Added space above the about section */
border-radius: 10px;
position: relative;
width: 95%;
margin: 10px;
}
.container {
padding: 15px; /* Space between the border and content */
flex: 1;
margin: 0 auto; /* Center the container */
max-width: 95%; /* Prevent the container from taking the full screen width */
}
#past-projects {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
}
.project {
position: relative;
width: 95%;
margin: 10px;
}
.project img {
object-fit: cover;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 10px;
}
.project a {
position: relative;
overflow: hidden; /* Hide overflowing parts of the image */
}
.project a::before {
content: "";
display: block;
padding-bottom: 100%; /* Force the link to maintain a square shape */
}