Skip to content

Commit 3a25555

Browse files
committed
2 parents 0b870ee + 1954179 commit 3a25555

File tree

7 files changed

+544
-1
lines changed

7 files changed

+544
-1
lines changed

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="theme-color" content="#000000" />
88
<meta
99
name="description"
10-
content="Web site created using create-react-app"
10+
content="Never be afk"
1111
/>
1212
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
1313
<!--

src/App.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Account from './pages/Account';
55
import Terms from './pages/Terms';
66
import Privacy from './pages/Privacy';
77
import LearnMore from './pages/LearnMore';
8+
import Pricing from './pages/Pricing';
89
import {AuthProvider, useAuth} from './contexts/AuthContext';
910

1011
const AppContent: React.FC = () => {
@@ -24,6 +25,8 @@ const AppContent: React.FC = () => {
2425
setCurrentPage('privacy');
2526
} else if (hash === 'learn-more') {
2627
setCurrentPage('learn-more');
28+
} else if (hash === 'pricing') {
29+
setCurrentPage('pricing');
2730
} else if (hash === 'welcome') {
2831
setCurrentPage('welcome');
2932
} else {
@@ -97,6 +100,10 @@ const AppContent: React.FC = () => {
97100
return <LearnMore/>;
98101
}
99102

103+
if (currentPage === 'pricing') {
104+
return <Pricing/>;
105+
}
106+
100107
return <Welcome/>;
101108
};
102109

src/components/Header/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const Header: React.FC<HeaderProps> = ({isSubpage = false}) => {
2222
<h1>Salamander</h1>
2323
</div>
2424
<div className="nav-links">
25+
<button onClick={() => window.location.hash = 'pricing'} className="nav-link">Pricing</button>
2526
{user ? (
2627
<button
2728
className="profile-button"

src/pages/LearnMore/LearnMore.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ const LearnMore: React.FC = () => {
7373
account.</p>
7474
<div className="code-block">
7575
<code>npm install -g @commit451/salamander</code>
76+
</div>
77+
<p className="step-note">and then</p>
78+
<div className="code-block">
7679
<code>salamander</code>
7780
</div>
7881
<p className="step-note">Requires Node.js 18 or higher. Authentication opens a

0 commit comments

Comments
 (0)