From e19bf32ac43ede4248145b9fa8d674d815c63d7c Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Thu, 30 Oct 2025 07:49:47 +0500 Subject: [PATCH] modified: main_dc/yalarba/easySite/easySite/app/composables/useTheme.ts modified: main_dc/yalarba/easySite/easySite/app/pages/index.vue add call to action card words --- .../easySite/app/composables/useTheme.ts | 6 +-- .../easySite/easySite/app/pages/index.vue | 47 ++++++++++++------- 2 files changed, 33 insertions(+), 20 deletions(-) diff --git a/main_dc/yalarba/easySite/easySite/app/composables/useTheme.ts b/main_dc/yalarba/easySite/easySite/app/composables/useTheme.ts index 9ca8a1c..d8cc3da 100644 --- a/main_dc/yalarba/easySite/easySite/app/composables/useTheme.ts +++ b/main_dc/yalarba/easySite/easySite/app/composables/useTheme.ts @@ -5,7 +5,7 @@ export const useTheme = () => { const setTheme = (newTheme: 'light' | 'dark') => { theme.value = newTheme - if (process.client) { + if (import.meta.client) { document.documentElement.setAttribute('data-theme', newTheme) localStorage.setItem('theme', newTheme) } @@ -18,7 +18,7 @@ export const useTheme = () => { const setFontSet = (newFontSet: 'modern' | 'elegant') => { fontSet.value = newFontSet - if (process.client) { + if (import.meta.client) { document.documentElement.setAttribute('data-font-set', newFontSet) localStorage.setItem('font-set', newFontSet) } @@ -31,7 +31,7 @@ export const useTheme = () => { // Инициализация при загрузке onMounted(() => { - if (process.client) { + if (import.meta.client) { const savedTheme = localStorage.getItem('theme') as 'light' | 'dark' const savedFontSet = localStorage.getItem('font-set') as 'modern' | 'elegant' const systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches diff --git a/main_dc/yalarba/easySite/easySite/app/pages/index.vue b/main_dc/yalarba/easySite/easySite/app/pages/index.vue index 5a618ad..af5912c 100644 --- a/main_dc/yalarba/easySite/easySite/app/pages/index.vue +++ b/main_dc/yalarba/easySite/easySite/app/pages/index.vue @@ -8,9 +8,18 @@
-

аккаунт

-

услуги

-

сайт

+
+ создавай +

аккаунт

+
+
+ добавляй +

услуги

+
+
+ получай +

сайт

+

легко и доступно

@@ -77,17 +86,20 @@ import Footer from '~/components/layout/Footer.vue' align-items: flex-start; gap: 1rem; width: 100%; - border: 1px solid #ffffff50; + border: 1px solid #ffffff20; border-radius: 1rem; padding: 2rem; - box-shadow: 2px 2px 4px #638370; + box-shadow: 2px 2px 4px #42b7d19a; } .hero-title { font-size: 3rem; font-weight: bold; - margin-bottom: 1.5rem; - line-height: 1.2; +} + +.T { + color: var(--text-secondary); + font-family: var(--font-accent); } .T1 { @@ -103,7 +115,7 @@ import Footer from '~/components/layout/Footer.vue' } .T4 { - margin: 0 auto; + margin: 0 auto; } .hero-subtitle { @@ -154,31 +166,32 @@ import Footer from '~/components/layout/Footer.vue' /* Футер остается внизу, но не влияет на высоту hero */ .footer { - flex-shrink: 0; /* Не сжимается */ + flex-shrink: 0; + /* Не сжимается */ } @media (max-width: 768px) { .hero-section { min-height: calc(100vh - 70px); } - + .hero-title { font-size: 2rem; } - + .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; } - + .search-box { flex-direction: column; } - + .search-button { width: 100%; } - + .hero-content { padding: 1rem 0; } @@ -188,16 +201,16 @@ import Footer from '~/components/layout/Footer.vue' .hero-title { font-size: 1.75rem; } - + .hero-subtitle { font-size: 0.9rem; } - + .search-input { padding: 0.75rem; font-size: 1rem; } - + .hero-section { min-height: calc(100vh - 60px); }