File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const navHref = (anchor: string) => {
1616 <div class =" container" >
1717 <a href ={ lang === ' ru' ? ' /ru' : lang === ' kz' ? ' /kz' : ' /' } class =" logo-link" aria-label =" NurOS — Home" >
1818 <div class =" logo" >
19- <span class =" logo-text" >NurOS </span >
19+ <span class =" logo-text" >Nur< span class = " logo-os " >OS</ span > </span >
2020 </div >
2121 </a >
2222
@@ -103,7 +103,8 @@ const navHref = (anchor: string) => {
103103
104104 .logo-link { text-decoration: none; opacity: 1; }
105105 .logo-link:hover { opacity: 1; }
106- .logo-text { font-size: 1.5rem; font-weight: 600; color: var(--text-color); line-height: 1.2; }
106+ .logo-text { font-family: 'Inter', sans-serif; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-color); line-height: 1.2; }
107+ .logo-os { color: var(--primary-color); }
107108 .tagline { font-size: 0.875rem; color: var(--accent-color); }
108109
109110 nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
Original file line number Diff line number Diff line change @@ -22,11 +22,47 @@ const lang = getLangFromUrl(Astro.url);
2222 <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
2323 <meta name =" description" content ={ description } />
2424 <meta name =" theme-color" content =" #0d0d0d" />
25+ <link rel =" preconnect" href =" https://fonts.googleapis.com" />
26+ <link rel =" preconnect" href =" https://fonts.gstatic.com" crossorigin />
27+ <link rel =" stylesheet" href =" https://fonts.googleapis.com/css2?family=Inter:wght@600&display=swap" />
2528 <link rel =" icon" href =" /favicon.png" type =" image/png" />
2629 <title >{ title } </title >
2730 </head >
2831 <body >
2932 <a href =" #main-content" class =" skip-link" >Skip to main content</a >
3033 <slot />
34+ <script is:inline src =" https://keepandroidopen.org/banner.js?size=minimal&animation=off" ></script >
35+ <style >
36+ .kao-banner {
37+ position: fixed !important;
38+ top: 0;
39+ left: 0;
40+ right: 0;
41+ width: 100%;
42+ z-index: 1100;
43+ }
44+ </style >
45+ <script is:inline >
46+ (function () {
47+ function adjustHeader() {
48+ var banner = document.querySelector('.kao-banner');
49+ var header = document.querySelector('header');
50+ if (!header) return;
51+ if (banner && banner.style.display !== 'none') {
52+ header.style.top = banner.offsetHeight + 'px';
53+ } else {
54+ header.style.top = '0';
55+ }
56+ }
57+ window.addEventListener('load', function () {
58+ adjustHeader();
59+ var banner = document.querySelector('.kao-banner');
60+ if (banner) {
61+ new MutationObserver(adjustHeader).observe(banner, { attributes: true, attributeFilter: ['style'] });
62+ }
63+ });
64+ window.addEventListener('resize', adjustHeader);
65+ })();
66+ </script >
3167 </body >
3268</html >
You can’t perform that action at this time.
0 commit comments