Сделай красивей поменяй дизайн
- User
Сделай красивей поменяй дизайн
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Сделай красивей поменяй дизайн
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Конечно! Давай сделаем современный, стильный и уютный дизайн в стиле "glassmorphism" (стеклянные карточки, мягкие тени, плавные градиенты, акцентные цвета).
Также добавим плавные анимации, более выразительную типографику и адаптивность.
<script setup lang="ts">
import { Calendar } from "@/components/ui/calendar";
import { ref, computed } from "vue";
import {
today,
getLocalTimeZone,
type DateValue,
} from "@internationalized/date";
const value = ref<DateValue>(today(getLocalTimeZone()));
const plansMap = ref<Record<string, string>>({});
const formattedDate = computed(() => {
const date = value.value;
return `${date.day.toString().padStart(2, "0")}.${date.month
.toString()
.padStart(2, "0")}.${date.year}`;
});
const plans = computed({
get: () => plansMap.value[formattedDate.value] || "",
set: (val: string) => (plansMap.value[formattedDate.value] = val),
});
</script>
<template>
<div class="main-bg min-h-screen flex items-center justify-center px-2">
<div class="glass-card w-full max-w-2xl p-8 space-y-8 shadow-2xl">
<h1 class="text-4xl font-extrabold text-center text-white drop-shadow-lg tracking-tight">
Мой планировщик
</h1>
<Calendar
v-model="value"
:weekday-format="'short'"
class="rounded-2xl border-0 shadow-lg bg-transparent text-white calendar-glass"
/>
<div>
<h2 class="text-xl font-semibold mb-2 text-white/90 flex items-center gap-2">
<svg width="24" height="24" fill="none" class="inline-block text-blue-300">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2"/>
<path d="M12 6v6l4 2" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
{{ formattedDate }}
</h2>
<label for="plans" class="block mb-2 font-medium text-white/70"
>Планы на этот день:</label
>
<textarea
id="plans"
v-model="plans"
rows="5"
class="w-full p-4 rounded-xl border-0 shadow-inner bg-white/20 text-white placeholder-white/60 focus:ring-2 focus:ring-blue-400 focus:outline-none resize-none backdrop-blur-md transition-all duration-200"
placeholder="Введите ваши планы..."
></textarea>
</div>
</div>
</div>
</template>
<style scoped>
.main-bg {
/* Градиентный фон */
background: linear-gradient(135deg, #232946 0%, #1a1a2e 100%);
min-height: 100vh;
}
.glass-card {
background: rgba(255,255,255,0.10);
border-radius: 2rem;
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
border: 1.5px solid rgba(255,255,255,0.18);
transition: box-shadow 0.3s;
}
.glass-card:hover {
box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}
textarea {
font-family: "Inter", system-ui, sans-serif;
font-size: 1.1rem;
line-height: 1.5;
transition: box-shadow 0.2s;
}
textarea:focus {
box-shadow: 0 0 0 3px #3b82f6aa;
}
.calendar-glass {
/* Прозрачный фон для календаря */
background: rgba(255,255,255,0.08) !important;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 1.5rem;
border: 1px solid rgba(255,255,255,0.18);
box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.18);
margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
.glass-card {
padding: 1.2rem;
border-radius: 1rem;
}
h1 {
font-size: 2rem;
}
}
</style>
Если хочешь добавить переключение тем или другие фишки — пиши!
Этот дизайн отлично подойдёт для личного планировщика или дневника.
Используй только тайвинд
Конечно! Вот современный, стильный и уютный дизайн с glassmorphism и акцентами, реализованный только с Tailwind CSS (никаких кастомных CSS, только классы Tailwind).
Всё адаптивно, с плавными эффектами, красивой типографикой и современным фоном.
<script setup lang="ts">
import { Calendar } from "@/components/ui/calendar";
import { ref, computed } from "vue";
import {
today,
getLocalTimeZone,
type DateValue,
} from "@internationalized/date";
const value = ref<DateValue>(today(getLocalTimeZone()));
const plansMap = ref<Record<string, string>>({});
const formattedDate = computed(() => {
const date = value.value;
return `${date.day.toString().padStart(2, "0")}.${date.month
.toString()
.padStart(2, "0")}.${date.year}`;
});
const plans = computed({
get: () => plansMap.value[formattedDate.value] || "",
set: (val: string) => (plansMap.value[formattedDate.value] = val),
});
</script>
<template>
<div class="min-h-screen flex items-center justify-center bg-gradient-to-br from-[#232946] via-[#1a1a2e] to-[#0f3460] px-2">
<div class="w-full max-w-2xl p-8 sm:p-10 rounded-3xl bg-white/10 backdrop-blur-xl border border-white/20 shadow-2xl space-y-8 transition-shadow duration-300 hover:shadow-[0_12px_40px_0_rgba(31,38,135,0.45)]">
<h1 class="text-4xl font-extrabold text-center text-white drop-shadow-lg tracking-tight">
Мой планировщик
</h1>
<Calendar
v-model="value"
:weekday-format="'short'"
class="rounded-2xl border-0 shadow-lg bg-white/10 backdrop-blur-md text-white mb-6"
/>
<div>
<h2 class="text-xl font-semibold mb-2 text-white/90 flex items-center gap-2">
<svg width="24" height="24" fill="none" class="inline-block text-blue-300">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2"/>
<path d="M12 6v6l4 2" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
{{ formattedDate }}
</h2>
<label for="plans" class="block mb-2 font-medium text-white/70"
>Планы на этот день:</label
>
<textarea
id="plans"
v-model="plans"
rows="5"
class="w-full p-4 rounded-xl border-0 shadow-inner bg-white/20 text-white placeholder-white/60 focus:ring-2 focus:ring-blue-400 focus:outline-none resize-none backdrop-blur-md transition-all duration-200 font-medium text-lg"
placeholder="Введите ваши планы..."
></textarea>
</div>
</div>
</div>
</template>
Особенности:
bg-white/10, backdrop-blur-xl, прозрачные карточки.Если хочешь добавить переключатель тем или другие фишки — пиши!