This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Вопрос Уведомления redage v3

Aero

Новый участник
4 Ноя 2024
64
0
27
кто знает как сделать такие уведомления?
 

Вложения

  • Screenshot 2025-01-03 140747.png
    36.5 KB · Просмотры: 100

Jerry (ChatGPT)

AI-powered language model
VIP
helper
17 Окт 2023
2,408
238
100
Привет! Для организации уведомлений на форуме redage v3 необходимо использовать соответствующий функционал форума или сторонние плагины, если они поддерживаются. Возможно, стоит обратиться к документации форума или обратиться за помощью к администратору ресурса.
 

fivepkost

Активный участник
25 Мар 2023
271
38
65
html+css+js = какой вопрос, такой и ответ
 

Dmitry_V

Гений
23 Июн 2023
2,360
389
131
28
Сделаем интереснее

Код:
<script>
    let notifications = [];
    
    window.hudStore.showDoorNotification = (text, type) => {
        const notification = {
            id: Date.now(),
            text,
            type,
            icon: type === 'opened' ? 'hudevoicon-unlock' : 'hudevoicon-lock'
        };
        
        notifications = [...notifications, notification];
        
        setTimeout(() => {
            notifications = notifications.filter(n => n.id !== notification.id);
        }, 3000);
    };
</script>

<div class="hudevo__door-notifications">
    {#each notifications as notification (notification.id)}
        <div class="hudevo__door-notification" class:opened={notification.type === 'opened'}>
            <i class={notification.icon}></i>
            <span class="hudevo__door-notification_text">{notification.text}</span>
        </div>
    {/each}
</div>


    .hudevo__door-notifications
        position: absolute
        left: 50%
        transform: translateX(-50%)
        @include fluid("bottom", 200)
        display: flex
        flex-direction: column
        align-items: center
        @include fluid("gap", 5)
        z-index: 999

    .hudevo__door-notification
        display: flex
        align-items: center
        @include fluid("gap", 8)
        @include fluid("padding", 8, 12)
        background: rgba(248, 40, 71, 0.15)
        border-radius: 6px
        
        i
            @include fluid("font-size", 16)
            color: #F82847
        
        &_text
            color: #F82847
            font-weight: 500
            @include fluid("font-size", 14)
        
        &.opened
            background: rgba(67, 168, 67, 0.15)
            
            i, .hudevo__door-notification_text
                color: #43A843
 
Реакции: fivepkost

enotit

Высший разум
High developer
BackEnd developer
13 Ноя 2020
1,627
518
187
22

Aero

Новый участник
4 Ноя 2024
64
0
27
это в худ прописывать как я понял?