-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
163 lines (141 loc) · 3.31 KB
/
style.css
File metadata and controls
163 lines (141 loc) · 3.31 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
body {
margin: 0;
padding: 0;
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
height: 100vh;
}
/* Navigation menu styles */
nav {
background-color: #333;
display: flex;
justify-content: left;
}
nav a {
color: #fff;
text-decoration: none;
padding: 12px 20px;
}
nav a:hover {
background-color: #555;
}
/* Header image styles */
header {
height: 80vh;
width: 100%;
position: relative;
overflow: hidden;
}
header img {
width:100%;
height:100%;
object-fit: cover;
}
.shadow{
position: absolute;
bottom: 50px;
left: 50%;
width: 100%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.5);
color: #fff;
opacity: 0;
text-align: center;
}
.shadow-text {
position: relative;
left: 50%;
transform: translateX(-50%);
font-size: 24px;
color: #fff;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
transition: opacity 0.3s ease-in-out;
}
header:hover .shadow {
opacity: 1;
}
/* Profile section styles */
.profile-section {
text-align: center;
padding: 30px;
}
.profile-photo {
width: 200px;
height: 200px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 10px;
}
/* Project section styles */
.project-section {
display: flex;
flex-wrap: wrap;
justify-content: center;
flex-direction: column;
align-items: center;
text-align: center;
margin: 0;
padding: 0;
}
.profile-section hr{
border: 0;
height: 2px;
width: 20%;
background: #ccc;
}
.project-section hr{
border: 0;
height: 2px;
width: 20%;
background: #ccc;
}
.centered-title {
position:absolute;
font-size: 24px;
transform: translateY(-180px);
margin-bottom: 40px;
}
.centered-T {
position:absolute;
font-size: 24px;
transform: translateY(-70px);
left: 43%;
}
.project {
width: 200px;
height: auto;
margin-bottom: 30px;
display: flex;
align-items: center;
/* text-align: center; */
}
.project p {
margin-left: 10px;
}
.project img {
width: 200px;
height: auto;
border: 1px solid #ccc;
border-radius: 5px;
}
/* Responsive image gallery styles */
.responsive-gallery {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.responsive-gallery img {
width: calc(25% - 10px); /* For 4 images in a row, minus 10px for margin between images */
margin: 5px;
}
@media screen and (max-width: 700px) {
.responsive-gallery img {
width: calc(50% - 10px); /* For 2 images in a row, minus 10px for margin between images */
}
}
@media screen and (max-width: 500px) {
.responsive-gallery img {
width: 100%; /* For single image in a row (stacked vertically) */
}
}