-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex-4.html
185 lines (155 loc) · 3.89 KB
/
index-4.html
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html>
<head>
{% comment %}
INDEX 4 TO DO: In this step you'll look at one section with a background image and some text content in the center.
I renamed the ids so they made more sense to the subject of content. Here, I'm going to style a section on Raymond Scott, you should look him up! He created some very interesting music you might recognize.
The idea is to fill this section with a background image. Check the README for more details!
{% endcomment %}
<title></title>
<style>
body {
/* Margin on each side is currently set to 0. */
margin: 0;
/* Font-family changes the font used on your website. */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: #1d1818;
}
nav, main > section {
overflow: auto;
}
main > section {
min-height: 100vh;
}
/* Style the nav bar */
#nav {
justify-content: space-between;
align-items: baseline;
padding: 1em;
background-color: #1d1818;
color: #eee;
display: flex;
}
nav h1, ul {
margin: 0
}
nav a {
text-decoration: none;
color: #eee;
}
nav ul {
display: flex;
list-style: none;
}
nav ul a {
/* give the links a little more space */
padding: 1em;
color: tomato;
}
/* a:hover means what it will look like when our mouse/arrow touches anything in the a tag. In this case,
when your mouse touches a nav link, the font color turns pink! */
nav ul a:hover {
color: pink;
}
/* TO DO: Add Styles to this section */
#raymond-scott {
/* Set the background color */
background-color: #26B63E;
/* Set the background image */
background-image: url(images/scott-1.jpg);
/* Use cover to make the image fill the space */
background-size: cover;
/* Center the content */
display: flex;
justify-content: center;
align-items: center;
/* make the font really big */
font-size: 4em;
color: #fff;
}
/* Let's push the div down and to the left */
#raymond-scott > div {
/* Set position to relative so it can be moved */
position: relative;
/* Move to the left and down */
left: -120px;
top: 120px;
}
/* Style the h2 and p */
#raymond-scott h2, #raymond-scott p {
margin: 0;
/* Adds a text shadow. It is currently set to black (#000000). Text shadows can make your text pop out more. */
text-shadow: 0 0 20px #000000;
}
#robert-moog {
background-color: #007AFF;
}
#wendy-carlos {
background-color: #5856D6;
}
#suzanne-ciani {
background-color: #FF00BE;
}
#contact {
background-color: #FF9500;
}
</style>
</head>
<body>
<main>
<nav id="nav">
<h1><a href="#">Electronic Music</a></h1>
<ul>
<li><a href="#raymond-scott">Raymond Scott</a></li>
<li><a href="#robert-moog">Robert Moog</a></li>
<li><a href="#wendy-carlos">Wendy Carlos</a></li>
<li><a href="#suzanne-ciani">Suzanne Ciani</a></li>
</ul>
</nav>
<section id="raymond-scott">
<div>
<h2>Raymond Scott</h2>
<p>Some Text...</p>
</div>
</section>
<section id="robert-moog">
<h2>Robert Moog</h2>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</section>
<section id="wendy-carlos">
<h2>Wendy Carlos</h2>
<p>Some Text...</p>
</section>
<section id="suzanne-ciani">
<div>
<h2>Suzanne Ciani</h2>
<p>Some text...</p>
</div>
<figure>
<img>
</figure>
</section>
<footer id="contact">
<form>
<label>
Name
<input type="text">
</label>
<label>
Email
<input type="email">
</label>
<label>
Message
<textarea></textarea>
</label>
<button type="submit">Send</button>
</form>
</footer>
</main>
</body>
</html>