Skip to content

Commit 8347bd3

Browse files
committed
Added email contact
1 parent efecd07 commit 8347bd3

4 files changed

Lines changed: 32 additions & 13 deletions

File tree

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@astrojs/starlight": "^0.37.6",
14+
"@lucide/astro": "^1.16.0",
1415
"@tailwindcss/vite": "^4.2.1",
1516
"astro": "^5.6.1",
1617
"sharp": "^0.34.2",

src/components/Footer.astro

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
// Unified footer component for all pages (custom + Starlight docs)
3+
import { Mail } from '@lucide/astro';
34
import forumIcon from '../assets/links-forums.png';
45
56
const currentYear = new Date().getFullYear();
@@ -24,6 +25,11 @@ const socialLinks = [
2425
name: 'KSP Forums',
2526
url: 'https://forum.kerbalspaceprogram.com/topic/226985-ksp2-redux',
2627
icon: 'forums'
28+
},
29+
{
30+
name: 'Email',
31+
url: 'mailto:contact@ksp2redux.org',
32+
icon: 'email'
2733
}
2834
];
2935
@@ -40,6 +46,7 @@ const quickLinks = [
4046
const resourceLinks = [
4147
{ href: '/guides/installation', label: 'Installation Guide' },
4248
{ href: '/guides/troubleshooting', label: 'Troubleshooting' },
49+
{ href: 'mailto:contact@ksp2redux.org', label: 'Contact Email' },
4350
{ href: 'https://github.com/KSP2Redux/Redux/releases', label: 'Releases', external: true },
4451
{ href: 'https://github.com/KSP2Redux/Redux/issues', label: 'Report Issue', external: true },
4552
];
@@ -74,8 +81,7 @@ const icons: Record<string, string> = {
7481
{socialLinks.map(link => (
7582
<a
7683
href={link.url}
77-
target="_blank"
78-
rel="noopener noreferrer"
84+
{...link.url.startsWith('http') ? { target: '_blank', rel: 'noopener noreferrer' } : {}}
7985
class="inline-flex h-10 w-10 items-center justify-center rounded-full text-gray-400 hover:text-ksp-red transition-colors duration-200"
8086
aria-label={link.name}
8187
>
@@ -85,6 +91,8 @@ const icons: Record<string, string> = {
8591
style={`-webkit-mask-image: url('${forumIcon.src}'); mask-image: url('${forumIcon.src}');`}
8692
aria-hidden="true"
8793
></span>
94+
) : link.icon === 'email' ? (
95+
<Mail class="w-6 h-6" aria-hidden="true" />
8896
) : (
8997
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true" set:html={icons[link.icon]} />
9098
)}

src/pages/contact.astro

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,34 +203,34 @@ import forumIcon from '../assets/links-forums.png';
203203
<tbody>
204204
<tr class="border-b border-gray-700 hover:bg-gray-900/30 transition-colors">
205205
<td class="py-4 px-6 font-semibold text-white">Foonix</td>
206-
<td class="py-4 px-6 text-gray-300">Performance &amp; Improvements, Bug Fixing</td>
206+
<td class="py-4 px-6 text-gray-300">Performance, Improvements</td>
207207
</tr>
208208
<tr class="border-b border-gray-700 hover:bg-gray-900/30 transition-colors">
209-
<td class="py-4 px-6 font-semibold text-white">Munix</td>
210-
<td class="py-4 px-6 text-gray-300">Gameplay, project communication, modding support</td>
209+
<td class="py-4 px-6 font-semibold text-white">munix</td>
210+
<td class="py-4 px-6 text-gray-300">Gameplay, Features, Public Relations</td>
211211
</tr>
212212
<tr class="border-b border-gray-700 hover:bg-gray-900/30 transition-colors">
213213
<td class="py-4 px-6 font-semibold text-white">ShadowDev</td>
214-
<td class="py-4 px-6 text-gray-300">Features</td>
214+
<td class="py-4 px-6 text-gray-300">Infrastructure, Multiplayer</td>
215215
</tr>
216216
<tr class="border-b border-gray-700 hover:bg-gray-900/30 transition-colors">
217-
<td class="py-4 px-6 font-semibold text-white">Lexi</td>
217+
<td class="py-4 px-6 font-semibold text-white">Infinity</td>
218218
<td class="py-4 px-6 text-gray-300">Modding Support</td>
219219
</tr>
220220
<tr class="border-b border-gray-700 hover:bg-gray-900/30 transition-colors">
221-
<td class="py-4 px-6 font-semibold text-white">The Space Peacock</td>
222-
<td class="py-4 px-6 text-gray-300">Gameplay, Bug Hunting, Text and Localization</td>
221+
<td class="py-4 px-6 font-semibold text-white">Safarte</td>
222+
<td class="py-4 px-6 text-gray-300">Art, Gameplay, Text and Localization</td>
223223
</tr>
224224
<tr class="hover:bg-gray-900/30 transition-colors">
225-
<td class="py-4 px-6 font-semibold text-white">Safarte</td>
226-
<td class="py-4 px-6 text-gray-300">Art, Gameplay</td>
225+
<td class="py-4 px-6 font-semibold text-white">dan</td>
226+
<td class="py-4 px-6 text-gray-300">Bug Hunting, Bug Fixing</td>
227227
</tr>
228228
</tbody>
229229
</table>
230230
</div>
231231

232232
<p class="text-center text-gray-400 mt-8 text-sm">
233-
Discord is the best way to reach all of us.
233+
Discord is the best way to reach all of us. You can also email <a href="mailto:contact@ksp2redux.org" class="text-ksp-red hover:underline">contact@ksp2redux.org</a>.
234234
</p>
235235
</section>
236236

@@ -240,7 +240,7 @@ import forumIcon from '../assets/links-forums.png';
240240
Not sure where to ask?
241241
</h2>
242242
<p class="text-gray-400 mb-6 max-w-xl mx-auto">
243-
Start on Discord. If it needs to become an issue, someone can point you to the right tracker or channel.
243+
Start on Discord. If it needs direct project-lead attention, email contact@ksp2redux.org.
244244
</p>
245245
<a href="https://discord.gg/8yq8d5VGQR" target="_blank" rel="noopener noreferrer" class="btn-primary text-lg">
246246
<svg class="w-5 h-5 inline-block mr-2" fill="currentColor" viewBox="0 0 24 24">

0 commit comments

Comments
 (0)