Skip to content

Commit f222432

Browse files
Enhanced the contact form (#80)
1 parent 75a11f8 commit f222432

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

assets/contact/contact.css

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ body {
1010
line-height: 1.6;
1111
min-height: 100vh;
1212
color: var(--text-color);
13-
font-family: 'Poppins', sans-serif;
1413
background-color: var(--background-color);
1514
}
1615

@@ -52,7 +51,7 @@ main {
5251
display: flex;
5352
flex-wrap: wrap;
5453
justify-content: center;
55-
align-items: center;
54+
align-items: flex-start;
5655
padding: 50px 20px 20px 20px;
5756
min-height: calc(100vh - 120px);
5857
gap: 100px;
@@ -66,8 +65,11 @@ main {
6665

6766
.form-section {
6867
flex: 1;
68+
display: flex;
69+
flex-direction: column;
6970
max-width: 500px;
7071
padding: 20px;
72+
margin-top: 50px;
7173
text-align: center;
7274
background-color: #ffffff;
7375
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
@@ -76,12 +78,12 @@ main {
7678

7779
.form-section h1 {
7880
font-size: 2em;
79-
color: #4a90e2;
8081
margin-bottom: 10px;
8182
}
8283

8384
.form-section p {
8485
font-size: 1.1em;
86+
font-weight: 500;
8587
margin-bottom: 20px;
8688
}
8789

@@ -94,8 +96,9 @@ main {
9496
background-color: #e9eef5;
9597
border-radius: 8px;
9698
font-size: 1em;
99+
font-family: "Poppins", sans-serif;
97100
transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
98-
font-weight: 700;
101+
font-weight: 600;
99102
}
100103

101104
input[type="text"]:hover,
@@ -115,25 +118,30 @@ textarea:focus {
115118
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
116119
}
117120

118-
textarea {
121+
.form-section textarea {
119122
resize: vertical;
123+
height: 100px;
124+
min-height: 100px;
125+
max-height: 200px;
126+
overflow-y: auto;
127+
flex-grow: 1;
120128
}
121129

122130
.form-section button {
123131
width: 100%;
124132
padding: 10px;
125-
background: #4a90e2;
126133
color: #ffffff;
127134
border: none;
128135
border-radius: 8px;
129136
font-size: 1em;
130137
cursor: pointer;
131138
transition: 0.3s ease;
139+
background: var(--primary-color);
132140
}
133141

134142
.form-section button:hover {
135-
background: #3a78c2;
136143
transform: scale(1.02);
144+
background-color: #686969;
137145
}
138146

139147
.social-links {

style.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,10 +899,21 @@ footer {
899899
border-radius: 4px;
900900
box-sizing: border-box;
901901
font-size: 16px;
902+
font-family: sans-serif;
903+
transition: transform 0.3s ease;
904+
}
905+
906+
.send-message input:hover,
907+
.send-message textarea:hover {
908+
transform: scale(1.02);
902909
}
903910

904911
.send-message textarea {
905-
height: 50px;
912+
resize: vertical;
913+
height: 50px;
914+
min-height: 50px;
915+
max-height: 100px;
916+
overflow-y: auto;
906917
color: black;
907918
}
908919

@@ -917,6 +928,13 @@ footer {
917928
cursor: pointer;
918929
font-size: 16px;
919930
font-weight: bold;
931+
transition: transform 0.3s ease;
932+
}
933+
934+
.send-message button:hover {
935+
background: -webkit-linear-gradient(to right, #5568e0, #89b9e8);
936+
background: linear-gradient(to right, #5568e0, #89b9e8);
937+
transform: scale(1.02);
920938
}
921939

922940
.social {

0 commit comments

Comments
 (0)