generated from ewuweblab/landing-page-starter-pwa-json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
145 lines (124 loc) · 3.23 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
/* Global Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(to bottom, #2d4a6c, #5884a4);
color: #fff;
text-align: center;
}
/* Main Container */
main {
max-width: 400px;
margin: 0 auto;
padding: 20px;
}
/* Profile Header */
header {
margin-bottom: 20px;
}
/* Profile Picture */
.profile-picture {
width: 100px;
height: 100px;
border-radius: 50%;
border: 3px solid #fff;
margin: 0 auto 10px;
display: block;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer; /* Indicate that the image is clickable */
}
.profile-picture:hover {
transform: scale(1.1); /* Slight zoom effect on hover */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
/* Expanded Profile Picture */
.profile-picture.expanded {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(2.5); /* Center and enlarge the image */
z-index: 1000; /* Bring it to the top layer */
border-radius: 0; /* Remove circular border */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Stronger shadow for focus */
}
/* Overlay for Expanded View */
.profile-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6); /* Dark transparent background */
z-index: 999; /* Layer below the expanded image */
display: none; /* Initially hidden */
}
.profile-overlay.active {
display: block; /* Show overlay when active */
}
.profile-name {
font-size: 1.5rem;
font-weight: bold;
margin: 10px 0;
color: #ffffff; /* Ensure text is visible on dark background */
}
/* Links Section */
.links {
margin-top: 20px;
}
.link {
display: flex;
align-items: center;
justify-content: flex-start; /* Ensure text aligns to the left of the container */
padding: 15px 20px; /* Increase padding for better visual spacing */
background: #fff;
color: #000;
border-radius: 10px;
text-decoration: none;
font-weight: bold;
margin: 10px auto;
max-width: 300px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.link img {
width: 30px;
height: 30px;
margin-right: 15px;
}
.link span {
font-size: 1rem;
text-align: left; /* Align text properly within the button */
}
.link:hover {
background: #f0f0f0;
transform: translateY(-2px);
box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15); /* Enhance hover shadow */
}
/* Social Icons Section */
.social-icons {
margin-top: 20px;
display: flex;
justify-content: center; /* Ensure icons are centered */
gap: 20px; /* Add space between icons */
}
.social-icons img {
width: 30px;
height: 30px;
transition: transform 0.3s ease;
}
.social-icons img:hover {
transform: scale(1.2);
}
/* Add shadows to buttons */
.link, .social-icons img {
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.profile-description {
margin: 0 auto; /* Centers the paragraph within the container */
max-width: 600px; /* Limits the width of the paragraph for better readability */
line-height: 1.6; /* Improves line spacing */
font-size: 16px;
font-family: "Times New Roman", Times, serif; /* Sets Times New Roman as the font */
text-align: justify; /* Ensures the paragraph is justified for a clean look */
}