feat(footer): подпись о техническом партнёре + Speculation Rules
All checks were successful
deploy / deploy (push) Successful in 1m3s

- Footer.astro: добавлена подпись "Сайт разработан и сопровождается
  техническим партнёром — ООО «АйТи Решения»" со ссылкой на hhivp.com
  (по образу stbolshevik.ru/partners/).
- global.css: стиль .developer (light text 0.78rem с dashed-подчёркнутой
  ссылкой).
- Base.astro: добавлен Speculation Rules API inline в <head> для
  пререндера same-origin ссылок на hover/pointerdown (Chromium 122+).
This commit is contained in:
Dmitry Gusev
2026-05-23 23:56:31 +03:00
parent 381a9a90a4
commit 8ce20825f6
3 changed files with 35 additions and 0 deletions

View File

@@ -10,5 +10,9 @@ const year = new Date().getFullYear();
<a href="/">Главная</a> <a href="/">Главная</a>
<a href="/privacy/">Конфиденциальность</a> <a href="/privacy/">Конфиденциальность</a>
</nav> </nav>
<p class="developer">
Сайт разработан и сопровождается техническим партнёром&nbsp;—{' '}
<a href="https://hhivp.com/" rel="noopener" target="_blank">ООО «АйТи Решения»</a>
</p>
</div> </div>
</footer> </footer>

View File

@@ -55,6 +55,26 @@ const jsonLd = {
<script type="application/ld+json" is:inline set:html={JSON.stringify(jsonLd)} /> <script type="application/ld+json" is:inline set:html={JSON.stringify(jsonLd)} />
<!--
Speculation Rules API (Chromium 122+) — prerender same-origin pages on
hover/pointerdown for near-instant navigation. Только / и /privacy/ —
eagerness moderate.
-->
<script type="speculationrules" is:inline set:html={JSON.stringify({
prerender: [
{
where: {
and: [
{ href_matches: '/*' },
{ not: { href_matches: '/_astro/*' } },
{ not: { href_matches: '/sitemap*' } }
]
},
eagerness: 'moderate'
}
]
})} />
<Analytics /> <Analytics />
</head> </head>
<body> <body>

View File

@@ -179,6 +179,17 @@ section h2::before {
.footer-inner .copy { margin: 0; font-size: 0.9rem; } .footer-inner .copy { margin: 0; font-size: 0.9rem; }
.footer-nav { display: flex; gap: 1.25rem; font-size: 0.9rem; } .footer-nav { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--accent); } .footer-nav a:hover { color: var(--accent); }
.footer-inner .developer {
width: 100%;
margin: 0.75rem 0 0;
font-size: 0.78rem;
opacity: 0.6;
}
.footer-inner .developer a {
color: inherit;
border-bottom: 1px dashed currentColor;
}
.footer-inner .developer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
/* ── Reading pages (privacy) ────────────────────────────────────── */ /* ── Reading pages (privacy) ────────────────────────────────────── */
.prose { .prose {