landing
on your Desktop. Drag & drop this folder in the Sublime Text window.index.html
with Cmd + S or Ctrl + Sstyle.css
fileimages
folderindex.html
to open it with Chromeimages
folder
index.html
<html>
<head>
<meta charset="utf-8">
<title>Xnode playground landing</title>
</head>
<body>
<h1>Xnode is so much more than a co-working space</h1>
<p>This is also a place to learn to code..</p>
<h2>Open seats</h2>
<p>A very, <strong>very</strong> open space</p>
<img src="images/open.png" alt="picture description">
<h2>Meetings</h2>
<p>A meeting place <strong>for your business</strong></p>
<img src="images/meeting.png" alt="picture description">
<h2>Offices</h2>
<p>A workspace <strong>to rent</strong> for your team</p>
<img src="images/office.png" alt="picture description">
<h2>Events</h2>
<p>A cool space <strong>to run your events</strong></p>
<img src="images/event.png" alt="picture description">
<p>This is a playground landing ©Le Wagon</p>
</body>
</html>
Link your stylesheet style.css
in the head
section of your HTML
<head>
<link href='style.css' rel='stylesheet'>
</head>
Then copy/paste the CSS code below in style.css
and fix it cause it's ugly
/* style.css */
body{
background: rgb(245,245,245);
color: green;
font-size: 15px;
font-family: Helvetica;
}
h1{
font-family: Courier;
color: red;
font-weight: lighter;
font-size: 25px;
}
h2 {
font-family: Courier;
color: pink;
font-weight: lighter;
font-size: 18px;
}
img {
width: 150px;
}
a {
color: yellow;
}
a:hover {
text-decoration: none;
color: purple;
}
div
Wrap different sections in different div
<!-- header -->
<div>
<h1>Xnode is so much more than a co-working space</h1>
<p>This is also a place to learn to code..</p>
</div>
<!-- features -->
<div>
<h2>Open seats</h2>
<p>A very, <strong>very</strong> open space</p>
<img src="images/open.png" alt="picture description">
</div>
<div>
<h2>Meetings</h2>
<p>A meeting place <strong>for your business</strong></p>
<img src="images/meeting.png" alt="picture description">
</div>
<div>
<h2>Offices</h2>
<p>A workspace <strong>to rent</strong> for your team</p>
<img src="images/office.png" alt="picture description">
</div>
<div>
<h2>Events</h2>
<p>A cool space <strong>to run your events</strong></p>
<img src="images/event.png" alt="picture description">
</div>
<!-- footer -->
<div>
<p>This is a playground landing ©Le Wagon</p>
</div>
ids
like id="header"
and id="footer"
classes
like class="card"
#header{
text-align: center;
background-image: url("https://kitt.lewagon.com/placeholder/cities/shanghai");
background-size: cover;
padding: 150px;
color: white;
text-shadow: 1px 1px 5px black;
}
.card{
padding: 50px;
font-weight: lighter;
}
#footer{
padding: 30px;
background: rgb(30, 30, 30);
color: lightgrey;
}
In your head
, it's in your head
!
<head>
<link rel="stylesheet" href="https://apps.bdimg.com/libs/fontawesome/4.1.0/css/font-awesome.min.css">
</head>
And then in the footer
<ul>
<li><a href="#"><i class="fa fa-weibo"></i></a></li>
<li><a href="#"><i class="fa fa-weixin"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-github"></i></a></li>
</ul>
With a bit of CSS style
#footer a {
color: lightgrey;
font-size: 15px;
}
#footer a:hover {
color: white;
}