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
This commit is contained in:
2025-10-30 07:49:47 +05:00
parent 3a138924c3
commit e19bf32ac4
2 changed files with 33 additions and 20 deletions
@@ -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
@@ -8,9 +8,18 @@
<div class="container">
<div class="hero-content">
<div class="hero-text">
<h1 class="hero-title T1">аккаунт</h1>
<h1 class="hero-title T2">услуги</h1>
<h1 class="hero-title T3">сайт</h1>
<div>
<text class="T1 T">создавай</text>
<h1 class="hero-title">аккаунт</h1>
</div>
<div class="T2 T">
<text>добавляй</text>
<h1 class="hero-title">услуги</h1>
</div>
<div class="T3 T">
<text>получай</text>
<h1 class="hero-title">сайт</h1>
</div>
<p class="hero-subtitle T4">легко и доступно</p>
</div>
</div>
@@ -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 {
@@ -154,7 +166,8 @@ import Footer from '~/components/layout/Footer.vue'
/* Футер остается внизу, но не влияет на высоту hero */
.footer {
flex-shrink: 0; /* Не сжимается */
flex-shrink: 0;
/* Не сжимается */
}
@media (max-width: 768px) {