131 lines
3.2 KiB
HTML
131 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Pindai</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
background-color: #A1C398;
|
|
}
|
|
|
|
.canvas {
|
|
position: relative; /* Konteks posisi relatif */
|
|
width: 90%; /* Lebar konten utama */
|
|
max-width: 1200px; /* Lebar maksimum */
|
|
height: 80vh; /* Tinggi konten utama, gunakan vh untuk tinggi responsif */
|
|
background-color: #BFD8AF;
|
|
border-radius: 20px;
|
|
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-around;
|
|
padding: 20px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.menu-text {
|
|
font-size: 4vw; /* Ukuran teks berdasarkan lebar layar */
|
|
color: black;
|
|
margin-bottom: 2px;
|
|
margin-top: 5vh; /* Gunakan vh untuk jarak atas */
|
|
width: 100%; /* Lebar teks 100% */
|
|
text-align: center; /* Teks tengah */
|
|
}
|
|
|
|
.menu-buttons {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
width: 100%;
|
|
margin-top: 2vh; /* Gunakan vh untuk jarak atas */
|
|
}
|
|
|
|
.menu-button {
|
|
padding: 10px;
|
|
font-size: 3vw; /* Ukuran teks berdasarkan lebar layar */
|
|
background-color: #A1C398;
|
|
color: black;
|
|
border: none;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
margin: 10px;
|
|
flex: 0 0 calc(30% - 20px);
|
|
max-width: 300px; /* Lebar maksimum tombol */
|
|
}
|
|
|
|
.menu-button img {
|
|
width: 40%; /* Ukuran gambar berdasarkan lebar tombol */
|
|
height: auto;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.menu-item {
|
|
font-size: 20px; /* Atur ukuran teks Materi, Quizz, dan Pindai menjadi 24px */
|
|
}
|
|
|
|
.custom-btn {
|
|
text-decoration: none;
|
|
color: white;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%; /* Lebar tombol 100% */
|
|
}
|
|
|
|
.custom-btn:hover {
|
|
background-color: #D4E7C5;
|
|
}
|
|
|
|
.previous-button {
|
|
position: absolute;
|
|
top: 2vh; /* Sesuaikan jarak atas */
|
|
left: 2vw; /* Sesuaikan jarak kiri */
|
|
background-color: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
z-index: 1;
|
|
padding: 10px; /* Tambahkan padding */
|
|
}
|
|
|
|
.previous-button img {
|
|
width: 5%; /* Sesuaikan ukuran gambar dengan persentase */
|
|
height: auto;
|
|
margin-top: 40px; /* Sesuaikan margin atas */
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="canvas">
|
|
<a href="{{ url_for('dashboard') }}" class="previous-button">
|
|
<img src="{{ url_for('static', filename='assets/previous.png') }}" alt="Previous Icon">
|
|
</a>
|
|
<h1 class="menu-text">MENU UPLOAD</h1>
|
|
<div class="menu-buttons">
|
|
<a href="{{ url_for('materipindai') }}" class="btn btn-primary btn-lg custom-btn menu-button">
|
|
<img src="{{ url_for('static', filename='assets/book_3145740.png') }}" class="img-fluid mb-2" alt="Materi Icon">
|
|
<div class="menu-item">Materi Upload</div>
|
|
</a>
|
|
<a href="{{ url_for('pindai') }}" class="btn btn-primary btn-lg custom-btn menu-button">
|
|
<img src="{{ url_for('static', filename='assets/camera_883787.png') }}" class="img-fluid mb-2" alt="Quiz Icon">
|
|
<div class="menu-item">Upload</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|