2025-08-02 06:22:55 +02:00
|
|
|
import React from "react";
|
|
|
|
import { useNavigate } from "react-router-dom";
|
2025-08-01 17:59:08 +02:00
|
|
|
|
|
|
|
function Home() {
|
|
|
|
const navigate = useNavigate();
|
|
|
|
|
|
|
|
const handleCreateStation = () => {
|
2025-08-02 06:22:55 +02:00
|
|
|
navigate("/create-station");
|
2025-08-01 17:59:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const handleJoinStation = () => {
|
2025-08-02 06:22:55 +02:00
|
|
|
navigate("/join-station");
|
2025-08-01 17:59:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="home-container">
|
|
|
|
<div className="content">
|
|
|
|
<h1 className="title">Radio Station Hub</h1>
|
2025-08-02 06:22:55 +02:00
|
|
|
<p className="subtitle">
|
|
|
|
Create or join a radio station to share music with friends
|
|
|
|
</p>
|
|
|
|
|
2025-08-01 17:59:08 +02:00
|
|
|
<div className="button-container">
|
2025-08-02 06:22:55 +02:00
|
|
|
<button
|
|
|
|
className="action-button primary"
|
2025-08-01 17:59:08 +02:00
|
|
|
onClick={handleCreateStation}
|
|
|
|
>
|
|
|
|
Create Radio Station
|
|
|
|
</button>
|
2025-08-02 06:22:55 +02:00
|
|
|
|
|
|
|
<button
|
|
|
|
className="action-button secondary"
|
2025-08-01 17:59:08 +02:00
|
|
|
onClick={handleJoinStation}
|
|
|
|
>
|
|
|
|
Join Radio Station
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Home;
|