-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest-artist.html
More file actions
117 lines (105 loc) · 3.48 KB
/
request-artist.html
File metadata and controls
117 lines (105 loc) · 3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!doctype html>
<html lang="en-CA">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=500, initial-scale=1" />
<meta name="author" content="MD ARAFAT KOYES" />
<title>Request New Artist - WEB222 Music App</title>
<link rel="stylesheet" href="./css/water.css" />
<style>
.form-container {
max-width: 600px;
margin: 50px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 10px;
background-color: #f7f7f7;
}
.form-container h2 {
text-align: center;
}
.form-container label {
display: block;
margin: 10px 0 5px;
}
.form-container input,
.form-container select,
.form-container textarea {
width: 100%;
padding: 10px;
margin: 5px 0 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
.form-container input[type="submit"] {
background-color: #0076d1;
color: white;
border: none;
cursor: pointer;
}
.form-container .add-url {
display: block;
margin: 10px 0;
padding: 5px 10px;
background-color: #0076d1;
color: white;
text-align: center;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="form-container">
<h2>Request a New Artist</h2>
<form action="https://httpbin.org/post" method="post">
<label for="artist-name">Artist's Name:</label>
<input type="text" id="artist-name" name="artist-name" required />
<label for="music-genre">Music Genre:</label>
<input type="text" id="music-genre" name="music-genre" list="genres" required />
<datalist id="genres">
<option value="Pop"></option>
<option value="Rock"></option>
<option value="Jazz"></option>
<option value="Hip Hop"></option>
<option value="Classical"></option>
<option value="Country"></option>
<option value="Electronic"></option>
<option value="Reggae"></option>
<option value="Blues"></option>
<option value="Metal"></option>
</datalist>
<label for="social-media-urls">Social Media URLs:</label>
<input
type="url"
id="social-media-urls"
name="social-media-urls[]"
placeholder="https://example.com"
required
/>
<label for="song-video-urls">Song/Video URLs:</label>
<div id="song-video-container">
<input type="url" name="song-video-urls[]" placeholder="https://example.com" required />
</div>
<div class="add-url" onclick="addSongVideoUrl()">Add another URL</div>
<label for="explicit-lyrics">
<input type="checkbox" id="explicit-lyrics" name="explicit-lyrics" />
Explicit Lyrics
</label>
<label for="description">Why should this artist be added?</label>
<textarea id="description" name="description" rows="5" required></textarea>
<input type="submit" value="Submit Request" />
</form>
</div>
<script>
function addSongVideoUrl() {
const container = document.getElementById("song-video-container");
const input = document.createElement("input");
input.type = "url";
input.name = "song-video-urls[]";
input.placeholder = "https://example.com";
container.appendChild(input);
}
</script>
</body>
</html>