-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
119 lines (101 loc) · 2.02 KB
/
Copy pathindex.css
File metadata and controls
119 lines (101 loc) · 2.02 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
body {
background-color: #4a7a6e;
font-family: Arial, sans-serif;
margin: 20px;
}
/* **************************** */
/* Style for the header section */
/* **************************** */
.header {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
width: 75%;
background: rgba(74, 122, 110, 0.5);
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
color: white;
}
.header .name {
text-align: left;
font-size: 1.5em;
}
.header .navbar {
display: flex;
gap: 15px;
font-size: 1.5em;
}
.header .navbar a {
text-decoration: none;
color: white;
padding: 10px;
}
/* ************************** */
/* Style for the home section */
/* ************************** */
.home {
height: 100vh;
display: flex;
align-items: center;
padding: 0 10%;
color: white;
}
.home-content {
max-width: 600px;
}
.home-content h1 {
position: relative;
font-size: 56px;
font-weight: 700;
line-height: 1.2;
background: rgba(74, 122, 110, 0.5);
padding: 5px;
}
.home-content p {
position: relative;
font-size: 1.5em;
margin: 20px 0 40px;
background: rgba(74, 122, 110, 0.5);
padding: 5px;
}
/* ************************************* */
/* Style for the project listing section */
/* ************************************* */
.portfolio {
padding-block: 5rem 2rem;
max-width: 100%;
margin-inline: 1.5rem;
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(3, 2fr);
justify-items: center;
}
.project-card {
padding: 5px;
margin: 5px;
background-color: #e0a66a;
text-align: center;
}
.project-link {
color: #4d3a2c;
}
.project-title {
font-size: 1.5em;
}
.project-desc {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.project-img {
display: block;
width: 100%;
height: calc(27vw);
object-fit: cover;
}