Changed components folder to screens

This commit is contained in:
Noah Knapp 2025-08-01 18:28:25 +02:00
parent 3472b2ce8e
commit 662a530d89
5 changed files with 3 additions and 3 deletions

View file

@ -1,61 +0,0 @@
import React, { useState } from 'react';
function CreateStation() {
const [joinMethod, setJoinMethod] = useState('');
const [password, setPassword] = useState('');
const handleCreateStation = () => {
// Handle station creation logic here
console.log('Creating station with password:', password);
};
return (
<div className="create-station">
<header className="create-station-header">
<h1>Create a Station on Serena</h1>
</header>
<main className="create-station-content">
<div className="join-method-section">
<h2>How should people be able to join your station?</h2>
<div className="radio-option">
<label>
<input
type="radio"
name="joinMethod"
value="password"
checked={joinMethod === 'password'}
onChange={(e) => setJoinMethod(e.target.value)}
/>
Password
</label>
</div>
{joinMethod === 'password' && (
<div className="password-input-section">
<label htmlFor="station-password">Station Password:</label>
<input
type="password"
id="station-password"
value={password}
onChange={(e) => setPassword(e.target.value)}
placeholder="Enter station password"
/>
</div>
)}
</div>
<button
className="create-station-final-btn"
onClick={handleCreateStation}
disabled={joinMethod !== 'password' || !password.trim()}
>
Create Radio Station
</button>
</main>
</div>
);
}
export default CreateStation;