Skip to content

Commit 81e51b5

Browse files
committed
style: contact modal
1 parent d353fe0 commit 81e51b5

File tree

1 file changed

+40
-18
lines changed

1 file changed

+40
-18
lines changed

src/components/ContactModal.css

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
left: 0;
4545
right: 0;
4646
bottom: 0;
47-
background-color: rgba(0, 0, 0, 0.5);
48-
backdrop-filter: blur(5px);
47+
background-color: rgba(0, 0, 0, 0.7); /* Darker overlay */
48+
backdrop-filter: blur(10px); /* Stronger blur */
4949
display: flex;
5050
justify-content: center;
5151
align-items: center;
@@ -55,18 +55,19 @@
5555
}
5656

5757
.modal-content {
58-
background-color: #1a202c; /* Dark Blue */
59-
padding: 20px;
60-
border-radius: 8px;
58+
background-color: rgba(17, 24, 39, 0.8); /* Semi-transparent dark gray */
59+
backdrop-filter: blur(8px); /* Glassmorphism effect */
60+
padding: 24px; /* Increased padding */
61+
border-radius: 12px; /* More rounded */
6162
max-width: 500px;
6263
width: 100%;
6364
color: white;
6465
display: flex;
6566
flex-direction: column;
6667
gap: 20px;
67-
box-shadow: inset 0 0 0 4px #4a5568; /* Inner border */
68-
font-family: 'Arvo', serif;
69-
font-weight: 300;
68+
box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); /* Subtle glow shadow */
69+
border: 1px solid rgba(255, 255, 255, 0.1); /* Thin light border */
70+
/* font-family: 'Arvo', serif; removed */
7071
animation-duration: 0.3s;
7172
animation-fill-mode: forwards;
7273
}
@@ -95,43 +96,64 @@
9596

9697
.modal-header h2 {
9798
font-size: 1.5rem;
98-
font-weight: bold;
99+
/* font-weight: bold; removed */
100+
font-family: 'Space Mono', 'JetBrains Mono', monospace;
101+
color: #f87171; /* Primary color for title */
99102
}
100103

101104
.close-button {
102-
background-color: #374151;
105+
background-color: transparent;
103106
border: none;
104-
color: white;
107+
color: #9ca3af; /* gray-400 */
105108
cursor: pointer;
106-
border-radius: 4px;
107-
padding: 5px;
109+
border-radius: 9999px; /* fully rounded */
110+
padding: 8px; /* Bigger click area */
108111
display: flex;
109112
align-items: center;
110113
justify-content: center;
114+
transition: all 0.2s ease-in-out;
111115
}
112116

113117
.close-button:hover {
114-
background-color: #4b5563;
118+
background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
119+
color: white;
115120
}
116121

117122
.modal-body {
118123
display: flex;
119124
flex-direction: column;
120-
gap: 10px;
125+
gap: 15px; /* Increased gap */
121126
}
122127

123128
.contact-links {
124129
display: flex;
125130
flex-direction: column;
126-
gap: 10px;
131+
gap: 15px; /* Increased gap */
127132
}
128133

129134
.contact-link {
130135
display: flex;
131136
align-items: center;
132-
gap: 10px;
133-
color: white;
137+
gap: 15px; /* Increased gap */
138+
color: #e5e7eb; /* gray-200 */
139+
background-color: rgba(26, 32, 44, 0.5); /* Semi-transparent background */
140+
border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
141+
padding: 12px 16px; /* Larger padding */
142+
border-radius: 8px; /* Rounded corners */
134143
text-decoration: none;
144+
transition: all 0.2s ease-in-out;
145+
}
146+
147+
.contact-link:hover {
148+
background-color: rgba(26, 32, 44, 0.8); /* Darker on hover */
149+
color: white;
150+
border-color: rgba(248, 113, 113, 0.4); /* Primary color accent */
151+
transform: translateY(-2px); /* Subtle lift */
152+
}
153+
154+
.contact-link span {
155+
font-family: 'Space Mono', 'JetBrains Mono', monospace;
156+
font-size: 0.95rem; /* Slightly smaller for balance */
135157
}
136158

137159
.red-text {

0 commit comments

Comments
 (0)