Skip to content

Commit 153f8ee

Browse files
committed
add about page
1 parent 394a306 commit 153f8ee

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

src/frontend/components/Settings/SettingsLayout.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { WeatherSettings } from './sections/WeatherSettings';
66
import { TrackMapSettings } from './sections/TrackMapSettings';
77
import { AdvancedSettings } from './sections/AdvancedSettings';
88
import { InputSettings } from './sections/InputSettings';
9+
import { AboutSettings } from './sections/AboutSettings';
910
import { useDashboard } from '@irdashies/context';
1011
import { useState } from 'react';
1112

@@ -97,13 +98,19 @@ export const SettingsLayout = () => {
9798
</li>
9899
</ul>
99100
{/* Advanced settings pushed to bottom */}
100-
<div className="mt-auto pt-4 border-t border-slate-700">
101+
<div className="mt-auto pt-4 border-t border-slate-700 flex flex-col gap-2">
101102
<Link
102103
to="/settings/advanced"
103104
className={menuItemClass('/advanced')}
104105
>
105106
Advanced
106107
</Link>
108+
<Link
109+
to="/settings/about"
110+
className={menuItemClass('/about')}
111+
>
112+
About
113+
</Link>
107114
</div>
108115
</div>
109116

@@ -116,6 +123,7 @@ export const SettingsLayout = () => {
116123
<Route path="map" element={<TrackMapSettings />} />
117124
<Route path="input" element={<InputSettings />} />
118125
<Route path="advanced" element={<AdvancedSettings />} />
126+
<Route path="about" element={<AboutSettings />} />
119127
<Route
120128
path="*"
121129
element={
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { GithubLogo, DiscordLogo } from '@phosphor-icons/react';
2+
3+
export const AboutSettings = () => {
4+
return (
5+
<div className="flex flex-col gap-6">
6+
<div>
7+
<h2 className="text-xl font-bold mb-4">About</h2>
8+
<p className="text-slate-300">
9+
iRacing Dashies is an open-source iRacing Dashboards & Overlays application that helps you customize and enhance your racing experience.
10+
</p>
11+
</div>
12+
13+
<div className="flex flex-col gap-2">
14+
<h3 className="text-lg font-semibold">Version</h3>
15+
<p className="text-slate-300">v0.0.7</p>
16+
</div>
17+
18+
<div className="flex flex-col gap-4">
19+
<h3 className="text-lg font-semibold">Connect</h3>
20+
21+
<a
22+
href="https://github.com/tariknz/irdashies"
23+
target="_blank"
24+
rel="noopener noreferrer"
25+
className="flex items-center gap-2 text-slate-300 hover:text-white transition-colors w-fit"
26+
>
27+
<GithubLogo size={24} weight="bold" />
28+
<span>GitHub Repository</span>
29+
</a>
30+
31+
<a
32+
href="https://discord.gg/YMAqduF2Ft"
33+
target="_blank"
34+
rel="noopener noreferrer"
35+
className="flex items-center gap-2 text-slate-300 hover:text-white transition-colors w-fit"
36+
>
37+
<DiscordLogo size={24} weight="bold" />
38+
<span>Join our Discord Community</span>
39+
</a>
40+
</div>
41+
</div>
42+
);
43+
};

0 commit comments

Comments
 (0)