-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact_template.html
More file actions
258 lines (220 loc) · 9.07 KB
/
contact_template.html
File metadata and controls
258 lines (220 loc) · 9.07 KB
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Site Info -->
<title>{{ name }} - Contact</title>
<meta name="description" content="{{ name }} - Get In Touch">
<meta name="author" content="{{ name }}">
<!-- Open Graph Tags -->
<meta property="og:title" content="{{ name }} - Contact">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ base_url }}/contact.html">
<meta property="og:image" content="{{ base_url }}/{{ image_path }}">
<meta property="og:image:alt" content="{{ name }} Profile Image">
<!-- Preconnect for Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- Custom Font -->
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap"
rel="stylesheet">
<!-- Stylesheet -->
<link rel="stylesheet" href="css/modern_normalize.css" />
<link rel="stylesheet" href="css/html5bp.css">
<link rel="stylesheet" href="css/main.css">
<!-- Set a theme color -->
<meta name="theme-color" content="#fafafa">
<!-- Favicon -->
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" sizes="180x180" href="/icon.png">
<link rel="manifest" href="/site.webmanifest">
<!-- Icon library -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<header class="page-header">
<div class="container">
<div class="header-top flex-responsive">
<div class="header-info">
<h1>{{ name }}</h1>
<nav>
<ul class="inline-list flex-responsive">
<li><a href="index.html">Home</a></li>
<li><a href="resume.html">Resume</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="tech-stack.html">Tech Stack</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div class="page-content">
<div class="container contact-container">
<main>
<section>
<h2 class="section-heading">Get In Touch</h2>
<p class="contact-intro">I'm always open to discussing new projects, creative ideas, or
opportunities to be part of an ambitious vision. Feel free to reach out.</p>
</section>
<section>
<h3 class="contact-subheading">Connect With Me On</h3>
<div class="contact-links">
<!-- Loop through your social links from the JSON -->
{% for link in social_links %}
<a href="{{ link.url }}" class="contact-card" target="_blank" rel="noopener noreferrer">
<div class="contact-icon">
<!-- A simple way to get a Font Awesome icon based on the label -->
<!--
{% if 'linkedin' in link.label|lower %}
<i class="fab fa-linkedin"></i>
{% elif 'github' in link.label|lower %}
<i class="fab fa-github"></i>
{% else %}
<i class="fas fa-link"></i>
{% endif %}
-->
</div>
<div class="contact-icon">
<!-- This now uses the SVG data read by the Python script -->
{% if link.svg_data %}
{{ link.svg_data | safe }}
{% else %}
<!-- A fallback icon if an SVG path is missing -->
<i class="fas fa-link"></i>
{% endif %}
</div>
<div class="contact-label">{{ link.label }}</div>
</a>
{% endfor %}
</div>
</section>
<section>
<h3 class="contact-subheading">Send Me An Email</h3>
<p class="contact-intro">The best way to reach me is by email. I'm very responsive and will get back
to you as soon as possible.</p>
<a href="mailto:{{ contact.email }}" class="email-button">{{ contact.email }}</a>
</section>
</main>
</div>
</div>
<footer class="page-footer">
<div class="container">
<p>© {{ current_year }} {{ name }}. All rights reserved.</p>
</div>
</footer>
<!-- ===== Style Switcher & JS ===== -->
<div class="theme-toggle-container">
<div id="theme-toggle-icon" class="theme-icon"><i class="fas"></i></div>
</div>
<script src="js/app.js"></script>
<!-- ===== In-house CSS for this page ===== -->
<style>
/* Remove the extra white space by preventing the body grid from stretching */
body {
grid-template-rows: auto auto auto;
}
.contact-container {
max-width: 800px;
/* Center the content in a readable column */
display: block;
/* Override the grid layout for a single column */
}
.contact-intro {
text-align: center;
font-size: 1.1rem;
margin-bottom: 2.5rem;
}
.contact-subheading {
text-align: center;
font-size: 1.2rem;
margin-bottom: 1.5rem;
font-weight: 500;
}
.contact-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-bottom: 3rem;
}
.contact-card {
background-color: var(--card-bg-color);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 1.5rem 2rem;
width: 150px;
text-align: center;
text-decoration: none;
color: var(--text-color) !important;
transition: all 0.2s ease-in-out;
}
.contact-card:hover {
transform: translateY(-5px);
border-color: var(--link-color);
}
/* .contact-icon with font-awesome (no longer used) */
/* font-size: 2.5rem; margin-bottom: 0.75rem; color: var(--link-color); */
.contact-icon {
/* Use flexbox to perfectly center the SVG inside */
display: flex;
align-items: center;
justify-content: center;
height: 48px;
/* Give the container a fixed height */
margin-bottom: 0.75rem;
}
/* This is the key: it targets and styles the SVG element itself */
.contact-icon svg {
height: 100%;
/* Make the SVG fill the container's height */
width: auto;
/* Let the width adjust automatically */
max-width: 48px;
/* Prevent wide icons from stretching too far */
fill: var(--link-color);
/* Make the icon's color match the theme */
}
.contact-label {
font-weight: 600;
}
.email-button {
display: block;
width: fit-content;
margin: 1rem auto;
padding: 12px 25px;
background-color: var(--link-color);
color: #fff !important;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.2s;
}
.email-button:hover {
background-color: var(--link-color-hover);
}
/* Mobile responsive: wrap contact cards into a grid */
@media (max-width: 48rem) {
.contact-links {
flex-wrap: wrap;
}
.contact-card {
width: calc(50% - 1rem);
/* 2 cards per row on tablets/small screens */
}
}
@media (max-width: 30rem) {
.contact-card {
width: 100%;
/* 1 card per row on very small screens */
}
}
</style>
</body>
</html>