edit styles

This commit is contained in:
smanylov
2026-01-18 16:27:09 +07:00
parent a9c85570b7
commit 7a03b0bc2e
9 changed files with 253 additions and 106 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "no-copy-frontend", "name": "no-copy-frontend",
"version": "0.18.0", "version": "0.19.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 2999", "dev": "next dev -p 2999",
+3 -2
View File
@@ -7,16 +7,17 @@ import CommissionLevels from '@/app/ui/referral-page/commission-levels';
import InvitationsTable from '@/app/ui/referral-page/invitations-table'; import InvitationsTable from '@/app/ui/referral-page/invitations-table';
import IncomeAndPayments from '@/app/ui/referral-page/Income-and-payments'; import IncomeAndPayments from '@/app/ui/referral-page/Income-and-payments';
import SettingReferralProgram from '@/app/ui/referral-page/setting-referral-program'; import SettingReferralProgram from '@/app/ui/referral-page/setting-referral-program';
import PageTitleColorFrame from '@/app/ui/page-title-color-frame';
export default function Page() { export default function Page() {
const t = useTranslations('Global'); const t = useTranslations('Global');
return ( return (
<Suspense fallback={<>...</>}> <Suspense fallback={<>...</>}>
<PageTitle title="refferal-program" /> <PageTitleColorFrame title="refferal-program" description="referral-program-description" />
<CommissionLevels />
<ReferralStats /> <ReferralStats />
<ReferralLinkSection /> <ReferralLinkSection />
<CommissionLevels />
<InvitationsTable /> <InvitationsTable />
<IncomeAndPayments /> <IncomeAndPayments />
<SettingReferralProgram /> <SettingReferralProgram />
+1
View File
@@ -408,6 +408,7 @@
border-radius: 0.375rem; border-radius: 0.375rem;
box-shadow: 0 1px 2px 0 v.$shadow-1; box-shadow: 0 1px 2px 0 v.$shadow-1;
transition: background-color 0.2s; transition: background-color 0.2s;
cursor: pointer;
&:hover { &:hover {
background-color: #f9fafb; background-color: #f9fafb;
+219 -67
View File
@@ -840,39 +840,64 @@
.referral-stats-grid { .referral-stats-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-template-columns: repeat(5, 1fr);
gap: 25px; gap: 16px;
margin-bottom: 40px; margin-bottom: 24px;
.stat-card { .stat-card {
background: white; background: white;
padding: 30px; padding: 18px;
border-radius: 20px; border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
border: 1px solid v.$b-color-1; text-align: center;
transition: all 0.3s ease;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
transition: all 0.3s ease; border: 2px solid #e2e8f0;
&::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
transition: left 0.5s ease;
}
&:hover {
transform: translateY(-4px);
box-shadow: 0 12px 35px rgba(99, 102, 241, 0.15);
border-color: #667eea;
&::before {
left: 100%;
}
}
.icon { .icon {
font-size: 48px; font-size: 2rem;
margin-bottom: 15px; margin-bottom: 8px;
display: inline-block; display: inline-block;
} }
.value { .value {
font-size: 32px; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
margin-bottom: 8px; margin-bottom: 6px;
background: linear-gradient(135deg, #6366f1, #8b5cf6); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
background-clip: text; background-clip: text;
} }
.label { .label {
font-size: 16px; font-size: 0.8rem;
color: v.$text-s; color: #64748b;
font-weight: 500; font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
} }
} }
} }
@@ -888,30 +913,39 @@
.referral-link-input { .referral-link-input {
display: flex; display: flex;
gap: 15px; gap: 15px;
max-width: 600px; max-width: 700px;
margin: 20px auto; margin: 20px auto;
#referral-link { #referral-link {
display: flex;
flex: 1; flex: 1;
padding: 10px 20px; padding: 10px;
border: 2px solid v.$b-color-1; border: 2px solid #e2e8f0;
border-radius: 12px; border-radius: 12px;
font-size: 14px; font-size: 14px;
background: #f9fafb; background: #f8f9fa;
white-space: nowrap; color: #1e293b;
display: flex; font-weight: 500;
align-items: center; align-items: center;
justify-content: center;
white-space: nowrap;
} }
.copy-btn { .copy-btn {
padding: 10px 30px; padding: 14px 28px;
background: linear-gradient(135deg, #10b981, #059669); background: linear-gradient(135deg, #667eea, #764ba2);
color: white; color: white;
border: none; border: none;
border-radius: 12px; border-radius: 12px;
font-weight: 600; font-weight: 700;
cursor: pointer; cursor: pointer;
transition: all 0.3s; transition: all 0.3s ease;
white-space: nowrap;
&:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}
} }
} }
@@ -922,51 +956,86 @@
} }
.section-title { .section-title {
font-size: 24px; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
margin-bottom: 25px; color: #1e293b;
color: v.$text-p;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 15px; gap: 12px;
margin-bottom: 20px;
&::before {
content: '';
width: 8px;
height: 8px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 50%;
}
} }
.commission-levels { .commission-levels {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-template-columns: repeat(4, 1fr);
gap: 20px; gap: 20px;
margin-top: 20px; margin-top: 20px;
.level-card { .level-card {
padding: 20px; background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
border-radius: 15px; border: 2px solid #e2e8f0;
border-radius: 16px;
padding: 18px;
text-align: center; text-align: center;
border: 2px solid; transition: all 0.3s ease;
position: relative; position: relative;
}
.level-bronze { &:hover {
background: linear-gradient(135deg, #fef3c7, #fde68a); transform: translateY(-4px);
border-color: #f59e0b; border-color: #667eea;
color: #92400e; box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
} }
.level-silver { &.active {
background: linear-gradient(135deg, #f3f4f6, #d1d5db); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-color: v.$text-s; border-color: #667eea;
color: v.$text-s; color: white;
}
.level-gold { .level-requirement {
background: linear-gradient(135deg, #fef3c7, #fcd34d); color: rgba(255, 255, 255, 0.9);
border-color: #f59e0b; }
color: #92400e;
}
.level-platinum { .level-commission {
background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: white;
border-color: #8b5cf6; background: none;
color: #5b21b6; -webkit-text-fill-color: white;
}
}
.level-number {
font-size: 1.5rem;
font-weight: 800;
margin-bottom: 6px;
}
.level-commission {
font-size: 1.4rem;
font-weight: 700;
margin-bottom: 10px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background-clip: text;
-webkit-text-fill-color: transparent;
}
.level-subscribe {
font-weight: 700;
color: #1e293b;
margin-bottom: 4px;
}
.level-requirement {
font-size: 0.9rem;
color: #64748b;
margin-top: 8px;
}
} }
&-footer { &-footer {
@@ -1001,22 +1070,26 @@
padding: 25px; padding: 25px;
border-radius: 15px; border-radius: 15px;
border: 1px solid #bae6fd; border: 1px solid #bae6fd;
text-align: center;
&.success { &.success {
background: linear-gradient(135deg, #f0fdf4, #dcfce7); background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
border-color: #bbf7d0; border-color: #bbf7d0;
}
&.warning { p {
background: linear-gradient(135deg, #fffbeb, #fef3c7); color: white;
border-color: #fed7aa; background: white;
background-clip: text;
}
} }
p { p {
font-size: 24px; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
margin: 10px 0; margin: 12px 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background-clip: text;
-webkit-text-fill-color: transparent;
} }
} }
} }
@@ -1056,14 +1129,16 @@
} }
.btn-success { .btn-success {
background: linear-gradient(135deg, #10b981, #059669); padding: 14px 28px;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white; color: white;
padding: 12px 25px;
border: none; border: none;
border-radius: 10px; border-radius: 12px;
font-weight: 600; font-weight: 700;
cursor: pointer; cursor: pointer;
transition: all 0.3s; transition: all 0.3s ease;
white-space: nowrap;
height: 48px;
} }
} }
} }
@@ -1162,6 +1237,28 @@
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative; position: relative;
overflow: hidden; overflow: hidden;
&::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.4s ease;
}
&:hover {
opacity: 1;
transform: translateY(0px);
transition: 0.5s;
&::before {
opacity: 1;
}
}
} }
.stat-type { .stat-type {
@@ -1255,6 +1352,12 @@
border-radius: 14px; border-radius: 14px;
border: 1px solid #e2e8f0; border: 1px solid #e2e8f0;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover {
background: white;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
transform: translateX(4px);
}
} }
.file-icon { .file-icon {
@@ -1318,6 +1421,11 @@
background: linear-gradient(135deg, #f8fafc, #f1f5f9); background: linear-gradient(135deg, #f8fafc, #f1f5f9);
border-radius: 12px; border-radius: 12px;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover {
background: white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
} }
.platform-name { .platform-name {
@@ -1372,6 +1480,28 @@
position: relative; position: relative;
overflow: hidden; overflow: hidden;
&::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.274) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.4s ease;
}
&:hover {
opacity: 1;
transform: translateY(0px);
transition: 0.5s;
&::before {
opacity: 1;
}
}
.stat-type { .stat-type {
font-size: 11px; font-size: 11px;
font-weight: 700; font-weight: 700;
@@ -1538,6 +1668,12 @@
align-items: center; align-items: center;
gap: 12px; gap: 12px;
&:hover {
background: white;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
transform: translateY(-1px);
}
&::before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
@@ -1813,6 +1949,11 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 8px; gap: 8px;
&:hover {
background: #3b82f6;
color: white;
}
} }
.violation-action { .violation-action {
@@ -1830,6 +1971,11 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 8px; gap: 8px;
&:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
} }
} }
@@ -1852,6 +1998,12 @@
border: 2px solid #f3f4f6; border: 2px solid #f3f4f6;
text-align: center; text-align: center;
transition: all 0.3s; transition: all 0.3s;
&:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
border-color: #667eea;
}
} }
&-stat-number { &-stat-number {
+23 -25
View File
@@ -2,38 +2,36 @@ export default function CommissionLevels() {
return ( return (
<div className="block-wrapper"> <div className="block-wrapper">
<h3 className="section-title"> <h3 className="section-title">
<span className="icon">🏆</span> <span className="icon"></span>
Уровни комиссии Уровни комиссии
</h3> </h3>
<div className="commission-levels"> <div className="commission-levels">
<div className="level-card level-bronze active"> <div className="level-card active">
<h4>🥉 BRONZE</h4> <div className="level-number">🥉</div>
<p><strong>15%</strong> комиссия</p> <div className="level-commission">15%</div>
<small>0-5 рефералов</small> <div className="level-subscribe">BRONZE</div>
<div className="level-requirement">0-5 рефералов</div>
</div> </div>
<div className="level-card level-silver "> <div className="level-card ">
<h4>🥈 SILVER</h4> <div className="level-number">🥈</div>
<p><strong>18%</strong> комиссия</p> <div className="level-commission">18%</div>
<small>6-15 рефералов</small> <div className="level-subscribe">SILVER</div>
<div className="level-requirement">6-15 рефералов</div>
</div> </div>
<div className="level-card level-gold ">
<h4>🥇 GOLD</h4>
<p><strong>22%</strong> комиссия</p>
<small>16-50 рефералов</small>
</div>
<div className="level-card level-platinum ">
<h4>💎 PLATINUM</h4>
<p><strong>25%</strong> комиссия</p>
<small>50+ рефералов</small>
</div>
</div>
<div className="commission-levels-footer"> <div className="level-card ">
<p><strong>До уровня SILVER:</strong> 5 рефералов</p> <div className="level-number">🥇</div>
<div className="progress-bar"> <div className="level-commission">22%</div>
<div className="progress-fill" style={{width: "16.7%"}}></div> <div className="level-subscribe">GOLD</div>
<div className="level-requirement">16-50 рефералов</div>
</div>
<div className="level-card ">
<div className="level-number">💎</div>
<div className="level-commission">25%</div>
<div className="level-subscribe">PLATINUM</div>
<div className="level-requirement">50+ рефералов</div>
</div> </div>
<small>1 из 6 рефералов (16.7%)</small>
</div> </div>
</div> </div>
) )
@@ -3,10 +3,9 @@ export default function InvitationsTable() {
const t = useTranslations('Global'); const t = useTranslations('Global');
return ( return (
<div className="block-wrapper"> <div className="block-wrapper">
<div className="section-title"> <h2 className="section-title">
<span className="icon">📋</span>
История приглашений История приглашений
</div> </h2>
<div className="stats-grid"> <div className="stats-grid">
<div className="stats-item left-top-corner stats-header"> <div className="stats-item left-top-corner stats-header">
@@ -25,12 +25,6 @@ export default function ReferralStats() {
<div className="label">К выплате</div> <div className="label">К выплате</div>
</div> </div>
<div className="stat-card">
<div className="icon">📊</div>
<div className="value">14.3%</div>
<div className="label">Конверсия</div>
</div>
<div className="stat-card"> <div className="stat-card">
<div className="icon">🏆</div> <div className="icon">🏆</div>
<div className="value">BRONZE</div> <div className="value">BRONZE</div>
+2 -1
View File
@@ -172,7 +172,8 @@
"multi-layered-protection-for-your-videos": "Multi-layered video content protection with invisible watermarks", "multi-layered-protection-for-your-videos": "Multi-layered video content protection with invisible watermarks",
"my-content-description": "Managing protected files and copyright control", "my-content-description": "Managing protected files and copyright control",
"monitoring-copyright-infringements": "Monitoring copyright infringements", "monitoring-copyright-infringements": "Monitoring copyright infringements",
"monitoring-copyright-infringements-description": "Monitor and manage copyright infringement of your protected content online" "monitoring-copyright-infringements-description": "Monitor and manage copyright infringement of your protected content online",
"referral-program-description": "Invite your friends and earn up to 25% commission on every purchase! Share the link and get rewarded."
}, },
"Login-register-form": { "Login-register-form": {
"and": "and", "and": "and",
+2 -1
View File
@@ -172,7 +172,8 @@
"multi-layered-protection-for-your-videos": "Многослойная защита видеоконтента с невидимыми водяными знаками", "multi-layered-protection-for-your-videos": "Многослойная защита видеоконтента с невидимыми водяными знаками",
"my-content-description": "Управление защищенными файлами и контролем авторских прав", "my-content-description": "Управление защищенными файлами и контролем авторских прав",
"monitoring-copyright-infringements": "Мониторинг нарушений авторских прав", "monitoring-copyright-infringements": "Мониторинг нарушений авторских прав",
"monitoring-copyright-infringements-description": "Отслеживание и управление нарушениями авторских прав на ваш защищенный контент в интернете" "monitoring-copyright-infringements-description": "Отслеживание и управление нарушениями авторских прав на ваш защищенный контент в интернете",
"referral-program-description": "Приглашайте друзей и зарабатывайте до 25% комиссии с каждой их покупки! Делитесь ссылкой, получайте вознаграждение."
}, },
"Login-register-form": { "Login-register-form": {
"and": "и", "and": "и",