LATIHAN 04 - Amatullah Nuha
LATIHAN 04 - Amatullah Nuha
SOURCE CODE
Index.php
<?php
?>
<html>
<head>
<!--Element-elemen tag <head> tulis disini-->
<title>Sepiring Nasi</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="layout.css" />
</head>
<body>
<!--Element-elemen tag <body> tulis disini-->
<header> <!--Section HEADER-->
<div class="logo">
<h1>SEPIRING NASI</h1>
<h4>Eat Locally, Think Globally</h4>
</div>
<div class="navigasi">
<ul>
<li><a href="home.php">ABOUT</a></li>
<li><a href="product.php">FEATURED
PRODUCTS</a></li>
<li><a href="contact.php">CONTACT</a></li>
</ul>
</div>
</header>
About.php
<?php ?>
<!DOCTYPE html>
<html>
<head>
<title>Sepiring Nasi</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="layout.css" />
</head>
<body>
Product.php
<?php ?>
<!DOCTYPE html>
<html>
<head>
<title>Sepiring Nasi</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="layout.css" />
</head>
<body>
<p>Nasi Uduk</p>
<img width=300 height=260 src='images/nasi-
uduk.jpg'/>
<p>image source :
https://doy9lykf9ter0.cloudfront.net/photo/5c90c25c8e4d537b0abeb1c
8<br>
<p>Nasi Pecel</p>
<img width=300 height=260 src='images/nasi-
pecel.jpg'/>
<p>image source : http://4.bp.blogspot.com/-
opDPQ1eL97g/VUHiG9cp0RI/AAAAAAAAAcs/DcZVml_wpe0/s1600/Resep%2BNasi
%2BPecel%2BMadiun.jpg</p>
</div>
</div>
</main>
</body>
</html>
Contact.php
<?php ?>
<!DOCTYPE html>
<html>
<head>
<title >Sepiring Nasi</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="layout.css" />
</head>
<body>
</body>
</html>
Layout.css
body {
width: 100%;
margin: 0px auto;
}
main {
display: flex;
}
.padding_this{
padding: 15px;
}
.logo,
.navigasi,
.konten,
.container,
.footer {
margin-bottom: 5px;
padding: 15px 0;
}
.logo {
width: 100%;
height: 150px;
background: linear-gradient(to right, #FFAFBD, #ffc3a0);
text-align: center;
color: #d15276;
font-family: 'Roboto', monospace;
font-size: 20px;
}
.navigasi {
width: 100%;
height: auto;
background: linear-gradient(to left, #FFAFBD, #ffc3a0);
text-align: center;
font-family: 'Roboto', monospace;
color: #d15276;
}
.konten {
width: 100%;
background: linear-gradient(to right, #FFAFBD, #ffc3a0);
font-family: 'Roboto', monospace;
}
.footer {
width: 100%;
background: linear-gradient(to left, #FFAFBD, #ffc3a0);
text-align: center;
}
.navigasi ul{
padding: 0;
list-style: none;
display: inline-block;
margin: 0;
}
.navigasi li{
float: left;
margin: 0 10px;
}