Skip to content

Commit 6765ba7

Browse files
committed
html css
1 parent 7c211e6 commit 6765ba7

File tree

4 files changed

+79
-3
lines changed

4 files changed

+79
-3
lines changed

css/main.css

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
html, body{
2+
margin: 0;
3+
padding: 0;
4+
}
5+
6+
body{
7+
display: flex;
8+
flex-direction: column;
9+
background-color: cornsilk;
10+
min-height: 775px;
11+
}
12+
13+
header{
14+
box-sizing: border-box;
15+
flex: 0 1 auto;
16+
background-color: brown;
17+
color: white;
18+
}
19+
20+
section{
21+
box-sizing: border-box;
22+
flex: 2 auto;
23+
}
24+
25+
footer{
26+
flex: .5 100%;
27+
background-color: chocolate;
28+
}
29+
30+
h1, #logo{
31+
text-align: center;
32+
}
33+
34+
h1{
35+
margin: 50px;
36+
font-size: 35px;
37+
}
38+
39+
.settings {
40+
margin: 0 auto;
41+
max-width: 900px;
42+
}
43+
44+
.settings > p {
45+
font-size: 26px;
46+
}
47+
48+
footer > ul {
49+
list-style: none;
50+
}

img/logo.png

11.6 KB
Loading

index.html

+20-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,26 @@
66
<link rel="stylesheet" href="css/main.css">
77
</head>
88
<body>
9-
<header></header>
10-
<section></section>
11-
<footer></footer>
9+
<header>
10+
<div id="logo">
11+
<img src="img/logo.png" alt="node-girls-logo">
12+
</div>
13+
</header>
14+
15+
<section>
16+
<h1 >Hello everyone. Let's do some interactive coding today! </h1>
17+
<div class="settings">
18+
<p>To open browser console do double click on the screen and console will appear on the bottom or on the right side of the screen. It will work for Chrome and Firefox. For Safari, go to 'Safari > Preferences > Advanced > and tick the box Show Develop menu in menu bar', restart Safari, now you can do double click on the page and see console.</p>
19+
</div>
20+
</section>
21+
22+
<footer>
23+
<ul>
24+
<li>Twitter: @NodeGirlsSydney</li>
25+
<li>Facebook: NodeGirlsSydney</li>
26+
<li>e-mail: [email protected]</li>
27+
</ul>
28+
</footer>
1229

1330
<script src="js/level1.js"></script>
1431
</body>

js/level2.js

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
//Level2
22

3+
/*
4+
Now, when we start level2, it is time to interact with html file. HTML files is a structure
5+
of our web-page - a skeleton. It combines all files from the project together, that is how
6+
it know what to do. If you check on our index.html file on the bottom you will see tag
7+
<script src="js/level1js"></script> - that is where we joined our first js file. But now
8+
change level1.js file on our current one - level2.js.
9+
Now you are ready to start!
10+
*/
11+
312
/* Arrays
413
It is an ordered list of values. It can keep any number of values inside. And also
514
any type of values - numbers, strings, objects.

0 commit comments

Comments
 (0)