From 3b33418cd2046b8e448d565215f5b50c0df233b0 Mon Sep 17 00:00:00 2001 From: ChronosXYZ Date: Mon, 17 Jun 2024 02:16:04 +0300 Subject: [PATCH] Update site for the new iteration --- config.toml | 2 +- content/_index.md | 8 +-- content/mobile-apps.md | 4 +- themes/swr/assets/css/style.scss | 29 +++++------ themes/swr/layouts/_default/baseof.html | 64 ++++++++++++------------ themes/swr/layouts/partials/head.html | 3 +- themes/swr/layouts/section/schedule.html | 3 +- 7 files changed, 59 insertions(+), 54 deletions(-) diff --git a/config.toml b/config.toml index 52f8aab..5541aa8 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = 'https://southwestradio.ru/' +baseURL = 'https://radio.nexusnest.link/' languageCode = 'en-us' title = 'SouthWest Radio' theme = "swr" diff --git a/content/_index.md b/content/_index.md index 2b8fc79..0245c91 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,12 +1,12 @@ -**Радио Southwest** - некоммерческий проект свободного радио, созданный студентами университета РТУ МИРЭА. +**Радио Southwest** - некоммерческий проект свободного радио. Отбираем самую годную музыку без привязки к жанрам. Тщательно подобранный плейлист музыки будет сопровождать ваш день. Делаем все возможное, чтобы заслужить внимание ваших ушей. *Если у вас не работает веб-плеер, вы можете воспользоваться прямой ссылкой на поток*: -- [AAC 192kbps](https://azuracast.southwestradio.ru/listen/southwest_radio/radio.aac) (для пользователей iOS, macOS) -- [OGG 192kbps](https://azuracast.southwestradio.ru/listen/southwest_radio/radio.ogg) (для всех остальных) +- [AAC 192kbps](https://azuracast.nexusnest.link/listen/southwest_radio/radio.aac) (для пользователей iOS, macOS) +- [OGG 192kbps](https://azuracast.nexusnest.link/listen/southwest_radio/radio.ogg) (для всех остальных) -Веб-плеер на [отдельной странице](https://azuracast.southwestradio.ru/public/southwest_radio). Там можно посмотреть историю 5 последних проигранных треков, а так же голосовать за следующие треки из музыкальной базы радиостанции. +Веб-плеер на [отдельной странице](https://azuracast.nexusnest.link/public/southwest_radio). Там можно посмотреть историю 5 последних проигранных треков, а так же голосовать за следующие треки из музыкальной базы радиостанции. Кроме того, присутствует возможность прослушивать радиостанцию через [мобильные приложения](/mobile-apps/). diff --git a/content/mobile-apps.md b/content/mobile-apps.md index 0185656..9830198 100644 --- a/content/mobile-apps.md +++ b/content/mobile-apps.md @@ -8,10 +8,10 @@ 1. Открываете приложение Transistor 2. Нажимаете на кнопку "Add new station" - + 3. Вводите Southwest Radio в поле ввода 4. Выбираете найденную станцию и нажимаете кнопку "Add" - + 5. Нажимаете на добавленную радиостанцию, она начнет проигрываться. ## iOS diff --git a/themes/swr/assets/css/style.scss b/themes/swr/assets/css/style.scss index 2fcacb4..2390b35 100644 --- a/themes/swr/assets/css/style.scss +++ b/themes/swr/assets/css/style.scss @@ -10,7 +10,7 @@ body { padding: 0; margin: 0; background-attachment: fixed; - background-image: linear-gradient( rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) ),url('../background.jpg'); + background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)), url('../background.jpg'); backdrop-filter: blur(5px); height: 100%; } @@ -25,6 +25,7 @@ body { display: flex; padding: 16px; justify-content: space-evenly; + gap: 1em; } aside { @@ -34,19 +35,18 @@ aside { padding-top: 0; padding-bottom: 0; min-width: 5em; - align-self: start; + align-self: start; } #player { - margin-left: 2em; border: 1px solid; border-radius: 3mm; padding: 16px; - padding-bottom: 0; display: flex; justify-content: center; align-items: center; align-self: start; + height: 6.5em; } #content { @@ -55,7 +55,7 @@ aside { padding: 16px; padding-top: 0; padding-bottom: 0; - width: 30vw; + width: 50vw; } #nav { @@ -69,7 +69,6 @@ aside { display: flex; align-items: center; flex-direction: column; - margin-right: 2em; } #social-widescreen { @@ -94,8 +93,8 @@ a:hover { #calendar { display: flex; justify-content: center; - padding-top: 10px; - padding-bottom: 10px; + padding-top: 1em; + padding-bottom: 1em; } h1 { @@ -149,8 +148,9 @@ article { align-items: center; width: 85vw; padding-bottom: 0; + gap: 1.2em; } - + aside { width: 100%; margin: 0; @@ -163,23 +163,24 @@ article { #nav-wrapper { margin: 0; width: 100%; - margin-bottom: 16px; + order: 1; } - #content{ + #content { // max-width: 100%; width: 100%; - margin-bottom: 16px; max-width: unset; min-width: unset; + order: 3; } #player { + order: 2; width: 100%; margin: 0; padding: 16px; - padding-bottom: 0; align-self: unset; + height: 15vh; } body { @@ -204,7 +205,7 @@ article { #social-mobile { display: block; visibility: visible; - margin-top: 10px; + order: 4; // margin-bottom: 7px; } } \ No newline at end of file diff --git a/themes/swr/layouts/_default/baseof.html b/themes/swr/layouts/_default/baseof.html index c44b119..9e534fa 100644 --- a/themes/swr/layouts/_default/baseof.html +++ b/themes/swr/layouts/_default/baseof.html @@ -1,36 +1,38 @@ - {{- partial "head.html" . -}} - -
- {{- partial "header.html" . -}} -
- -
- {{- block "main" . }}{{- end }} -
-
-
- - -
-
- - +{{- partial "head.html" . -}} + + +
+ {{- partial "header.html" . -}} +
+ - {{- partial "footer.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+
+ +
+
+ + +
- - - + {{- partial "footer.html" . -}} +
+ + + + \ No newline at end of file diff --git a/themes/swr/layouts/partials/head.html b/themes/swr/layouts/partials/head.html index db45fd0..8f34361 100644 --- a/themes/swr/layouts/partials/head.html +++ b/themes/swr/layouts/partials/head.html @@ -1,9 +1,10 @@ {{ .Site.Title }} + {{ $sass := resources.Get "/css/style.scss" }} {{ $style := $sass | resources.ToCSS }} - + \ No newline at end of file diff --git a/themes/swr/layouts/section/schedule.html b/themes/swr/layouts/section/schedule.html index 45980fa..15dd875 100644 --- a/themes/swr/layouts/section/schedule.html +++ b/themes/swr/layouts/section/schedule.html @@ -1,5 +1,6 @@ {{ define "main" }}
- +
{{end}} \ No newline at end of file