Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add menu hover animation #33

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 55 additions & 4 deletions src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,66 @@ import Logo from './icons/ScesiBgDark.astro';
<div
class="fixed top-0 z-30 flex w-screen items-center justify-between bg-[#202020] px-5 py-3 md:px-12"
>
<Logo />
<a href="#"> <Logo /></a>

<!-- <ul>
<li>
<ul class="flex gap-3 lg:mr-2 lg:gap-8">
<!-- <li>
<a
href="#postulaciones"
class="text-poppins rounded-[6px] bg-[#D83746] px-3 py-2 font-medium text-white"
>Postulaciones 2024</a
>
</li> -->
<li>
<a href="#capuchino" class="navegation">Capuchino</a>
</li>
<li>
<a href="#contactanos" class="navegation">Comunidad</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debe ser distinto el href

</li>
</ul> -->
<li>
<a href="#contactanos" class="navegation">Blogs</a>
</li>
</ul>
</div>
<style>
.navegation {
position: relative;
text-decoration: none;
color: rgb(140, 140, 140);
font-size: 16px;
font-weight: 600;
letter-spacing: 0.5px;
padding: 0 5px;
}
.navegation::after {
content: '';
position: absolute;
background-color: white;
height: 3px;
width: 0;
left: 0;
bottom: -15px;
transition: 0.3s;
}
.navegation:hover {
color: white;
}
.navegation:hover::after {
width: 100%;
}

@media (max-width: 1024px) {
.navegation {
font-size: 16px;
padding: 0 5px;
}
}

@media (max-width: 500px) {
.navegation {
font-size: 16px;
padding: 0 1px;
letter-spacing: 0px;
}
}
</style>
2 changes: 1 addition & 1 deletion src/components/sections/Capuchino.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import myModel from '../../assets/images/capuchino.png';
import CapuchinoIcon from '../icons/charm_coffee.astro';
---

<section class="grid w-full grid-cols-1 md:grid-cols-2">
<section class="grid w-full grid-cols-1 md:grid-cols-2" id="capuchino">
<div class="bg-scesi-dark-blue px-5 py-12">
<div class="mx-auto grid h-full max-w-[400px] content-center gap-3">
<CapuchinoIcon class="mx-auto md:h-12 md:w-12" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/ContactWithUs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import news_channel_image from '../../assets/images/news_channel_image.png';
import visit_blog_image from '../../assets/images/visit_blog_image.png';
---

<section class="container mx-auto py-12 md:py-16">
<section class="container mx-auto py-12 md:py-16" id="contactanos">
<h2 class="font-Poppins mb-5 text-center text-2xl font-bold sm:text-[32px]">
Conéctate con Nosotros
</h2>
Expand Down