2 Commits

Author SHA1 Message Date
danielGe 100e1f8ba8 nav corregido 2020-08-06 00:37:08 -05:00
danielGe 6f033f7a0a cambio de formato 2020-08-05 23:27:20 -05:00
6 changed files with 291 additions and 108 deletions
+17 -17
View File
@@ -1,17 +1,17 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
</head> </head>
<body> <body>
<noscript> <noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
</html> </html>
+1 -9
View File
@@ -1,21 +1,13 @@
<template> <template>
<div id="app"> <div id="app">
<Header />
<router-view></router-view> <router-view></router-view>
<Footer />
</div> </div>
</template> </template>
<script> <script>
import Header from "./esteticas/header.vue";
import Footer from "./esteticas/footer.vue";
export default { export default {
name: "App", name: "App"
components: {
Header,
Footer
}
}; };
</script> </script>
+20 -1
View File
@@ -1,5 +1,24 @@
<template> <template>
<div> <div>
<h1>esta es la pagina home</h1> <Header />
<Nav />
<router-view></router-view>
<Footer />
</div> </div>
</template> </template>
<script>
import Header from "./../esteticas/header.vue";
import Nav from "./../esteticas/navPrincipal.vue";
import Footer from "./../esteticas/footer.vue";
export default {
name: "App",
components: {
Header,
Nav,
Footer
}
};
</script>
+12 -14
View File
@@ -44,11 +44,12 @@ export default {};
width: 14rem; width: 14rem;
font-size: 0.8rem; font-size: 0.8rem;
} }
.uno,.dos, .uno,
.dos,
.tres { .tres {
margin-right: 1rem; margin-right: 1rem;
} }
.btn{ .btn {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@@ -61,31 +62,28 @@ export default {};
color: white; color: white;
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.uno,.tres { .uno,
.tres {
margin-right: 4rem; margin-right: 4rem;
} }
.dos{ .dos {
margin-right: 0rem; margin-right: 0rem;
} }
.footer { .footer {
font-size: 0.7rem; font-size: 0.7rem;
} }
} }
@media (max-width: 970px) { @media (max-width: 970px) {
.uno,.dos, .uno,
.tres { .dos,
margin-right: .5rem; .tres {
} margin-right: 0.5rem;
}
.footer { .footer {
font-size: 0.7rem; font-size: 0.7rem;
} }
} }
</style> </style>
+67 -67
View File
@@ -1,67 +1,67 @@
<template> <template>
<container> <container>
<div class="row divMaster header cl-12 azulUnam"> <div class="row divMaster header cl-12 azulUnam">
<div <div
class="logo_unam col-4 offset-1 d-inline-flex my-2 align-items-center" class="logo_unam col-4 offset-1 d-inline-flex my-2 align-items-center"
> >
<a href="https://www.unam.mx/" target="_blank"> <a href="https://www.unam.mx/" target="_blank">
<img class="sizeImg" src="../assets/Logo-UNAM.png" alt="logo unam" /> <img class="sizeImg" src="../assets/Logo-UNAM.png" alt="logo unam" />
</a> </a>
</div> </div>
<div <div
class="logo_acatlan col-4 offset-2 d-inline-flex justify-content-end my-2 align-items-center" class="logo_acatlan col-4 offset-2 d-inline-flex justify-content-end my-2 align-items-center"
> >
<a href="https://www.acatlan.unam.mx/" target="_blank"> <a href="https://www.acatlan.unam.mx/" target="_blank">
<img <img
class="sizeImg" class="sizeImg"
src="../assets/FES-editoriales.png" src="../assets/FES-editoriales.png"
alt="logo unam" alt="logo unam"
/> />
</a> </a>
</div> </div>
<div <div
class="logo_acatlan_resp col-8 offset-2 d-flex justify-content-center my-2 align-items-center" class="logo_acatlan_resp col-8 offset-2 d-flex justify-content-center my-2 align-items-center"
> >
<a href="https://www.acatlan.unam.mx/" target="_blank"> <a href="https://www.acatlan.unam.mx/" target="_blank">
<img <img
class="sizeImg" class="sizeImg"
src="../assets/FES-editoriales.png" src="../assets/FES-editoriales.png"
alt="logo unam" alt="logo unam"
/> />
</a> </a>
</div> </div>
</div> </div>
</container> </container>
</template> </template>
<style > <style>
.divMaster { .divMaster {
height: 7em; height: 7em;
margin: 0 auto; margin: 0 auto;
} }
.azulUnam { .azulUnam {
background-color: #1e3c70; background-color: #1e3c70;
} }
.sizeImg { .sizeImg {
height: 5rem; height: 5rem;
} }
.logo_acatlan_resp { .logo_acatlan_resp {
display: none !important; display: none !important;
} }
@media (max-width: 450px) { @media (max-width: 450px) {
.logo_acatlan, .logo_acatlan,
.logo_unam { .logo_unam {
display: none !important; display: none !important;
} }
.logo_acatlan_resp { .logo_acatlan_resp {
display: block !important; display: block !important;
} }
.logo_acatlan_resp a img { .logo_acatlan_resp a img {
height: 5rem; height: 5rem;
} }
} }
</style> </style>
+174
View File
@@ -0,0 +1,174 @@
<template>
<nav
class="navbar navbar-expand-md navbar-light "
style="background-color:#BB8800;"
>
<div class="container">
<nav class=" ">
<button
class=" navbar-toggler van text-whitee btn-sm"
type="button"
id="toggle-menu"
data-toggle="collapse"
data-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
v-on:click="toggle()"
>
<span
class=" navbar-toggler-icon x m-1"
style="color:white !important;"
></span>
Menú
</button>
</nav>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mr-auto mt-0 mt-lg-0">
<li class="nav-item dropdown">
<router-link to="#" class="nav-item nav-link "
><a> Inicio</a></router-link
>
</li>
<li class="nav-item dropdown">
<router-link to="#" class="nav-item nav-link"
><a>Presentacion</a></router-link
>
</li>
<li class="nav-item dropdown">
<router-link to="#" class="nav-item nav-link"
><a>Libros</a></router-link
>
</li>
<li class="nav-item dropdown">
<router-link to="#" class="nav-item nav-link"
><a>Difusión Editorial</a></router-link
>
</li>
</ul>
<form class="form-inline my-0 my-lg-0">
<div class="input-group input-group-sm mb-0">
<input
type="text"
class="form-control reIzq "
placeholder="Buscar"
aria-label="Recipient's username"
aria-describedby="basic-addon2"
/>
<div class="input-group-append reDer bg-white">
<button class="btn my-0" type="submit">
<svg
width="1em"
height="1em"
viewBox="0 0 16 16"
class="bi bi-search"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M10.442 10.442a1 1 0 0 1 1.415 0l3.85 3.85a1 1 0 0 1-1.414 1.415l-3.85-3.85a1 1 0 0 1 0-1.415z"
/>
<path
fill-rule="evenodd"
d="M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"
/>
</svg>
</button>
</div>
</div>
</form>
</div>
</div>
</nav>
</template>
<script>
export default {
methods: {
toggle: function() {
let element = document.getElementById("navbarNav");
element.classList.toggle("block");
element.classList.add("mystyle");
}
}
};
</script>
<style scoped>
.reDer {
border-top-right-radius: 20px 20px !important;
border-bottom-right-radius: 20px 20px !important;
}
.reIzq {
border-top-left-radius: 20px 20px !important;
border-bottom-left-radius: 20px 20px !important;
}
body {
overflow-x: hidden;
}
.mystyle {
text-align: left;
}
.block {
display: block;
}
a {
max-height: 100%;
}
.menu {
background-color: #bb8800;
}
.menu nav ul {
display: flex;
justify-content: space-between;
margin: 0 0rem;
}
.menu nav ul div {
display: flex;
justify-content: space-between;
}
.menu nav ul li {
list-style: none;
}
.menu nav ul li a {
display: block;
}
a {
color: white;
transition: 0.5s;
padding-left: 0.3rem;
padding-right: 0.3rem;
}
a:hover {
background-color: #1e3c70;
color: white;
}
.active {
background-color: #936900;
}
.van {
display: flex;
align-items: center;
justify-content: center;
}
.x {
color: white;
}
@media (min-width: 768px) {
.van {
display: none;
}
}
</style>