Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Как зделать виджет панели пользователя?

Июл
35
6
Пользователь
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRMP Profile Widget</title>

<style>
* {
box-sizing: border-box;
}

body {
margin: 0;
padding: 20px 0;
min-height: 100vh;
background: #0d0d0d;
color: #eee;
font-family: Arial, Helvetica, sans-serif;
}

.crmp-profile-widget {
--gold: #ffb52b;
width: calc(100% - 28px);
max-width: 650px;
margin: 18px auto;
padding: 30px 24px 26px;
background:
radial-gradient(circle at 50% -20%, rgba(255,181,43,.06), transparent 45%),
linear-gradient(145deg, #111111, #101010);
border: 1px solid rgba(255,181,43,.27);
border-radius: 15px;
position: relative;
overflow: hidden;
}

.crmp-profile-head {
position: relative;
text-align: center;
padding-bottom: 26px;
border-bottom: 1px solid rgba(255,181,43,.20);
}

.crmp-profile-avatar {
width: 105px;
height: 105px;
border-radius: 50%;
padding: 4px;
margin: 0 auto 18px;
background: linear-gradient(135deg, #ffb52b, #e88d00);
box-shadow:
0 0 0 1px rgba(255,181,43,.25),
0 0 22px rgba(255,181,43,.08);
}

.crmp-profile-avatar img {
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 3px solid #111;
}

.crmp-profile-close {
position: absolute;
right: 0;
top: -2px;
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
border: 1px solid rgba(255,181,43,.28);
background: rgba(255,181,43,.08);
color: var(--gold);
font-size: 31px;
font-weight: 700;
}

.crmp-profile-name {
margin: 0;
color: var(--gold);
font-size: 30px;
line-height: 1.2;
font-weight: 700;
}

.crmp-profile-rank {
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: 12px;
padding: 10px 18px;
border: 1px solid rgba(255,181,43,.22);
border-radius: 7px;
background: rgba(255,181,43,.07);
color: #aaa;
font-size: 17px;
}

.crmp-profile-stats {
display: grid;
grid-template-columns: 1fr;
gap: 13px;
margin-top: 26px;
}

.crmp-profile-stat {
min-height: 122px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid rgba(255,181,43,.18);
border-radius: 10px;
background: linear-gradient(145deg, #171717, #151515);
transition: .2s ease;
}

.crmp-profile-stat:hover {
transform: translateY(-2px);
border-color: rgba(255,181,43,.4);
}

.crmp-profile-stat-value {
color: var(--gold);
font-size: 29px;
line-height: 1;
font-weight: 700;
}

.crmp-profile-stat-label {
margin-top: 12px;
color: #aaa;
font-size: 18px;
text-transform: uppercase;
}

.crmp-profile-menu {
display: grid;
gap: 13px;
margin-top: 40px;
}

.crmp-profile-button {
min-height: 80px;
padding: 0 28px;
display: flex;
align-items: center;
gap: 22px;
border: 1px solid rgba(255,255,255,.055);
border-radius: 10px;
background: #171717;
color: #ddd;
text-decoration: none;
font-size: 24px;
font-weight: 600;
transition: .2s ease;
}

.crmp-profile-button:hover {
background: #1c1c1c;
border-color: rgba(255,181,43,.25);
color: #fff;
transform: translateX(2px);
}

.crmp-profile-button-icon {
width: 34px;
min-width: 34px;
display: flex;
align-items: center;
justify-content: center;
color: var(--gold);
font-size: 27px;
}

.crmp-profile-button.logout {
color: var(--gold);
background: linear-gradient(
90deg,
rgba(255,181,43,.09),
rgba(255,181,43,.055)
);
border-color: rgba(255,181,43,.4);
}

@media (max-width: 600px) {
.crmp-profile-widget {
width: calc(100% - 20px);
margin: 12px auto;
padding: 30px 14px 22px;
}

.crmp-profile-name {
font-size: 30px;
}

.crmp-profile-button {
min-height: 80px;
padding: 0 28px;
font-size: 23px;
}
}

@media (max-width: 380px) {
.crmp-profile-widget {
padding-left: 11px;
padding-right: 11px;
}

.crmp-profile-name {
font-size: 26px;
}

.crmp-profile-button {
padding: 0 20px;
font-size: 20px;
}
}
</style>
</head>

<body>

<div class="crmp-profile-widget">

<div class="crmp-profile-head">

<div class="crmp-profile-close">×</div>

<div class="crmp-profile-avatar">
<img src="https://i.pravatar.cc/300?img=12" alt="Аватар">
</div>

<div class="crmp-profile-name">
Shon_Takers
</div>

<div class="crmp-profile-rank">
Основатель
</div>

</div>

<div class="crmp-profile-stats">

<div class="crmp-profile-stat">
<div class="crmp-profile-stat-value">4</div>
<div class="crmp-profile-stat-label">Сообщений</div>
</div>

<div class="crmp-profile-stat">
<div class="crmp-profile-stat-value">0</div>
<div class="crmp-profile-stat-label">Реакций</div>
</div>

<div class="crmp-profile-stat">
<div class="crmp-profile-stat-value">07.06.26</div>
<div class="crmp-profile-stat-label">Регистрация</div>
</div>

</div>

<div class="crmp-profile-menu">

<a href="#" class="crmp-profile-button">
<span class="crmp-profile-button-icon">⚙</span>
<span>Настройки</span>
</a>

<a href="#" class="crmp-profile-button">
<span class="crmp-profile-button-icon">✉</span>
<span>Диалоги</span>
</a>

<a href="#" class="crmp-profile-button">
<span class="crmp-profile-button-icon">♟</span>
<span>Уведомления</span>
</a>

<a href="#" class="crmp-profile-button logout">
<span class="crmp-profile-button-icon">↪</span>
<span>Выйти</span>
</a>

</div>

</div>

</body>
</html>
Попытался сделать что-то подобное мб понравится
 
Окт
708
1,554
Активный
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRMP Profile Widget</title>

<style>
* {
box-sizing: border-box;
}

body {
margin: 0;
padding: 20px 0;
min-height: 100vh;
background: #0d0d0d;
color: #eee;
font-family: Arial, Helvetica, sans-serif;
}

.crmp-profile-widget {
--gold: #ffb52b;
width: calc(100% - 28px);
max-width: 650px;
margin: 18px auto;
padding: 30px 24px 26px;
background:
radial-gradient(circle at 50% -20%, rgba(255,181,43,.06), transparent 45%),
linear-gradient(145deg, #111111, #101010);
border: 1px solid rgba(255,181,43,.27);
border-radius: 15px;
position: relative;
overflow: hidden;
}

.crmp-profile-head {
position: relative;
text-align: center;
padding-bottom: 26px;
border-bottom: 1px solid rgba(255,181,43,.20);
}

.crmp-profile-avatar {
width: 105px;
height: 105px;
border-radius: 50%;
padding: 4px;
margin: 0 auto 18px;
background: linear-gradient(135deg, #ffb52b, #e88d00);
box-shadow:
0 0 0 1px rgba(255,181,43,.25),
0 0 22px rgba(255,181,43,.08);
}

.crmp-profile-avatar img {
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 3px solid #111;
}

.crmp-profile-close {
position: absolute;
right: 0;
top: -2px;
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
border: 1px solid rgba(255,181,43,.28);
background: rgba(255,181,43,.08);
color: var(--gold);
font-size: 31px;
font-weight: 700;
}

.crmp-profile-name {
margin: 0;
color: var(--gold);
font-size: 30px;
line-height: 1.2;
font-weight: 700;
}

.crmp-profile-rank {
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: 12px;
padding: 10px 18px;
border: 1px solid rgba(255,181,43,.22);
border-radius: 7px;
background: rgba(255,181,43,.07);
color: #aaa;
font-size: 17px;
}

.crmp-profile-stats {
display: grid;
grid-template-columns: 1fr;
gap: 13px;
margin-top: 26px;
}

.crmp-profile-stat {
min-height: 122px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid rgba(255,181,43,.18);
border-radius: 10px;
background: linear-gradient(145deg, #171717, #151515);
transition: .2s ease;
}

.crmp-profile-stat:hover {
transform: translateY(-2px);
border-color: rgba(255,181,43,.4);
}

.crmp-profile-stat-value {
color: var(--gold);
font-size: 29px;
line-height: 1;
font-weight: 700;
}

.crmp-profile-stat-label {
margin-top: 12px;
color: #aaa;
font-size: 18px;
text-transform: uppercase;
}

.crmp-profile-menu {
display: grid;
gap: 13px;
margin-top: 40px;
}

.crmp-profile-button {
min-height: 80px;
padding: 0 28px;
display: flex;
align-items: center;
gap: 22px;
border: 1px solid rgba(255,255,255,.055);
border-radius: 10px;
background: #171717;
color: #ddd;
text-decoration: none;
font-size: 24px;
font-weight: 600;
transition: .2s ease;
}

.crmp-profile-button:hover {
background: #1c1c1c;
border-color: rgba(255,181,43,.25);
color: #fff;
transform: translateX(2px);
}

.crmp-profile-button-icon {
width: 34px;
min-width: 34px;
display: flex;
align-items: center;
justify-content: center;
color: var(--gold);
font-size: 27px;
}

.crmp-profile-button.logout {
color: var(--gold);
background: linear-gradient(
90deg,
rgba(255,181,43,.09),
rgba(255,181,43,.055)
);
border-color: rgba(255,181,43,.4);
}

@media (max-width: 600px) {
.crmp-profile-widget {
width: calc(100% - 20px);
margin: 12px auto;
padding: 30px 14px 22px;
}

.crmp-profile-name {
font-size: 30px;
}

.crmp-profile-button {
min-height: 80px;
padding: 0 28px;
font-size: 23px;
}
}

@media (max-width: 380px) {
.crmp-profile-widget {
padding-left: 11px;
padding-right: 11px;
}

.crmp-profile-name {
font-size: 26px;
}

.crmp-profile-button {
padding: 0 20px;
font-size: 20px;
}
}
</style>
</head>

<body>

<div class="crmp-profile-widget">

<div class="crmp-profile-head">

<div class="crmp-profile-close">×</div>

<div class="crmp-profile-avatar">
<img src="https://i.pravatar.cc/300?img=12" alt="Аватар">
</div>

<div class="crmp-profile-name">
Shon_Takers
</div>

<div class="crmp-profile-rank">
Основатель
</div>

</div>

<div class="crmp-profile-stats">

<div class="crmp-profile-stat">
<div class="crmp-profile-stat-value">4</div>
<div class="crmp-profile-stat-label">Сообщений</div>
</div>

<div class="crmp-profile-stat">
<div class="crmp-profile-stat-value">0</div>
<div class="crmp-profile-stat-label">Реакций</div>
</div>

<div class="crmp-profile-stat">
<div class="crmp-profile-stat-value">07.06.26</div>
<div class="crmp-profile-stat-label">Регистрация</div>
</div>

</div>

<div class="crmp-profile-menu">

<a href="#" class="crmp-profile-button">
<span class="crmp-profile-button-icon">⚙</span>
<span>Настройки</span>
</a>

<a href="#" class="crmp-profile-button">
<span class="crmp-profile-button-icon">✉</span>
<span>Диалоги</span>
</a>

<a href="#" class="crmp-profile-button">
<span class="crmp-profile-button-icon">♟</span>
<span>Уведомления</span>
</a>

<a href="#" class="crmp-profile-button logout">
<span class="crmp-profile-button-icon">↪</span>
<span>Выйти</span>
</a>

</div>

</div>

</body>
</html>
Попытался сделать что-то подобное мб понравится
шикарный код
 
Фев
193
440
Пользователь
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRMP Profile Widget</title>

<style>
* {
box-sizing: border-box;
}

body {
margin: 0;
padding: 20px 0;
min-height: 100vh;
background: #0d0d0d;
color: #eee;
font-family: Arial, Helvetica, sans-serif;
}

.crmp-profile-widget {
--gold: #ffb52b;
width: calc(100% - 28px);
max-width: 650px;
margin: 18px auto;
padding: 30px 24px 26px;
background:
radial-gradient(circle at 50% -20%, rgba(255,181,43,.06), transparent 45%),
linear-gradient(145deg, #111111, #101010);
border: 1px solid rgba(255,181,43,.27);
border-radius: 15px;
position: relative;
overflow: hidden;
}

.crmp-profile-head {
position: relative;
text-align: center;
padding-bottom: 26px;
border-bottom: 1px solid rgba(255,181,43,.20);
}

.crmp-profile-avatar {
width: 105px;
height: 105px;
border-radius: 50%;
padding: 4px;
margin: 0 auto 18px;
background: linear-gradient(135deg, #ffb52b, #e88d00);
box-shadow:
0 0 0 1px rgba(255,181,43,.25),
0 0 22px rgba(255,181,43,.08);
}

.crmp-profile-avatar img {
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 3px solid #111;
}

.crmp-profile-close {
position: absolute;
right: 0;
top: -2px;
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
border: 1px solid rgba(255,181,43,.28);
background: rgba(255,181,43,.08);
color: var(--gold);
font-size: 31px;
font-weight: 700;
}

.crmp-profile-name {
margin: 0;
color: var(--gold);
font-size: 30px;
line-height: 1.2;
font-weight: 700;
}

.crmp-profile-rank {
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: 12px;
padding: 10px 18px;
border: 1px solid rgba(255,181,43,.22);
border-radius: 7px;
background: rgba(255,181,43,.07);
color: #aaa;
font-size: 17px;
}

.crmp-profile-stats {
display: grid;
grid-template-columns: 1fr;
gap: 13px;
margin-top: 26px;
}

.crmp-profile-stat {
min-height: 122px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid rgba(255,181,43,.18);
border-radius: 10px;
background: linear-gradient(145deg, #171717, #151515);
transition: .2s ease;
}

.crmp-profile-stat:hover {
transform: translateY(-2px);
border-color: rgba(255,181,43,.4);
}

.crmp-profile-stat-value {
color: var(--gold);
font-size: 29px;
line-height: 1;
font-weight: 700;
}

.crmp-profile-stat-label {
margin-top: 12px;
color: #aaa;
font-size: 18px;
text-transform: uppercase;
}

.crmp-profile-menu {
display: grid;
gap: 13px;
margin-top: 40px;
}

.crmp-profile-button {
min-height: 80px;
padding: 0 28px;
display: flex;
align-items: center;
gap: 22px;
border: 1px solid rgba(255,255,255,.055);
border-radius: 10px;
background: #171717;
color: #ddd;
text-decoration: none;
font-size: 24px;
font-weight: 600;
transition: .2s ease;
}

.crmp-profile-button:hover {
background: #1c1c1c;
border-color: rgba(255,181,43,.25);
color: #fff;
transform: translateX(2px);
}

.crmp-profile-button-icon {
width: 34px;
min-width: 34px;
display: flex;
align-items: center;
justify-content: center;
color: var(--gold);
font-size: 27px;
}

.crmp-profile-button.logout {
color: var(--gold);
background: linear-gradient(
90deg,
rgba(255,181,43,.09),
rgba(255,181,43,.055)
);
border-color: rgba(255,181,43,.4);
}

@media (max-width: 600px) {
.crmp-profile-widget {
width: calc(100% - 20px);
margin: 12px auto;
padding: 30px 14px 22px;
}

.crmp-profile-name {
font-size: 30px;
}

.crmp-profile-button {
min-height: 80px;
padding: 0 28px;
font-size: 23px;
}
}

@media (max-width: 380px) {
.crmp-profile-widget {
padding-left: 11px;
padding-right: 11px;
}

.crmp-profile-name {
font-size: 26px;
}

.crmp-profile-button {
padding: 0 20px;
font-size: 20px;
}
}
</style>
</head>

<body>

<div class="crmp-profile-widget">

<div class="crmp-profile-head">

<div class="crmp-profile-close">×</div>

<div class="crmp-profile-avatar">
<img src="https://i.pravatar.cc/300?img=12" alt="Аватар">
</div>

<div class="crmp-profile-name">
Shon_Takers
</div>

<div class="crmp-profile-rank">
Основатель
</div>

</div>

<div class="crmp-profile-stats">

<div class="crmp-profile-stat">
<div class="crmp-profile-stat-value">4</div>
<div class="crmp-profile-stat-label">Сообщений</div>
</div>

<div class="crmp-profile-stat">
<div class="crmp-profile-stat-value">0</div>
<div class="crmp-profile-stat-label">Реакций</div>
</div>

<div class="crmp-profile-stat">
<div class="crmp-profile-stat-value">07.06.26</div>
<div class="crmp-profile-stat-label">Регистрация</div>
</div>

</div>

<div class="crmp-profile-menu">

<a href="#" class="crmp-profile-button">
<span class="crmp-profile-button-icon">⚙</span>
<span>Настройки</span>
</a>

<a href="#" class="crmp-profile-button">
<span class="crmp-profile-button-icon">✉</span>
<span>Диалоги</span>
</a>

<a href="#" class="crmp-profile-button">
<span class="crmp-profile-button-icon">♟</span>
<span>Уведомления</span>
</a>

<a href="#" class="crmp-profile-button logout">
<span class="crmp-profile-button-icon">↪</span>
<span>Выйти</span>
</a>

</div>

</div>

</body>
</html>
Попытался сделать что-то подобное мб понравится
477f8e8a9f9a41f5f1497984cfab011a.jpg
не ты? Всегда проигрывающий
 
Июл
35
6
Пользователь
базару нет ии, но все равно твой код не будет никак работать
Написано же попытался, если у него есть желание пусть доработает так же через ии, ему 7 дней не отвечали, я ему дал надежду, т.к никто ему не сольет это
 
Фев
193
440
Пользователь
Написано же попытался, если у него есть желание пусть доработает так же через ии, ему 7 дней не отвечали, я ему дал надежду, т.к никто ему не сольет это
сольет как минимум алекс он хотел это сделать но из-за некого человека у него желание отпало
 
Фев
193
440
Пользователь
Оригинал.
Код:
<div class="block" data-widget-definition="th_userNavigation">
    <div class="block-container block-container--noStripRadius" style="background: #141417; border: 1px solid #444; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.3);">
        <h3 class="block-minorHeader" style="background: linear-gradient(135deg, #ff8400 0%, #ffa600 100%); margin: -1px -1px 0 -1px; padding: 12px 15px; border-radius: 11px 11px 0 0; text-align: center;">
            <b style="margin: 0; color: white; font-size: 1.1em; text-shadow: 0 1px 2px rgba(0,0,0,0.3);">
                <i style="font-family: 'Font Awesome 5 Pro'; margin-right: 8px;" class="fas fa-user"></i>
                Меню пользователя
            </b>
        </h3>
        <div class="block-body" style="padding: 15px;">
            <xf:if is="$xf.visitor.user_id">
                <div class="user-menu-buttons" style="display: flex; flex-direction: column; gap: 8px;">
                    <a class="blockLink rippleButton" href="{{ link('members', $xf.visitor) }}" style="background: #242429; color: white; padding: 10px 15px; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; border: 1px solid #555; display: flex; align-items: center;">
                        <i class="fas fa-id-card" style="margin-right: 10px; width: 16px;"></i>
                        {{ phrase('th_profile_uix') }}
                    </a>
                    <a class="blockLink rippleButton" href="{{ link('account/account-details') }}" style="background: #242429; color: white; padding: 10px 15px; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; border: 1px solid #555; display: flex; align-items: center;">
                        <i class="fas fa-cog" style="margin-right: 10px; width: 16px;"></i>
                        {{ phrase('account_details') }}
                    </a>
                    <a class="blockLink rippleButton" href="{{ link('whats-new/news-feed') }}" style="background: #242429; color: white; padding: 10px 15px; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; border: 1px solid #555; display: flex; align-items: center;">
                        <i class="fas fa-rss" style="margin-right: 10px; width: 16px;"></i>
                        {{ phrase('news_feed') }}
                    </a>
                    <a class="blockLink rippleButton" href="{{ link('logout', null, {'t': csrf_token()}) }}" style="background: #242429; color: white; padding: 10px 15px; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; border: 1px solid #555; display: flex; align-items: center;">
                        <i class="fas fa-sign-out-alt" style="margin-right: 10px; width: 16px;"></i>
                        {{ phrase('log_out') }}
                    </a>
                </div>
            <xf:else />
                <a class="blockLink rippleButton" href="{{ link('login') }}" style="background: linear-gradient(135deg, #ff8400 0%, #ffa600 100%); color: white; padding: 12px 20px; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; border: none; display: block; text-align: center; font-weight: bold; font-size: 1.1em;">
                    <i class="fas fa-sign-in-alt" style="margin-right: 10px;"></i>
                    {{ phrase('login') }}
                </a>
            </xf:if>
        </div>
    </div>
</div>
Не вижу чёт оригинала,текста и другого нет вообще)
 
Сверху