Skip to content

Commit

Permalink
Populate the about modal
Browse files Browse the repository at this point in the history
  • Loading branch information
adamaaronson committed Jun 17, 2024
1 parent 41e6044 commit 0fb5a94
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
25 changes: 25 additions & 0 deletions src/components/AboutModal.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
export default function AboutModal() {
return (
<div>
<p>
Sidle was designed and developed by{' '}
<a href="https://aaronson.org" target="_blank" rel="noopener noreferrer">
Adam Aaronson
</a>
. It came to him in a dream. Or not quite a dream, but a hypnagogic state.
</p>

<p>
To learn more, read{' '}
<a href="https://youtu.be/1wnE4vF9CQ4" target="_blank" rel="noopener noreferrer">
the blog post!
</a>
</p>

<p className="copyright-message">
© {new Date().getFullYear()} Adam Aaronson, all rights reserved. Not affiliated with any other games
that might happen to end in the suffix "-dle".
</p>
</div>
);
}
3 changes: 2 additions & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Header from './Header';
import Modal from './Modal';
import SettingsModal from './SettingsModal';
import levels from '../data/levels.json';
import AboutModal from './AboutModal';

const COPIED_MILLISECONDS = 2 * 1000; // 2 seconds
const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
Expand Down Expand Up @@ -78,7 +79,7 @@ function App() {
/>
{aboutModal && (
<Modal title="About" onClose={() => setAboutModal(false)}>
<></>
<AboutModal />
</Modal>
)}
{settingsModal && (
Expand Down
18 changes: 16 additions & 2 deletions src/styles/Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,24 @@
font-size: 1rem;
overflow-y: auto;
max-height: 100%;
max-width: min(300px, 95vw);

p {
padding-top: 0.5rem;
padding-bottom: 1rem;
padding-top: 1.5rem;
line-height: 1.5em;
}

a {
color: $white-color;

&:hover {
opacity: 0.8;
}
}

.copyright-message {
font-size: 0.8em;
opacity: 0.8;
}
}

Expand Down

0 comments on commit 0fb5a94

Please sign in to comment.