Updated notification page design
Deploy Frontend / build-and-deploy (push) Successful in 25s
Details
Deploy Frontend / build-and-deploy (push) Successful in 25s
Details
This commit is contained in:
parent
dc0d52921a
commit
2f67990cae
|
|
@ -377,53 +377,6 @@ export default function SendNotificationForm() {
|
||||||
</Stack>
|
</Stack>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
|
||||||
{/* ===== ПРЕВЬЮ TELEGRAM ===== */}
|
|
||||||
<Paper withBorder p="md" radius="md" style={{
|
|
||||||
background: 'linear-gradient(135deg, var(--mantine-color-gray-0), var(--mantine-color-gray-1))',
|
|
||||||
}}>
|
|
||||||
<Group gap="xs" mb="sm">
|
|
||||||
<IconEye size={16} color="var(--mantine-color-gray-6)" />
|
|
||||||
<Text size="sm" fw={600} c="dimmed">Как увидят в Telegram</Text>
|
|
||||||
</Group>
|
|
||||||
|
|
||||||
{/* Имитация Telegram bubble */}
|
|
||||||
<Paper
|
|
||||||
p="sm"
|
|
||||||
radius="md"
|
|
||||||
style={{
|
|
||||||
backgroundColor: 'var(--mantine-color-white)',
|
|
||||||
boxShadow: '0 1px 3px rgba(0,0,0,0.08)',
|
|
||||||
borderLeft: '3px solid var(--mantine-color-blue-5)',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{title.trim() && (
|
|
||||||
<Text fw={700} size="sm" mb={4} lineClamp={2}>
|
|
||||||
{title.trim()}
|
|
||||||
</Text>
|
|
||||||
)}
|
|
||||||
{photoPreviewUrl && (
|
|
||||||
<Image
|
|
||||||
src={photoPreviewUrl}
|
|
||||||
h={120}
|
|
||||||
radius="sm"
|
|
||||||
fit="cover"
|
|
||||||
mb={6}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<Text
|
|
||||||
size="sm"
|
|
||||||
lineClamp={6}
|
|
||||||
c={isMessageEmpty ? 'dimmed' : undefined}
|
|
||||||
style={{ whiteSpace: 'pre-wrap' }}
|
|
||||||
>
|
|
||||||
{isMessageEmpty ? 'Текст сообщения появится здесь...' : messageText}
|
|
||||||
</Text>
|
|
||||||
<Text size="xs" c="dimmed" ta="right" mt={4}>
|
|
||||||
{new Date().toLocaleTimeString('ru-RU', { hour: '2-digit', minute: '2-digit' })} ✓✓
|
|
||||||
</Text>
|
|
||||||
</Paper>
|
|
||||||
</Paper>
|
|
||||||
|
|
||||||
{/* Кнопка отправки */}
|
{/* Кнопка отправки */}
|
||||||
<Button
|
<Button
|
||||||
fullWidth
|
fullWidth
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue