team-5/frontend/src/screens/Home.jsx

48 lines
1.1 KiB
React
Raw Normal View History

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">
2025-08-02 09:40:34 +02:00
<div className="home-content">
<div className="home-header">
<h1 className="home-title">Serena Station Hub</h1>
<p className="home-subtitle">
Create or join a radio station to share music with friends
</p>
</div>
2025-08-02 06:22:55 +02:00
2025-08-02 09:40:34 +02:00
<div className="home-actions">
2025-08-02 06:22:55 +02:00
<button
2025-08-02 09:40:34 +02:00
className="home-btn home-btn-primary"
2025-08-01 17:59:08 +02:00
onClick={handleCreateStation}
>
2025-08-02 09:40:34 +02:00
<span className="btn-icon">🎵</span>
Create Station
2025-08-01 17:59:08 +02:00
</button>
2025-08-02 06:22:55 +02:00
<button
2025-08-02 09:40:34 +02:00
className="home-btn home-btn-secondary"
2025-08-01 17:59:08 +02:00
onClick={handleJoinStation}
>
2025-08-02 09:40:34 +02:00
<span className="btn-icon">🎧</span>
Join Station
2025-08-01 17:59:08 +02:00
</button>
</div>
</div>
</div>
);
}
export default Home;