Kodingan Style tampilan css
Kodingan Style tampilan css
body {
background-color: #f5f5f5;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
.form-container {
background-color: white;
border-radius: 8px;
padding: 20px;
width: 90%;
max-width: 380px;
h1 {
text-align: center;
color: black;
}
.form-group {
margin-bottom: 15px;
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
font-size: 14px;
input[type="email"],
input[type="password"],
input[type="text"] {
padding: 12px;
width: 93.5%;
border-radius: 5px;
font-size: 14px;
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
border-color: #007BFF;
outline: none;
button {
background-color: #007BFF;
color: white;
padding: 12px;
width: 100%;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
button:hover {
background-color: #0056b3;
p{
text-align: center;
font-size: 14px;
margin-top: 20px;
a{
color: #007BFF;
text-decoration: none;
a:hover {
text-decoration: underline;
display: none;
2.BERANDA
/* General Reset and Body Styling */
body {
background-color: #f5f5f5;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
.form-container {
background-color: white;
border-radius: 8px;
padding: 20px;
width: 90%;
max-width: 380px;
h1 {
text-align: center;
color: black;
}
.form-group {
margin-bottom: 15px;
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
font-size: 14px;
input[type="email"],
input[type="password"],
input[type="text"] {
padding: 12px;
width: 93.5%;
border-radius: 5px;
font-size: 14px;
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
border-color: #007BFF;
outline: none;
}
button {
background-color: #007BFF;
color: white;
padding: 12px;
width: 100%;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
button:hover {
background-color: #0056b3;
p{
text-align: center;
font-size: 14px;
margin-top: 20px;
a{
color: #007BFF;
text-decoration: none;
a:hover {
text-decoration: underline;
}
/* Styling for Toggle Between Forms */
#register {
display: none;
3.DETAIL PRODUK
/* General Reset and Body Styling */
body {
background-color: #f5f5f5;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
.form-container {
background-color: white;
border-radius: 8px;
padding: 20px;
width: 90%;
max-width: 380px;
h1 {
text-align: center;
color: black;
}
.form-group {
margin-bottom: 15px;
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
font-size: 14px;
input[type="email"],
input[type="password"],
input[type="text"] {
padding: 12px;
width: 93.5%;
border-radius: 5px;
font-size: 14px;
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
border-color: #007BFF;
outline: none;
}
button {
background-color: #007BFF;
color: white;
padding: 12px;
width: 100%;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
button:hover {
background-color: #0056b3;
p{
text-align: center;
font-size: 14px;
margin-top: 20px;
a{
color: #007BFF;
text-decoration: none;
a:hover {
text-decoration: underline;
}
/* Styling for Toggle Between Forms */
#register {
display: none;
4.KERANJANG
body {
margin: 0;
padding: 0;
background-color: #f3f4f6;
color: #333;
header {
background-color: #6c757d;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
header h1 {
margin: 0;
font-size: 1.5rem;
nav a {
color: white;
text-decoration: none;
font-size: 1rem;
border-radius: 5px;
nav a:hover {
background-color: #45a049;
.container {
padding: 20px;
max-width: 800px;
margin-bottom: 10px;
background-color: white;
border-radius: 12px;
.cart-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 0;
.cart-item img {
max-width: 80px;
border-radius: 8px;
.cart-item-info {
flex: 1;
margin-left: 15px;
.cart-item-info h3 {
margin: 0;
font-size: 1.2rem;
.cart-item-info p {
margin: 5px 0;
.cart-item button {
background-color: #ff4d4d;
color: white;
border: none;
cursor: pointer;
font-size: 1rem;
border-radius: 5px;
.cart-item button:hover {
background-color: #e60000;
}
.cart-summary {
display: flex;
justify-content: space-between;
padding: 20px 0;
.cart-summary p {
font-size: 1.2rem;
.checkout-button {
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
font-size: 1.1rem;
border-radius: 8px;
.checkout-button:hover {
background-color: #45a049;
.empty-cart {
text-align: center;
padding: 50px 0;
}
/* Overlay Styling */
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
z-index: 1000;
.overlay .overlay-content {
background-color: white;
padding: 20px;
border-radius: 8px;
width: 500px;
.overlay .overlay-content h2 {
margin: 0 0 15px;
.overlay .overlay-content p {
margin: 5px 0;
}
.overlay .overlay-content input,
width: 100%;
padding: 10px;
border-radius: 5px;
width: 95%;
margin-bottom: 10px;
.nama_pembeli{
margin-top: 20px;
background-color: #4CAF50;
color: white;
border: none;
padding: 10px;
width: 100%;
cursor: pointer;
font-size: 1rem;
border-radius: 5px;
background-color: #45a049;
}
.overlay .close-btn {
background-color: #ff4d4d;
color: white;
border: none;
cursor: pointer;
font-size: 1rem;
border-radius: 5px;
position: absolute;
top: 10px;
right: 10px;
#payment{
margin-bottom: 10px;
5.RIWAYAT PEMBELIAN
body {
margin: 0;
padding: 0;
background-color: #f8f9fa;
header {
background-color: #6c757d;
color: white;
justify-content: space-between;
align-items: center;
header h1 {
margin: 0;
font-size: 1.5rem;
nav {
display: flex;
gap: 15px;
nav a {
color: white;
text-decoration: none;
font-size: 1rem;
border-radius: 5px;
nav a:hover {
background-color: #5a6268;
#order-history {
width: 100%;
max-width: 900px;
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
.order {
margin-bottom: 30px;
padding: 20px;
border-radius: 8px;
background-color: #f9f9f9;
.order h3 {
font-size: 22px;
font-weight: bold;
color: #333;
margin-bottom: 10px;
.order p {
font-size: 14px;
color: #555;
margin-bottom: 8px;
.order button {
background-color: #e74c3c;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
.order button:hover {
background-color: #c0392b;
/* Daftar Produk */
.order-items {
margin-top: 15px;
.order-item {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
padding-bottom: 10px;
.order-item img {
width: 90px;
height: 90px;
object-fit: cover;
border-radius: 8px;
margin-right: 15px;
.order-item div {
flex-grow: 1;
}
.order-item p {
font-size: 14px;
color: #333;
margin-bottom: 5px;
.order-item .item-price,
.order-item .item-total {
font-weight: bold;
color: #2ecc71;
/* Garis Pemisah */
hr {
margin-top: 20px;
border: 0;
#order-history p {
font-size: 16px;
color: #777;
text-align: left;