Added login to RadioTower

This commit is contained in:
Noah Knapp 2025-08-02 06:22:55 +02:00
parent fb355414ab
commit 50f9d7ae4f
7 changed files with 67 additions and 47 deletions

View file

@ -1,33 +1,35 @@
import React from 'react';
import { useNavigate } from 'react-router-dom';
import React from "react";
import { useNavigate } from "react-router-dom";
function Home() {
const navigate = useNavigate();
const handleCreateStation = () => {
navigate('/create-station');
navigate("/create-station");
};
const handleJoinStation = () => {
navigate('/join-station');
navigate("/join-station");
};
return (
<div className="home-container">
<div className="content">
<h1 className="title">Radio Station Hub</h1>
<p className="subtitle">Create or join a radio station to share music with friends</p>
<p className="subtitle">
Create or join a radio station to share music with friends
</p>
<div className="button-container">
<button
className="action-button primary"
<button
className="action-button primary"
onClick={handleCreateStation}
>
Create Radio Station
</button>
<button
className="action-button secondary"
<button
className="action-button secondary"
onClick={handleJoinStation}
>
Join Radio Station