File tree Expand file tree Collapse file tree 4 files changed +4
-25
lines changed Expand file tree Collapse file tree 4 files changed +4
-25
lines changed Original file line number Diff line number Diff line change 28
28
btt .classList .remove (' block' );
29
29
}
30
30
}
31
-
32
- // Handle navbar appearance on scroll
33
- if (navbar) {
34
- if (window .scrollY > 50 ) {
35
- navbar .classList .add (' scrolled' );
36
-
37
- // For homepage, make navbar visible after scrolling
38
- if (isHomePage) {
39
- navbar .classList .remove (' opacity-0' , ' -translate-y-full' );
40
- navbar .classList .add (' opacity-100' , ' translate-y-0' , ' bg-pycon-blue/70' );
41
- }
42
- } else {
43
- navbar .classList .remove (' scrolled' );
44
-
45
- // For homepage, hide navbar when at the top
46
- if (isHomePage) {
47
- navbar .classList .add (' opacity-0' , ' -translate-y-full' );
48
- navbar .classList .remove (' opacity-100' , ' translate-y-0' , ' bg-pycon-blue/70' );
49
- }
50
- }
51
- }
52
31
};
53
32
54
33
window .addEventListener (' scroll' , handleScroll);
Original file line number Diff line number Diff line change 1
- <div class =" relative w-full h-auto bg-[#4E62F5] pt-1 md:pt-3 overflow-hidden" >
1
+ <div class =" relative w-full h-auto bg-[#4E62F5] pt-12 md:pt-16 xl:pt-20 overflow-hidden" >
2
2
<img
3
3
src =" {{ env.baseUrl }}img/hero-banner.png"
4
4
alt =" PyCon India 2025"
5
- class =" w-full object-cover object-center scale-105"
5
+ class =" w-full object-cover object-center scale-105 pb-10 "
6
6
/>
7
7
</div >
Original file line number Diff line number Diff line change 1
1
{% macro navbar (isHomePage = false , env = env ) %}
2
- <nav class =" w-full flex justify-center glass-nav {% if isHomePage %}bg-transparent opacity-0 -translate-y-full {% else %}bg-pycon-blue/70 {% endif %} z-50 fixed top-0 transition-all duration-500" id =" main-navbar" >
2
+ <nav class =" w-full flex justify-center {% if isHomePage %}bg-black {% else %}bg-pycon-blue{% endif %} z-50 fixed top-0 left-0 right -0 transition-all duration-500" id =" main-navbar" >
3
3
<div class =" w-full max-w-5xl mx-auto px-6 hidden md:block py-3" >
4
4
<div class =" relative flex justify-center items-center h-12 px-6" >
5
5
<a href =" {{ env.baseUrl }}" class =" absolute left-0" >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ isFront: true
10
10
</div >
11
11
12
12
<main class =" flex-grow relative" >
13
- <div class =" home-banner mt-0 relative z-[1]" >
13
+ <div class =" home-banner mt-4 lg:mt-5 xl:mt-3 relative z-[1]" >
14
14
{% include " landing/hero-banner.njk" %}
15
15
</div >
16
16
{% include " landing/hero.njk" %}
You can’t perform that action at this time.
0 commit comments