From 798a27ad91a56b84cd00f33b80ea86b16d0d4367 Mon Sep 17 00:00:00 2001 From: pufok <127991427+pushokthefox@users.noreply.github.com> Date: Mon, 14 Apr 2025 22:28:58 +0300 Subject: [PATCH] major updates --- src/App.css | 37 +++++++++++++++++++++++++++++++++---- src/App.js | 4 ++++ src/pages/Contact.js | 6 +++--- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/src/App.css b/src/App.css index 72cf319..fa19c9b 100644 --- a/src/App.css +++ b/src/App.css @@ -7,14 +7,43 @@ body { font-family: jetbrains-mono, monospace; margin: 0; padding: 0; - background: #140f10; - color: rgb(241, 209, 190); + color: rgb(181, 221, 255); /* текст */ } +/* Контейнер для фона */ +.full-screen-background { + background-image: url('https://dafoxer.pufok.gay/PublicResources/bg.jpg'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + width: 100%; + height: 100vh; + position: absolute; /* Позиционируем фон за контентом */ + top: 0; + left: 0; + z-index: -1; /* Отправляем фон назад */ + opacity: 1; /* Прозрачность фона */ + mix-blend-mode: overlay; /* Режим наложения */ +} + +.full-screen-background::after { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.526); /* Затемнение */ + z-index: 0; +} + +/* Обёртка для всего контента */ .app { display: flex; flex-direction: column; min-height: 100vh; + position: relative; /* Делаем контент поверх фона */ + z-index: 1; /* Убеждаемся, что контент над фоном */ } .page { @@ -26,8 +55,8 @@ body { padding: 0; display: flex; gap: 1rem; - /* background: #18161f; */ padding: 1rem; + background: rgba(52, 6, 42, 0.8); /* Полупрозрачный фон для навбара */ } .navbar a { @@ -42,7 +71,7 @@ body { .footer { text-align: center; padding: 1.5rem; - /* background: #18161f; */ + background: rgba(52, 6, 42, 0.8); /* Полупрозрачный фон для футера */ color: rgb(238, 127, 75); margin-top: auto; } \ No newline at end of file diff --git a/src/App.js b/src/App.js index 4d8b65a..66983f5 100644 --- a/src/App.js +++ b/src/App.js @@ -11,6 +11,10 @@ import NotFound from './pages/NotFound.js'; function App() { return (
+ {/* Фоновый слой */} +
+ + {/* Контент поверх фона */} } /> diff --git a/src/pages/Contact.js b/src/pages/Contact.js index 16ed8fc..d96d0cd 100644 --- a/src/pages/Contact.js +++ b/src/pages/Contact.js @@ -7,10 +7,10 @@ function Contact() {

в разработке

Кнопочки

интересные кнопочки на другие ресурсы:

- + pufok.gay