Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions client/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
ShieldCheck,
Sparkles,
Upload,
ExternalLink,
} from 'lucide-react'
import Launcher from '../components/Launcher'
import { RoomCard } from '../components/RoomCard'
Expand Down Expand Up @@ -463,6 +464,31 @@ export default function Home() {
})}
</section>

{/* External links */}
<footer
className="flex flex-wrap items-center justify-center gap-x-5 gap-y-2 pt-2 pb-1 text-xs text-muted"
data-testid="home-footer"
>
<a
href="https://flexarion.alwaysdata.net/"
target="_blank"
rel="noopener"
className="inline-flex items-center gap-1.5 hover:text-ink transition-colors"
>
Flexarion — game studio
<ExternalLink className="w-3 h-3" />
</a>
<a
href="https://github.com/Androtim/Beacon"
target="_blank"
rel="noopener"
className="inline-flex items-center gap-1.5 hover:text-ink transition-colors"
>
Beacon on GitHub
<ExternalLink className="w-3 h-3" />
</a>
</footer>

<CreateRoomModal open={createOpen} onClose={() => setCreateOpen(false)} />
<JoinRoomModal open={joinOpen} onClose={() => setJoinOpen(false)} />
</div>
Expand Down
14 changes: 14 additions & 0 deletions tests/e2e/external-links.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { test, expect } from '@playwright/test'

test('home footer links out to Flexarion and the GitHub repo', async ({ page }) => {
await page.goto('/')
const footer = page.getByTestId('home-footer')
await expect(footer.getByRole('link', { name: /Flexarion/ })).toHaveAttribute(
'href',
'https://flexarion.alwaysdata.net/',
)
await expect(footer.getByRole('link', { name: /GitHub/ })).toHaveAttribute(
'href',
'https://github.com/Androtim/Beacon',
)
})
Loading