Skip to content

Commit e74e4b5

Browse files
Improved the alignment of the contact page (#1464)
1 parent 583c001 commit e74e4b5

File tree

2 files changed

+46
-7
lines changed

2 files changed

+46
-7
lines changed

assets/css_files/contact.css

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ body {
5656
margin-bottom: 20px;
5757
text-align: center;
5858
transition: all 0.3s ease-in-out;
59-
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
59+
text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
60+
0 0 10px rgba(255, 175, 204, 0.8),
61+
0 0 15px rgba(255, 105, 135, 0.6),
62+
0 0 20px rgba(255, 65, 108, 0.6);
63+
filter: blur(0.1px);
6064
}
6165

6266
.info-title:hover {
@@ -104,12 +108,17 @@ body {
104108
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5), -5px -5px 15px rgba(255, 255, 255, 0.6);
105109
}
106110

111+
.info-details li a .hide {
112+
display: none;
113+
}
114+
107115
.info-details li a {
108116
color: #ffffff;
109117
font-size: 16px;
110118
text-decoration: none;
111119
transition: all .4s;
112-
word-break: break-all; /* Allow email to break */
120+
align-self: center;
121+
word-break: keep-all;
113122
}
114123

115124
.info-details li a:hover {
@@ -155,8 +164,11 @@ body {
155164
font-size: 30px;
156165
letter-spacing: 0.5px;
157166
margin-bottom: 20px;
158-
text-shadow: 1px 1px 2px #49025f, 1px 1px 2px white;
159-
color: #49025f;
167+
text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
168+
0 0 10px rgba(255, 175, 204, 0.8),
169+
0 0 15px rgba(255, 105, 135, 0.6),
170+
0 0 20px rgba(255, 65, 108, 0.6);
171+
color: #130e15;
160172
}
161173

162174
.form-fields {
@@ -183,7 +195,7 @@ body {
183195
outline: none;
184196
border-radius: 25px;
185197
box-shadow: inset 8px 8px 8px #cbced1, inset -8px -8px 8px #ffffff;
186-
border-bottom: 4px solid #49025f;
198+
border-bottom: 4px solid #130e15;
187199
}
188200

189201
.form-fields .form-group1 input::placeholder,
@@ -249,4 +261,25 @@ body {
249261
.form-wrap {
250262
padding: 30px;
251263
}
264+
}
265+
266+
@media (max-width: 433px) {
267+
268+
.info-details li span {
269+
display: none;
270+
}
271+
}
272+
273+
@media (max-width: 352px) {
274+
.info-details li a .hide {
275+
display: inline;
276+
}
277+
278+
.info-details li a .show {
279+
display: none;
280+
}
281+
282+
.info-details li span {
283+
display: none;
284+
}
252285
}

assets/html_files/contact.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,18 @@ <h3 class="info-sub-title">
102102
<li>
103103
<i class="fas fa-paper-plane"></i>
104104
<span>Email:&nbsp;</span>
105-
<a href="mailto:roshanrakesh7362@gmail.com">roshanrakesh7362@gmail.com</a>
105+
<a href="mailto:roshanrakesh7362@gmail.com" class="email">
106+
<p class="hide">Email </p>
107+
<p class="show">roshanrakesh7362@gmail.com</p>
108+
</a>
106109
</li>
107110
<li>
108111
<i class="fas fa-globe"></i>
109112
<span>Website:&nbsp;</span>
110-
<a href="https://beautiify.netlify.app/">beautiify.netlify.app</a>
113+
<a href="https://beautiify.netlify.app">
114+
<p class="hide">Website</p>
115+
<p class="show">beautiify.netlify.app</p>
116+
</a>
111117
</li>
112118
</ul>
113119
<ul class="social-icons">

0 commit comments

Comments
 (0)