Update design 2

This commit is contained in:
Kirchik
2025-08-02 13:05:28 +02:00
parent ee395c48d2
commit b42abecb05
7 changed files with 91 additions and 63 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
languageCode = "ru" languageCode = "ru"
defaultContentLanguage = "ru" defaultContentLanguage = "ru"
title = "Пока ты спал" title = "Пока ты спал"
baseURL = "https://sleeptrip.ru/" baseURL = "http://localhost:1313/"
theme = "hugo-theme-massively" theme = "hugo-theme-massively"
googleanalytics = "" googleanalytics = ""
disqusShortname = "" disqusShortname = ""
+5 -5
View File
@@ -13,15 +13,15 @@ disqus_identifier = '0'
<div class="about-site-content"> <div class="about-site-content">
<h2>Навигация по сайту</h2> <h2>Навигация по сайту</h2>
<p><i class="icon fa-home"></i> <strong><a href="https://sleeptrip.ru/">Главная страница</a></strong> — если есть время просто посмотреть публикации, добро пожаловать на главную страницу, где в хронологическом порядке приведена история поездок с фотографиями.</p> <p><i class="icon fa-home"></i> <strong><a href="/">Главная страница</a></strong> — если есть время просто посмотреть публикации, добро пожаловать на главную страницу, где в хронологическом порядке приведена история поездок с фотографиями.</p>
<p><i class="icon fa-calendar"></i> <strong><a href="https://sleeptrip.ru/plan/">Хочу поехать</a></strong> — расписание ближайших поездок или значок календаря внизу страницы, где при желании можно поделиться своими интересными локациями и подобрать попутчиков.</p> <p><i class="icon fa-calendar"></i> <strong><a href="/plan/">Хочу поехать</a></strong> — расписание ближайших поездок или значок календаря внизу страницы, где при желании можно поделиться своими интересными локациями и подобрать попутчиков.</p>
<p><i class="icon fa-map"></i> <strong><a href="https://sleeptrip.ru/map/">Маршруты</a></strong> — картографическое отображение пройденных локаций.</p> <p><i class="icon fa-map"></i> <strong><a href="/map/">Маршруты</a></strong> — картографическое отображение пройденных локаций.</p>
<p><i class="icon fa-question"></i> <strong><a href="https://sleeptrip.ru/ask/">Спросить</a></strong> — есть вопросы или пожелания?</p> <p><i class="icon fa-question"></i> <strong><a href="/ask/">Спросить</a></strong> — есть вопросы или пожелания?</p>
<p><i class="icon fa-image"></i> <strong><a href="https://sleeptrip.ru/gallery/">Галерея</a></strong> — квинтэссенция фотографий из расчёта 1 локация-1 фотография.</p> <p><i class="icon fa-image"></i> <strong><a href="/gallery/">Галерея</a></strong> — квинтэссенция фотографий из расчёта 1 локация-1 фотография.</p>
</div> </div>
{{< /rawhtml >}} {{< /rawhtml >}}
+7 -8
View File
@@ -8,11 +8,10 @@ googleplus: "https://plus.google.com/"
lastfm: "https://last.fm/" lastfm: "https://last.fm/"
flickr: "https://flickr.com/" flickr: "https://flickr.com/"
telegram: "https://t.me/whilesleeping/" telegram: "https://t.me/whilesleeping/"
gallery: "https://sleeptrip.ru/gallery/" home: "/"
home: "https://sleeptrip.ru/" plan: "/plan/"
plan: "https://sleeptrip.ru/plan/" map: "/map/"
map: "https://sleeptrip.ru/map/" extra: "/extra/"
extra: "https://sleeptrip.ru/extra/" ask: "/ask/"
ask: "https://sleeptrip.ru/ask/" contacts: "/contacts/"
contacts: "https://sleeptrip.ru/contacts/" gallery: "/gallery/"
gallery: "https://sleeptrip.ru/gallery/"
+7 -8
View File
@@ -8,11 +8,10 @@ googleplus: "https://plus.google.com/"
lastfm: "https://last.fm/" lastfm: "https://last.fm/"
flickr: "https://flickr.com/" flickr: "https://flickr.com/"
telegram: "https://t.me/whilesleeping/" telegram: "https://t.me/whilesleeping/"
gallery: "https://sleeptrip.ru/gallery/" home: "/"
home: "https://sleeptrip.ru/" plan: "/plan/"
plan: "https://sleeptrip.ru/plan/" map: "/map/"
map: "https://sleeptrip.ru/map/" extra: "/extra/"
extra: "https://sleeptrip.ru/extra/" ask: "/ask/"
ask: "https://sleeptrip.ru/ask/" contacts: "/contacts/"
contacts: "https://sleeptrip.ru/contacts/" gallery: "/gallery/"
gallery: "https://sleeptrip.ru/gallery/"
+33 -29
View File
@@ -1,40 +1,44 @@
<div id="back-to-top" class="back-to-top-btn" onclick="scrollToTop()"> <div id="back-to-top" class="back-to-top-btn" onclick="scrollToTop()"
style="position: fixed; bottom: 30px; right: 30px; background: rgba(255, 255, 255, 0.15); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; width: 56px; height: 56px; cursor: pointer; font-size: 1.2rem; opacity: 0; visibility: hidden; z-index: 1000; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); transition: all 0.3s ease;">
</div> </div>
<style> <style>
.back-to-top-btn { #back-to-top.back-to-top-btn {
position: fixed; position: fixed !important;
bottom: 30px; bottom: 30px !important;
right: 30px; right: 30px !important;
background: rgba(24, 191, 239, 0.9); background: rgba(255, 255, 255, 0.15) !important;
color: #ffffff; background-color: rgba(255, 255, 255, 0.15) !important;
border: none; color: #ffffff !important;
border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3) !important;
width: 56px; border-radius: 50% !important;
height: 56px; width: 56px !important;
cursor: pointer; height: 56px !important;
font-size: 1.2rem; cursor: pointer !important;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 1.2rem !important;
opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
visibility: hidden; opacity: 0 !important;
z-index: 1000; visibility: hidden !important;
display: flex; z-index: 1000 !important;
align-items: center; display: flex !important;
justify-content: center; align-items: center !important;
box-shadow: 0 4px 12px rgba(24, 191, 239, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1); justify-content: center !important;
backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
backdrop-filter: blur(10px) !important;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
} }
.back-to-top-btn.show { #back-to-top.back-to-top-btn.show {
opacity: 1; opacity: 1 !important;
visibility: visible; visibility: visible !important;
} }
.back-to-top-btn:hover { #back-to-top.back-to-top-btn:hover {
background: rgba(24, 191, 239, 1); background: rgba(255, 255, 255, 0.25) !important;
transform: translateY(-2px) scale(1.05); background-color: rgba(255, 255, 255, 0.25) !important;
box-shadow: 0 8px 20px rgba(24, 191, 239, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2); transform: translateY(-2px) scale(1.05) !important;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
} }
.back-to-top-btn:active { .back-to-top-btn:active {
+15 -9
View File
@@ -1,11 +1,14 @@
/* Современная кнопка "Вернуться в начало" */ /* Современная кнопка "Вернуться в начало" */
.back-to-top-btn { .back-to-top-btn,
button.back-to-top-btn,
.back-to-top-btn.show {
position: fixed; position: fixed;
bottom: 30px; bottom: 30px;
right: 30px; right: 30px;
background: rgba(24, 191, 239, 0.9); background: rgba(255, 255, 255, 0.15) !important;
color: #ffffff; background-color: rgba(255, 255, 255, 0.15) !important;
border: none; color: #ffffff !important;
border: 1px solid rgba(255, 255, 255, 0.3) !important;
border-radius: 50%; border-radius: 50%;
width: 56px; width: 56px;
height: 56px; height: 56px;
@@ -18,8 +21,9 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
box-shadow: 0 4px 12px rgba(24, 191, 239, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
backdrop-filter: blur(10px); backdrop-filter: blur(10px) !important;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
} }
.back-to-top-btn.show { .back-to-top-btn.show {
@@ -27,10 +31,12 @@
visibility: visible; visibility: visible;
} }
.back-to-top-btn:hover { .back-to-top-btn:hover,
background: rgba(24, 191, 239, 1); button.back-to-top-btn:hover {
background: rgba(255, 255, 255, 0.25) !important;
background-color: rgba(255, 255, 255, 0.25) !important;
transform: translateY(-2px) scale(1.05); transform: translateY(-2px) scale(1.05);
box-shadow: 0 8px 20px rgba(24, 191, 239, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
} }
.back-to-top-btn:active { .back-to-top-btn:active {
@@ -1,4 +1,5 @@
<div id="global-back-to-top" class="back-to-top-btn" onclick="scrollToTop()"> <div id="global-back-to-top" class="back-to-top-btn" onclick="scrollToTop()"
style="position: fixed; bottom: 30px; right: 30px; background: rgba(255, 255, 255, 0.15); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; width: 56px; height: 56px; cursor: pointer; font-size: 1.2rem; opacity: 0; visibility: hidden; z-index: 1000; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); transition: all 0.3s ease;">
</div> </div>
@@ -22,9 +23,28 @@ window.addEventListener('scroll', function() {
const scrollPercent = (scrollTop + windowHeight) / documentHeight; const scrollPercent = (scrollTop + windowHeight) / documentHeight;
if (scrollPercent > 0.66) { // Показываем когда прокрутили 66% страницы if (scrollPercent > 0.66) { // Показываем когда прокрутили 66% страницы
backToTopBtn.classList.add('show'); backToTopBtn.style.opacity = '1';
backToTopBtn.style.visibility = 'visible';
} else { } else {
backToTopBtn.classList.remove('show'); backToTopBtn.style.opacity = '0';
backToTopBtn.style.visibility = 'hidden';
} }
}); });
// Добавляем hover эффекты
document.addEventListener('DOMContentLoaded', function() {
const backToTopBtn = document.getElementById('global-back-to-top');
backToTopBtn.addEventListener('mouseenter', function() {
this.style.background = 'rgba(255, 255, 255, 0.3)';
this.style.transform = 'translateY(-2px) scale(1.05)';
this.style.boxShadow = '0 6px 20px rgba(0, 0, 0, 0.4)';
});
backToTopBtn.addEventListener('mouseleave', function() {
this.style.background = 'rgba(255, 255, 255, 0.15)';
this.style.transform = 'translateY(0) scale(1)';
this.style.boxShadow = '0 4px 15px rgba(0, 0, 0, 0.2)';
});
});
</script> </script>