2025-08-02 00:02:19 +02:00
|
|
|
import React, { useState } from "react";
|
|
|
|
import { createStation } from "../utils/StationsCreate";
|
2025-08-01 22:16:33 +02:00
|
|
|
|
|
|
|
// I UNDERSTAND THIS!! --Noah
|
2025-08-01 17:59:08 +02:00
|
|
|
|
|
|
|
function CreateStation() {
|
2025-08-01 22:16:33 +02:00
|
|
|
const [name, setName] = useState("");
|
|
|
|
const [description, setDescription] = useState("");
|
2025-08-01 17:59:08 +02:00
|
|
|
|
|
|
|
const handleCreateStation = () => {
|
2025-08-01 22:16:33 +02:00
|
|
|
createStation(name, description);
|
2025-08-01 17:59:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
2025-08-02 02:00:11 +02:00
|
|
|
<div className="create-station-container">
|
|
|
|
<div className="create-station-main">
|
|
|
|
{/* Left Section - Vinyl Animation */}
|
|
|
|
<div className="create-station-left-section">
|
|
|
|
<div className="create-station-vinyl-container">
|
|
|
|
<div className="create-station-vinyl-record">
|
|
|
|
<div className="vinyl-center"></div>
|
|
|
|
<div className="vinyl-grooves"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{/* Animated Music Notes */}
|
|
|
|
<div className="create-station-music-notes">
|
|
|
|
<div className="music-note note-1">♪</div>
|
|
|
|
<div className="music-note note-2">♫</div>
|
|
|
|
<div className="music-note note-3">♪</div>
|
2025-08-01 17:59:08 +02:00
|
|
|
</div>
|
2025-08-02 02:00:11 +02:00
|
|
|
</div>
|
2025-08-01 17:59:08 +02:00
|
|
|
</div>
|
|
|
|
|
2025-08-02 02:00:11 +02:00
|
|
|
{/* Right Section - Create Station Form */}
|
|
|
|
<div className="create-station-right-section">
|
|
|
|
<div className="create-station-content">
|
|
|
|
<header className="create-station-header">
|
|
|
|
<h1>Create a Station on Serena</h1>
|
|
|
|
</header>
|
|
|
|
|
2025-08-01 17:59:08 +02:00
|
|
|
<main className="create-station-content">
|
2025-08-01 22:16:33 +02:00
|
|
|
<textarea onChange={(e) => setName(e.target.value)} />
|
|
|
|
<textarea onChange={(e) => setDescription(e.target.value)} />
|
2025-08-01 17:59:08 +02:00
|
|
|
|
2025-08-02 00:02:19 +02:00
|
|
|
<button
|
2025-08-01 17:59:08 +02:00
|
|
|
className="create-station-final-btn"
|
|
|
|
onClick={handleCreateStation}
|
2025-08-01 22:16:33 +02:00
|
|
|
disabled={!name || !description}
|
2025-08-01 17:59:08 +02:00
|
|
|
>
|
|
|
|
Create Radio Station
|
|
|
|
</button>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CreateStation;
|