Andry RAJONHSON
@RajonhsonAndry
@Andryjohn
Landing page
Clear proposition value
Clean design
Call-to-Action
CRM first milestone
Let’s build it from scratch
https://codedot.tk//javascript/beginner/introduction/2019/11/1
7/workshop-landing/html
Coding language
CSS libraries
Workshop outline
Theoretical intros
Basic concepts tounderstand
Live-code demos
Wecode, you don’t :)
Your turn
Take your time &havefun
Setup
1.Let’s set up
Front-end languages
Structure
Structure yourcontent
Design
Design yourcontent
Animation
Animate yourcontent
HTML
Withoutstructure, nodesign
Different contents
Tag them
Browser apply defaults
Over-ride with CSS
Skeleton
<!DOCTYPE html>
<!-- end of file -->
Skeleton
<!DOCTYPE html>
<html>
<!-- html code -->
</html>
<!-- end of file -->
Head & body
<!DOCTYPE html>
<html>
<head>
<!-- Intelligence (meta-data) -->
</head>
<body>
<!-- Stuff to display-->
</body>
</html>
<!-- end of file -->
Title & utf-8
<!DOCTYPE html>
<html>
<head>
<title>Landing</title>
<meta charset="utf-8">
</head>
<body>
<!-- Stuff to display-->
</body>
</html>
<!-- end of file -->
Head & google
<head>
<title>Codedot - Apprendre..</title>
<meta name=“description" content=“Apprendre à…”>
</head>
Core syntax
Syntax example
<a href=“http://codedot.tk” target=“_blank”>
Codedot
</a>
Codedot
Whatis thetag name?
Whatis the content?
Whatarethetwo attributes?
HTML - titles
<h1>[...]</h1>
<h2>[...]</h2>
<h3>[...]</h3>
<h4>[...]</h4>
<h5>[...]</h5>
<h6>[...]</h6>
HTML - paragraph
<p>
Lorem ipsum dolor sit amet, consectetur
adipisicing elit.Veritatis laboriosam
autem at ab omnis iure quis
</p>
HTML - emphasize
<p>
You can emphasise <em>some words</em>, and
even <strong>more if needed</strong>
</p>
HTML - list
<h2>Shopping list</h2>
<ul>
<li>Milk</li>
<li> Butter </li>
</ul>
<h2>World Cup 2014</h2>
<ol>
<li>Germany</li>
<li>Argentina</li>
</ol>
HTML - image
<img src=“logo.png” alt=“Codedot logo”>
2. Let’s add HTML content
CSS
Webwithout CSS ?
Let’sfindapage andcut its head!
Linking stylesheets
CSS syntax
CSS vocabulary
Use thegood keywords onGoogle
CSS example
Colors
h2 {
color: orange;
color: #FF530D;
color: rgb(255, 83, 13);
color: rgba(255, 83, 13, 1.0);
}
RGB tips
Text vs. Background
Background images
Font family
Font family
Font family
Font size & spacing
Font color
Font decoration
Font alignment
Font weight
3. CSS for Fonts & Colors
Div &Box model
Real-life…
Div &Box model
…ismadeofdiv
Box model - content
Box model - margins
Box model - border
Box model - border
h2 {
border: 1px solid green;
border: 2px dashed #FF530D;
}
Box model - radius
Box model - radius
Box model - shadow
4. Wrap with div
id & class
howdo youresize thelogo only?
howdo youresize thelogo only?
howdo youstylestaffpicturesonly?
howdo youstylestaffpicturesonly?
id or class?
Combine
Combine
Combine
5. Name your tags
Fontawesome
Youdon’t want .pngor .jpg files
Youwant afontof icons
6. Fontawesome
7.Let’s setup
Semantic scheme
Text classes
Button classes
List classes
Image classes
Your turn
“text-center” on yourparagraphs
“list-inline” on yoursocial list
“btn btn-primary” for yoursubscribe button
Grid system
Responsive
Mobile first
How does it work?
Container
alwaysstartwitha container
Rows
theninsertrows
Rows
theninsertrows
Rows
How do we fill rows?
Cols
theelementary block
Media
xs:Extrasmalldevices (Phones <768px)
sm:Smalldevices (Tablets >768px)
md: Mediumdevices (>992px)
lg: Largedevices (Desktops >1200px)
Example - 2 cols
Example - 2 cols
<div class=“container”>
<div class=“row”>
<div class=“col-xs-6”></div>
<div class=“col-xs-6”></div>
</div>
</div>
.col-xs-6 will apply on larger screens
What happens?
<div class=“container”>
<div class=“row”>
<div class=“col-xs-6”></div>
<div class=“col-xs-6”></div>
<div class=“col-xs-6”></div>
</div>
</div>
Return on new line
Responsive example
Responsive example
<div class=“container”>
<div class=“row”>
<div class=“col-xs-6 col-sm-3”></div>
<div class=“col-xs-6 col-sm-3”></div>
<div class=“col-xs-6 col-sm-3”></div>
<div class=“col-xs-6 col-sm-3”></div>
</div>
</div>
8. The grid
Go further
https://codedot.tk/
Thank you!

2h landing page