Coding
Coding
html
<!DOCTYPE html> <img src="images/logo.png">
<html lang="en"> <div class="brand-logo-
name"></div>
<head>
</a>
<meta charset="UTF-8">
<nav class="main-nav">
<meta name="viewport"
content="width=device-width, initial- <ul>
scale=1.0">
<li><a
<meta http-equiv="X-UA-Compatible" href="join.html">Register</a></li>
content="ie=edge">
</ul>
<link href="styles.css"
</nav>
rel="stylesheet">
</header>
<link href="index.css" rel="stylesheet">
<title>SUKSIS</title>
<section class="home-main-section">
</head>
<div class="img-wrapper">
<style>
<div class="badge"></div>
body
</div>
{
background-image:
url('../cukcis/images/banner.png'); <div class="call-to-action">
background-repeat: no-repeat; <h1 class="title">Suksis UiTM
Kedah</h1>
background-attachment: fixed;
<span class="subtitle">Welcome to
background-size: cover;
Suksis Registration</span>
}
<a href="join.html"
</style> class="btn">Register Now</a>
<body class="container full-height- </div>
grow">
</section>
<header class="main-header">
</body>
<a href="index.html" class="brand-
</html>
logo">
index.css align-items: flex-start;
.home-main-section { margin: 1rem;
display: flex; align-self: center;
align-items: stretch; }
justify-content: space-between;
flex-grow: 1; @media (max-width: 900px) {
} .home-main-section .img-wrapper {
background-image:
url(images/badge.png);
.home-main-section .img-wrapper {
display: none;
flex-grow: 1;
}
flex-direction: column;
display: flex;
.home-main-section {
align-items: stretch;
justify-content: center;
justify-content: flex-end;
}
}
}
.home-main-section .badge {
background-image:
url(images/badge.png);
flex-grow: 1;
min-width: 25vw;
background-size: contain;
background-repeat: no-repeat;
background-position: right;
}
.home-main-section .call-to-action {
display: flex;
flex-direction: column;
join.html <img src="images/logo.png">
<!DOCTYPE html> <div class="brand-logo-
name"></div>
<html lang="en">
</a>
<head>
<nav class="main-nav">
<meta charset="UTF-8">
<ul>
<meta name="viewport"
content="width=device-width, initial- <li><a
scale=1.0"> href="join.html">Register</a></li>
<meta http-equiv="X-UA-Compatible" </ul>
content="ie=edge">
</nav>
<link href="styles.css"
</header>
rel="stylesheet">
<section class="join-main-section">
<link href="join.css" rel="stylesheet">
<h1 class="join-text">
<title>SUKSIS - Reg</title>
Join the
</head>
<span class="accent-
<style>
text">squad.</span>
body
</h1>
{
<form action="in.php"
background-image: method="POST" class="join-form">
url('../cukcis/images/banner.png');
<div class="input-group">
background-repeat: no-repeat;
<label
background-attachment: fixed; for="stu_name">Name:</label>
background-size: cover; <input type="text"
name="stu_name" id="stu_name"
}
required> <!----------buh php---------->
</style>
</div>
<body class="full-height-grow">
<div class="input-group">
<div class="container full-height- <!----------buh php---------->
grow">
<label>Student ID:</label>
<header class="main-header">
<input type="number"
<a href="index.html" class="brand- name="stu_id" id="stu_id" required>
logo">
</div> join.css
<div class="input-group"> .join-main-section {
<!----------buh php---------->
display: flex;
<label>Course:</label>
justify-content: space-between;
<input type="text"
align-items: center;
name="stu_course" id="stu_course
required> flex-grow: 1;
</div> }
<div class="input-group"> <br>
<br>
.join-text {
<button type="submit" class="btn"
>Register Now</button> font-size: 3.5em;
</form> margin: 0;
</section> }
</div>
.accent-text {
<div class="container"> }
<nav class="footer-nav">
<ul> .join-form {
.input-group input {
outline: none;
background: none;
border: 1px solid #2E3852;
font-size: 1em;
padding: .5em;
color: inherit;
border-radius: 5px;
}
.input-group input:focus {
border-color: #596da0;
}
<?php #customers {
include_once('connect.php'); border-collapse: collapse;
$query="select * from student"; width: 600px;
$result=mysqli_query($con,$query); line-height: 20px;
?> }
<br><br><br> while($rows=mysqli_fetch_assoc($result
))
{
<section class="list-main-section">
?>
<div class="call-to-action">
<tr>
<h1 class="title">List of
student</h1>
<td><?php echo $number; ?
Thank you for joining Suksis. ></td>
</div>
</section> <td><?php echo
$rows['stu_name']; ?></td>
<td><?php echo $rows['stu_id']; ? }
></td>
.icon {
<td><?php echo
$rows['stu_course']; ?></td> display: flex;
<?php ++$number; ?> flex-direction: column;
</tr> justify-content: space-between;
<?php align-items: center;
} margin: .5rem;
?> padding: .75rem;
</table> width: 100px;
</div> height: 100px;
</body> background-color: #202027;
</html> margin-bottom: 2rem;
}
list.css .icon img {
.list-main-section { width: 40px;
display: flex; }
align-items: center; @media (max-width: 800px) {
justify-content: space-between; .list-main-section {
flex-grow: 1; flex-direction: column;
} justify-content: center;
.list-main-section .covers-image { }
width: 30vw;
margin-left: 2rem; .list-main-section .covers-image {
height: auto; margin-top: 2rem;
max-width: 350px; height: 30vh;
} width: auto;
.icon-section { }
display: flex; }
style.css
.brand-logo-name {
@import margin-left: 1rem;
url('https://fonts.googleapis.com/css?
}
family=Poppins:400,500,700');