-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
185 lines (180 loc) · 3.22 KB
/
style.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
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,body {
font-size: 100%;
font-weight: 400;
line-height: 1.4;
scroll-behavior: smooth;
}
ul{
list-style: none;
}
a {
text-decoration: none;
color: white;
}
header{
background-color: skyblue;
}
.container {
max-width: 80rem;
margin: 0 auto;
align-items: center;
padding: 0rem 2rem;
}
nav {
display: flex;
justify-content: space-between;
}
.container .logo {
font-size: 3rem;
color: white;
font-weight: 1000;
}
.options ul {
display: flex;
gap: 1.5rem;
}
.options a {
font-size: 1.3rem;
}
.options a:hover {
border-bottom: 3px solid whitesmoke;
border-radius: 3px;
}
.top_section {
background-color: #00006D;
border-bottom: 5px solid skyblue;
}
.top_section .image img{
width: 100%;
border-radius: 40%;
border: 2px groove black;
box-shadow: 0px 0px 20px #888888;
}
.top_section .container {
display: grid;
grid-template-columns: 30% 60%;
gap: 80px;
padding: 3rem;
}
.container .texts {
display: grid;
place-items: center;
align-self: center;
line-height: 1;
}
.container .texts h1 {
font-size: 3rem;
color: white;
}
.container .texts h1 .hi{
font-size: 4rem;
color: yellow;
}
.container .texts h1 .name{
font-size: 3.8rem;
}
.texts .typing {
color: #fff;
overflow: hidden; /* Ensures the content is not revealed until the animation */
border-right: .15rem solid orange; /* The typwriter cursor */
white-space: nowrap; /* Keeps the content on a single line */
margin: 0 auto; /* Gives that scrolling effect as the typing happens */
animation:
typing 3.5s steps(30, end),
blink-caret .5s step-end infinite;
}
/* The typing effect */
@keyframes typing {
from { width: 0 }
to { width: 60% }
}
/* The typewriter cursor effect */
@keyframes blink-caret {
from, to { border-color: transparent }
50% { border-color: orange }
}
.project_section {
background-color: royalblue;
}
.project_section .heading {
text-align: center;
padding: 3.5rem;
font-size: 2.5rem;
}
.project_section .heading h1 {
border-bottom: 4px solid bisque;
border-radius: 20px;
box-shadow: 0px 0px 10px burlywood;
}
.image_list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 0.5rem;
place-items: center;
}
.image_list .img1 {
/* border-radius: 1.2rem;*/
overflow: hidden;
}
.image_list .img2 img{
width: 20rem;
height: 22rem;
}
.image_list .img1 img{
display: flex;
flex-direction: column;
align-items: center;
border-radius: 1.2rem;
}
.image_list .img1 .about {
font-size: 1.2rem;
text-align: center;
position: relative;
top: -5.5rem;
margin-bottom: -4.5rem;
border-radius: 1rem;
/*border-top-left-radius: 20px;
border-top-right-radius: 20px;*/
padding: 2rem;
transform: translateY(100px);
color: black;
}
.img1:hover {
transform: scale(1.04);
transition: 0.5s ease-in-out;
}
.img1:hover img {
transform: scale(1.04);
transition: 0.3s ease-in-out;
opacity: 0.8;
}
.img1:hover .about {
background: darkgray;
transition: 0.5s ease-in-out;
transform: translateY(0px);
}
@media (max-width: 786px) {
html,body {
font-size: 50%;
}
img {
width: 80%;
}
.about {
width: 81.5%
}
}
@media (max-width: 425px) {
.top_section .container {
display: flex;
flex-direction: column;
}
.container .texts h1 {
font-size: 3rem;
}
}