diff --git a/src/config.js b/src/config.js index 7400556..1b7cea2 100644 --- a/src/config.js +++ b/src/config.js @@ -4,7 +4,7 @@ const config = { port: 3306, user: 'admin', pswd: 'Dx.1706%', - db_a: 'facturacion', + db_a: 'TELCOTRONICS', debg: false, sock: '/' }, diff --git a/src/controladores/controlador_General.js b/src/controladores/controlador_General.js index aa34b03..3c04e56 100644 --- a/src/controladores/controlador_General.js +++ b/src/controladores/controlador_General.js @@ -60,6 +60,9 @@ function stringTo_md5(data_string) { controlador.login_test = (req, res) => { res.render('login_test'); }; +controlador.dash = (req, res) => { + res.render('admin_dash'); +}; //********* FORM APP-PEDIDOS-SIGMA ********// controlador.app_sigma = (req, res) => { res.render('app_pedidos'); diff --git a/src/public/css/restaurant.css b/src/public/css/restaurant.css new file mode 100644 index 0000000..5dcea23 --- /dev/null +++ b/src/public/css/restaurant.css @@ -0,0 +1,412 @@ +@import url('https://fonts.googleapis.com/css?family=Poppins:wght@300;400;500;600;700;800;900&display=swap'); +@font-face { + font-family: sigma_font; + src: url(../tipografias/sigma_font.ttf) format('truetype'), url(../tipografias/sigma_font.otf) format('truetype'); + font-style: normal; +} +*{ + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Poppins', sans-serif; + color: #fff; +} +body { + overflow-x: hidden; +} +.container{ + position: relative; + width: 100%; +} +/********* NAVIGATION BAR *********/ +.navigation{ + position:fixed; + width: 250px; + height: 100%; + background: #003147; + + transition: 0.5s; + overflow: hidden; +} +.navigation.active{ + position:fixed; + width: 60px; + transition: 0.5s; +} +.navigation ul{ + position: absolute; + top: 0; + left: 0; + width: 100%; +} +.navigation ul li{ + position: relative; + width: 100%; + list-style: none; +} +.navigation ul li:hover{ + background: #03a9f4; + +} +.navigation ul li:nth-child(1):hover{ + background: transparent; +} +.navigation ul li:nth-child(1){ + margin-bottom: 20px; +} + +.navigation ul li a{ + position: relative; + display: block; + width: 100%; + display: flex; + text-decoration: none; + color: #fff; +} +.navigation ul li .icon{ + position: relative; + display: block; + min-width: 60px; + height:60px; + line-height: 60px; + text-align: center; +} +.navigation ul li .icon .fa{ + color: #fff; + font-size: 24px; +} +.navigation ul li a .title{ + position: relative; + display: block; + padding: 0 10px; + height: 60px; + line-height:60px; + white-space: nowrap; +} + +#logo{ + margin-top: 12px; +} +.nom_app{ + margin-left: 12px; +} +.nom_app .titulo{ + font-family: sigma_font; + font-size: 32px; +} +.nom_app .subtitulo{ + font-size: 16px; + text-align: right; +} +/********* PRINCIPAL *********/ +.main { + position: absolute; + width: calc(100% - 250px); + left: 250px; + min-height: 100vh; + /*background: #084c6d;*/ + background: #1f2b33; + transition: 0.5s; +} +.main.active { + width: calc(100% - 60px); + left: 60px; +} +.main .topbar{ + width: 100%; + background: #1F497D; + height: 60px; + padding: 0 10px;; + display: flex; + justify-content: space-between; + align-items: center; +} +.toggle{ + position: relative; + width: 60px; + height: 60px; + cursor: pointer; +} +.toggle::before{ + content: '\f0c9'; + font-family: fontawesome; + position: absolute; + width: 100%; + height:100%; + line-height:60px; + font-size: 24px; + text-align: center; + color: #111; +} +.buscar{ + position: relative; + width: 400px; + margin: 0 +} +.buscar label{ + position: relative; + width: 100%; +} +.buscar label input{ + position: relative; + width: 100%; + height: 40px; + border-radius: 35px; + padding: 5px 20px; + padding-left: 35px; + outline: none; + border: 1px solid rgba(0,0,0,0.2); +} + +.buscar label .fa{ + position: absolute; + left: 15px; + top: 4px; +} +.user{ + position: relative; + width: 50px; + height: 50px; + border-radius: 50%; + overflow: hidden; + cursor: pointer; +} +.user img { + position: absolute; + top: 0; + left: 0; + width: 100%; + height:100%; + object-fit: cover; +} + +/********* tarjetas *********/ +.cardBox{ + position: relative; + width: 100%; + padding: 20px; + display: grid; + grid-template-columns: repeat(4,1fr); + grid-gap: 20px; +} +.cardBox .card{ + position: relative; + background: #1f497d; + padding: 20px; + display: flex; + justify-content: space-between; + cursor: pointer; +} + +.cardBox .card .numeros{ + position: relative; + font-size: 2em; + font-weight: 500; + color: #fff; +} +.cardBox .card .card_nombre{ + color: #999; +} +.cardBox .card .iconBox{ + font-size: 2.5em; + color: rgb(154, 223, 255); +} + +/********* TABLAS *********/ + +.detalles { + position: relative; + width: 100%;padding: 20px; + display: grid; + grid-gap: 20px; + grid-template-columns: 2fr 1fr; +} +.detalles .card_table{ + position: relative; + padding: 20px; + padding-top: 10px; + display: grid; + min-width: 530px; + background: #1F497D; +} + +.card_header{ + display: flex; + justify-content: space-between; + align-items: flex-start; +} +.card_header .h2{ + font-weight: 600; +} +.btn{ + position: relative; + padding: 5px; + background: rgba(10, 10, 10, 0.45); + text-decoration: none; + border-radius: 6px; +} +.detalles table{ + width: 100%; + border-collapse: collapse; + margin-top: 10px; +} +.detalles table thead td{ + font-weight: 600; + background:rgba(10, 10, 10, 0.2) +} +.detalles table tr{ + border-bottom: 1px solid rgba(255, 255, 255, 0.3); +} + +.detalles table tr:last-child{ + border-bottom: none; +} +.detalles table tr:hover{ + background: rgba(76, 144, 247, 0.5); + color:rgba(10, 10, 10, 0.45); + cursor: pointer; +} +.detalles table tr td{ + padding: 9px 5px; +} + +.detalles table tr td:nth-child(3),.detalles table tr td:nth-child(3){ + text-align: right; + padding-right: 20px; +} +.detalles table tr td:nth-child(4),.detalles table tr td:nth-child(4){ + text-align: left; + padding-right: 20px; +} +.detalles table tr td:last-child,.detalles table tr td:last-child{ + text-align: center; +} + +/********* ESTADOS *********/ +.estado { + position: relative; + padding: 2px 2px; + border-radius: 3px; + font-size: 14px; + font-weight: 300; + letter-spacing: 1px; +} +.iniciada{ + margin: auto; + background: #00A65A; + color: white; +} +.pendiente{ + margin: auto; + background: #F39C12; + color: white; +} +.procesando{ + margin: auto; + background: #F39C12; + color: white; +} +.finalizada{ + margin: auto; + background: #3C8DBC; + color: white; +} +.error{ + margin: auto; + background: #DF5645; + color: white; +} + +.detalles .items_recientes{ + position: relative; + display: grid; + /*min-height: 530px;*/ + background: #1F497D; + padding: 20px; +} + +.detalles .items_recientes .img_Item{ + position: relative; + width: 40px; + height: 40px; + border-radius: 50%; + overflow: hidden; +} +.detalles .items_recientes .img_Item img{ + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + object-fit: cover; +} +.detalles .items_recientes table tr:hover{ + background: rgba(10, 10, 10, 0.45); +} +.detalles .items_recientes table tr td{ + padding: 7px 10px; +} +.detalles .items_recientes table tr h4{ + font-size: 16px; + font-weight: 500; + line-height: 1.2em; +} +.detalles .items_recientes table tr h4 span{ + font-size: 12px; + color: #999; + line-height: 1.2em; +} + +/**** MODO RESPONSIVO *****/ +@media(max-width:992px){ + .navigation{ + left: -250px; + transition: 0.5s; + } + .navigation.active{ + left: 0; + } + .main{ + width:100%; + left: 0; + } + .main.active{ + width:calc( 100% - 60px); + left: 60px; + } + .cardBox { + position: relative; + width: 100%; + padding: 20px; + display: grid; + grid-template-columns: repeat(2,1fr); + grid-gap: 20px; + } + .detalles { + position: relative; + width: 100%; + padding: 20px; + display: grid; + grid-gap: 20px; + grid-template-columns:repeat(1,1fr); + } +} +@media(max-width:768px){ + .cardBox { + position: relative; + width: 100%; + padding: 20px; + display: grid; + grid-template-columns: repeat(1,1fr); + grid-gap: 20px; + } + .detalles .card_table{ + padding: 10px; + padding-top: 10px; + min-width: 100%; + font-size: 11px; + } + .detalles .ordenesRecientes{ + overflow: auto; + } +} \ No newline at end of file diff --git a/src/public/img/favicon_io.zip b/src/public/img/favicon_io.zip new file mode 100644 index 0000000..9f5d326 Binary files /dev/null and b/src/public/img/favicon_io.zip differ diff --git a/src/public/img/favicon_restaurant/android-chrome-192x192.png b/src/public/img/favicon_restaurant/android-chrome-192x192.png new file mode 100644 index 0000000..3819652 Binary files /dev/null and b/src/public/img/favicon_restaurant/android-chrome-192x192.png differ diff --git a/src/public/img/favicon_restaurant/android-chrome-512x512.png b/src/public/img/favicon_restaurant/android-chrome-512x512.png new file mode 100644 index 0000000..c3f03f9 Binary files /dev/null and b/src/public/img/favicon_restaurant/android-chrome-512x512.png differ diff --git a/src/public/img/favicon_restaurant/apple-touch-icon.png b/src/public/img/favicon_restaurant/apple-touch-icon.png new file mode 100644 index 0000000..f7f4ac4 Binary files /dev/null and b/src/public/img/favicon_restaurant/apple-touch-icon.png differ diff --git a/src/public/img/favicon_restaurant/favicon-16x16.png b/src/public/img/favicon_restaurant/favicon-16x16.png new file mode 100644 index 0000000..699e9ac Binary files /dev/null and b/src/public/img/favicon_restaurant/favicon-16x16.png differ diff --git a/src/public/img/favicon_restaurant/favicon-32x32.png b/src/public/img/favicon_restaurant/favicon-32x32.png new file mode 100644 index 0000000..a8da6f1 Binary files /dev/null and b/src/public/img/favicon_restaurant/favicon-32x32.png differ diff --git a/src/public/img/favicon_restaurant/favicon.ico b/src/public/img/favicon_restaurant/favicon.ico new file mode 100644 index 0000000..ded3462 Binary files /dev/null and b/src/public/img/favicon_restaurant/favicon.ico differ diff --git a/src/public/img/favicon_restaurant/site.webmanifest b/src/public/img/favicon_restaurant/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/src/public/img/favicon_restaurant/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/src/public/img/iconos/3448609.png b/src/public/img/iconos/3448609.png new file mode 100644 index 0000000..2470351 Binary files /dev/null and b/src/public/img/iconos/3448609.png differ diff --git a/src/public/img/iconos/bbq-icon.svg b/src/public/img/iconos/bbq-icon.svg new file mode 100644 index 0000000..cf5677c --- /dev/null +++ b/src/public/img/iconos/bbq-icon.svg @@ -0,0 +1 @@ +bbq \ No newline at end of file diff --git a/src/public/img/iconos/beer-mug-icon.svg b/src/public/img/iconos/beer-mug-icon.svg new file mode 100644 index 0000000..7536394 --- /dev/null +++ b/src/public/img/iconos/beer-mug-icon.svg @@ -0,0 +1 @@ +beer-mug \ No newline at end of file diff --git a/src/public/img/iconos/food-and-drink-icon.svg b/src/public/img/iconos/food-and-drink-icon.svg new file mode 100644 index 0000000..6aa5781 --- /dev/null +++ b/src/public/img/iconos/food-and-drink-icon.svg @@ -0,0 +1 @@ +food-and-drink \ No newline at end of file diff --git a/src/public/img/iconos/food-court-icon.svg b/src/public/img/iconos/food-court-icon.svg new file mode 100644 index 0000000..a2ec7ab --- /dev/null +++ b/src/public/img/iconos/food-court-icon.svg @@ -0,0 +1 @@ +food-court \ No newline at end of file diff --git a/src/public/img/iconos/food-restaurant-icon.svg b/src/public/img/iconos/food-restaurant-icon.svg new file mode 100644 index 0000000..e8c34a9 --- /dev/null +++ b/src/public/img/iconos/food-restaurant-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/public/img/iconos/glass-bottle-icon.svg b/src/public/img/iconos/glass-bottle-icon.svg new file mode 100644 index 0000000..667d0b7 --- /dev/null +++ b/src/public/img/iconos/glass-bottle-icon.svg @@ -0,0 +1 @@ +glass-bottle \ No newline at end of file diff --git a/src/public/img/iconos/hot-dog-icon.svg b/src/public/img/iconos/hot-dog-icon.svg new file mode 100644 index 0000000..b86770f --- /dev/null +++ b/src/public/img/iconos/hot-dog-icon.svg @@ -0,0 +1 @@ +hot-dog \ No newline at end of file diff --git a/src/public/img/iconos/icono:32.png b/src/public/img/iconos/icono:32.png new file mode 100644 index 0000000..f8f20ce Binary files /dev/null and b/src/public/img/iconos/icono:32.png differ diff --git a/src/public/img/iconos/icono_32.png b/src/public/img/iconos/icono_32.png new file mode 100644 index 0000000..f8f20ce Binary files /dev/null and b/src/public/img/iconos/icono_32.png differ diff --git a/src/public/img/iconos/icono_92.png b/src/public/img/iconos/icono_92.png new file mode 100644 index 0000000..8ffc206 Binary files /dev/null and b/src/public/img/iconos/icono_92.png differ diff --git a/src/public/img/iconos/logo_app.svg b/src/public/img/iconos/logo_app.svg new file mode 100644 index 0000000..8400e75 --- /dev/null +++ b/src/public/img/iconos/logo_app.svg @@ -0,0 +1,88 @@ + +food-courtfood-court diff --git a/src/public/img/iconos/milkshake-icon.svg b/src/public/img/iconos/milkshake-icon.svg new file mode 100644 index 0000000..f96b42f --- /dev/null +++ b/src/public/img/iconos/milkshake-icon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/src/public/img/iconos/plastic-soft-drink-bottle-icon.svg b/src/public/img/iconos/plastic-soft-drink-bottle-icon.svg new file mode 100644 index 0000000..c493ab8 --- /dev/null +++ b/src/public/img/iconos/plastic-soft-drink-bottle-icon.svg @@ -0,0 +1 @@ +plastic-soft-drink-bottle \ No newline at end of file diff --git a/src/public/img/items/img1.jpeg b/src/public/img/items/img1.jpeg new file mode 100644 index 0000000..a998363 Binary files /dev/null and b/src/public/img/items/img1.jpeg differ diff --git a/src/public/img/items/img1.jpg b/src/public/img/items/img1.jpg new file mode 100644 index 0000000..ff447db Binary files /dev/null and b/src/public/img/items/img1.jpg differ diff --git a/src/public/img/items/img2.jpg b/src/public/img/items/img2.jpg new file mode 100644 index 0000000..4edefdf Binary files /dev/null and b/src/public/img/items/img2.jpg differ diff --git a/src/public/img/items/img3.jpg b/src/public/img/items/img3.jpg new file mode 100644 index 0000000..dc6e55c Binary files /dev/null and b/src/public/img/items/img3.jpg differ diff --git a/src/public/img/items/img4.jpg b/src/public/img/items/img4.jpg new file mode 100644 index 0000000..ee71aef Binary files /dev/null and b/src/public/img/items/img4.jpg differ diff --git a/src/public/img/usuario.jpeg b/src/public/img/usuario.jpeg new file mode 100644 index 0000000..282faa8 Binary files /dev/null and b/src/public/img/usuario.jpeg differ diff --git a/src/public/img/usuario2.jpeg b/src/public/img/usuario2.jpeg new file mode 100644 index 0000000..73cc3e0 Binary files /dev/null and b/src/public/img/usuario2.jpeg differ diff --git a/src/rutas/rt_Generales.js b/src/rutas/rt_Generales.js index 9878e0f..dde7c82 100644 --- a/src/rutas/rt_Generales.js +++ b/src/rutas/rt_Generales.js @@ -15,5 +15,6 @@ rutas.get('/recepcionPedidos', controlador_init.recibe_pedidos);//receptar pedid rutas.get('/', controlador_init.app_login);//FORM LOGIN DE LA APP rutas.post('/login', controlador_init.auth);//Authenticacion de APP rutas.get('/login_test', controlador_init.login_test);//login testing css / dev +rutas.get('/admin_dash', controlador_init.dash);//login testing css / dev module.exports = rutas; diff --git a/src/views/admin_dash.ejs b/src/views/admin_dash.ejs new file mode 100644 index 0000000..9ee478f --- /dev/null +++ b/src/views/admin_dash.ejs @@ -0,0 +1,256 @@ + + + + + + + + SIGMA Restaurante + + + + + + + + +
+ +
+
+
+ +
+
+ +
+
+ usr +
+
+
+ + +
+
+
125.33
+
Pedidos
+ +
+
+ +
+
+
+
+
125.33
+
Compras Ingresadas
+ +
+
+ +
+
+
+
+
125.33
+
Ventas Emitidas
+ +
+
+ + +
+
+
+
+
125.33
+
Vistas Diarias
+ +
+
+ +
+
+
+ +
+
+
+

Ordenes Recientes

+ Ver Todas +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IDNombreValorMetodo PagoEstado
1Diego Farias150.66TranferenciaENVIADO
2Paul Fernando12.36EFECTIVORECIBIDO
3Pablo Xavier Farias2.36CONTRA ENTREGAPROCESANDO
3Pepito la Lora0.0CANCELADOERROR
+
+
+
+

Consumos Recientes

+ Ver Todas +
+ + + + + + + + + + + + + + + + + + + +
+
+ item +
+

Hamburgesa
Doble

+
+ item +
+

Pizza
Americana

+
+ item +
+

Alitas BBQ
Salsas BBQ y Brandy

+
+ item +
+

Pulpo
a la Parrilla

+
+
+
+
+ + + + \ No newline at end of file