-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_Cocina.php
113 lines (101 loc) · 2.82 KB
/
index_Cocina.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MR. PIZZA - Bienvenido</title>
<link href="https://cdn.jsdelivr.net/boxicons/2.1.4/css/boxicons.min.css" rel="stylesheet">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.sidebar {
height: 100%;
width: 250px;
position: fixed;
top: 0;
left: 0;
background-color: #333;
padding-top: 20px;
overflow-x: hidden;
transition: 0.3s;
z-index: 999;
}
.sidebar.hide {
left: -250px;
}
.sidebar .navbar {
background-color: #222;
padding: 10px 20px;
color: white;
text-align: center;
margin-bottom: 20px;
}
.sidebar .navbar h1 {
margin: 0;
font-size: 24px;
}
.sidebar a {
padding: 10px 20px;
text-decoration: none;
font-size: 20px;
color: white;
display: block;
transition: 0.3s;
}
.sidebar a:hover {
background-color: #555;
}
.content {
margin-left: 250px;
padding: 20px;
transition: margin-left 0.3s;
}
.menu-icon {
position: absolute;
right: 20px;
top: 20px;
cursor: pointer;
font-size: 24px;
color: white;
z-index: 1000;
}
</style>
</head>
<body>
<div class="sidebar" id="sidebar">
<a href="#" onclick="mostrarCocina()">
<div class="item">
<i class='bx bx-food-menu icon'></i>
<div>COCINA</div>
</div>
</a>
<a href="/FF_Pizzeria/src/pages/productos/VerDetalles.php">
<div class="item">
<i class='bx bx-pizza icon'></i>
<div>PRODUCTOS</div>
</div>
</a>
</div>
<div class="content" id="content">
<div class="menu-icon" onclick="toggleSidebar()">
<i class='bx bx-menu'></i>
</div>
<h1>Bienvenido a Freddy Fazber Pizza</h1>
</div>
<script>
function mostrarCocina() {
window.location.assign("/FF_Pizzeria/src/pages/Cocina/cocina.php");
}
function toggleSidebar() {
const sidebar = document.getElementById('sidebar');
const content = document.getElementById('content');
sidebar.classList.toggle('hide');
content.classList.toggle('hide');
}
</script>
</body>
</html>