Files
marketing/update-strategy.js
2026-04-22 18:23:41 +05:00

608 lines
19 KiB
JavaScript

const fs = require('fs');
const path = require('path');
const targetPath = path.join(__dirname, 'src/views/pages/marketing/MarketingStrategyV3.vue');
let content = fs.readFileSync(targetPath, 'utf8');
const newStyle = `<style scoped>
/* ═══════════════════════════════════════════
PREMIUM 3D BASE - STRATEGY
═══════════════════════════════════════════ */
.strategy-page {
min-height: 100vh;
padding: 0;
font-family: 'Onest', sans-serif;
background: transparent;
}
.strategy-container {
max-width: 1400px;
margin: 0 auto;
padding: 40px 24px 100px;
display: flex;
flex-direction: column;
gap: 32px;
}
/* ═══════════════════════════════════════════
3D HEADER
═══════════════════════════════════════════ */
.strategy-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
position: relative;
z-index: 10;
}
.brand-tag {
display: inline-block;
padding: 6px 14px;
border-radius: 100px;
background: linear-gradient(135deg, rgba(45, 123, 255, 0.1), rgba(45, 123, 255, 0.02));
border: 1px solid rgba(45, 123, 255, 0.15);
color: #2D7BFF;
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.15em;
margin-bottom: 16px;
box-shadow: 0 4px 12px rgba(45, 123, 255, 0.05);
}
.page-title {
font-size: 42px;
font-weight: 900;
color: #0F172A;
margin: 0 0 12px 0;
letter-spacing: -0.03em;
line-height: 1.1;
background: linear-gradient(135deg, #0F172A, #334155);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.08));
}
.page-subtitle {
font-size: 16px;
color: #64748B;
max-width: 600px;
line-height: 1.6;
margin: 0;
}
/* ═══════════════════════════════════════════
SETUP STAGE (PREVIEW) & CARDS
═══════════════════════════════════════════ */
.setup-stage {
display: grid;
gap: 24px;
grid-template-columns: 1fr;
}
@media(min-width: 1024px) {
.setup-stage { grid-template-columns: 340px 1fr; }
}
.recommendation-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border: 1px solid rgba(15, 23, 42, 0.04);
border-radius: 24px;
padding: 32px;
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03), inset 0 2px 4px rgba(255,255,255,0.8);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
display: flex;
flex-direction: column;
gap: 24px;
position: relative;
overflow: hidden;
}
.recommendation-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px rgba(45, 123, 255, 0.08);
}
.model-icon-box {
width: 64px;
height: 64px;
border-radius: 20px;
background: linear-gradient(135deg, var(--accent, #2D7BFF), #1a6bff);
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 8px 20px rgba(var(--accent, rgba(45,123,255,0.4)));
margin-bottom: 20px;
}
.rec-label {
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.model-title {
font-size: 24px;
font-weight: 900;
color: #0F172A;
margin: 8px 0;
letter-spacing: -0.02em;
}
.model-desc {
font-size: 14px;
color: #64748B;
line-height: 1.6;
}
.scores-grid {
display: flex;
flex-direction: column;
gap: 16px;
margin-top: auto;
}
.score-item {
background: #FAFBFF;
padding: 16px;
border-radius: 16px;
border: 1px solid rgba(45, 123, 255, 0.05);
}
.score-info {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
font-size: 13px;
font-weight: 800;
}
.score-track {
height: 8px;
background: rgba(15, 23, 42, 0.05);
border-radius: 100px;
overflow: hidden;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.score-fill {
height: 100%;
border-radius: 100px;
transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* ═══════════════════════════════════════════
HERO SETUP BOX (Upload)
═══════════════════════════════════════════ */
.hero-setup-box {
background: #fff;
border-radius: 32px;
border: 1px solid rgba(15, 23, 42, 0.04);
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03);
padding: 48px;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
overflow: hidden;
}
.hero-icon {
width: 80px;
height: 80px;
border-radius: 24px;
background: linear-gradient(135deg, rgba(45, 123, 255, 0.1), rgba(139, 92, 246, 0.1));
color: #2D7BFF;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
margin-bottom: 24px;
box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 12px 24px rgba(45,123,255,0.1);
}
.hero-title {
font-size: 36px;
font-weight: 900;
color: #0F172A;
margin-bottom: 12px;
letter-spacing: -0.03em;
}
.hero-subtitle {
font-size: 16px;
color: #64748B;
margin-bottom: 32px;
max-width: 500px;
line-height: 1.6;
}
.upload-zone {
border: 2px dashed rgba(45, 123, 255, 0.2);
border-radius: 24px;
background: rgba(45, 123, 255, 0.02);
padding: 40px;
text-align: center;
cursor: pointer;
transition: all 0.3s;
margin-bottom: 32px;
}
.upload-zone:hover, .upload-zone.is-dragging {
border-color: #2D7BFF;
background: rgba(45, 123, 255, 0.06);
box-shadow: 0 8px 24px rgba(45, 123, 255, 0.1);
}
.files-grid {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
}
.file-thumb {
width: 90px;
height: 90px;
border-radius: 16px;
overflow: hidden;
position: relative;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.thumb-img {
width: 100%;
height: 100%;
object-fit: cover;
}
.thumb-overlay {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.2s;
}
.file-thumb:hover .thumb-overlay { opacity: 1; }
.remove-btn {
width: 32px;
height: 32px;
border-radius: 50%;
background: rgba(255,255,255,0.2) !important;
border: none !important;
color: #fff !important;
backdrop-filter: blur(4px);
}
.add-more-box {
width: 90px;
height: 90px;
border-radius: 16px;
border: 2px dashed rgba(45, 123, 255, 0.3);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
color: #2D7BFF;
font-size: 11px;
font-weight: 700;
}
.prime-generate-btn {
width: 100%;
padding: 24px;
border-radius: 20px;
border: none;
background: linear-gradient(135deg, #2D7BFF, #8B5CF6);
color: #fff;
font-size: 18px;
font-weight: 900;
font-family: inherit;
cursor: pointer;
position: relative;
overflow: hidden;
box-shadow: 0 12px 32px rgba(45, 123, 255, 0.3), inset 0 2px 4px rgba(255,255,255,0.3);
transition: all 0.3s;
}
.prime-generate-btn:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px rgba(45, 123, 255, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
}
.btn-shine {
position: absolute;
top: 0; left: -100%; width: 100%; height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
animation: shine 3s infinite;
}
@keyframes shine { 0% { left: -100%; } 100% { left: 100%; } }
/* ═══════════════════════════════════════════
POLLING (LOADING) SCREEN - DEEP IMMERSION
═══════════════════════════════════════════ */
.polling-stage {
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0;
}
.polling-box {
text-align: center;
max-width: 500px;
width: 100%;
}
.polling-progress {
position: relative;
width: 160px;
height: 160px;
margin: 0 auto 32px;
}
.progress-svg {
width: 160px;
height: 160px;
transform: rotate(-90deg);
}
.progress-svg circle {
fill: none;
stroke-width: 10;
stroke-linecap: round;
}
.progress-svg .track { stroke: rgba(45, 123, 255, 0.1); }
.progress-svg .fill {
stroke: url(#blue-grad);
stroke-dasharray: 440;
transition: stroke-dashoffset 1s ease-out;
filter: drop-shadow(0 0 12px rgba(45,123,255,0.6));
}
.progress-info {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.percent-label {
font-size: 32px;
font-weight: 900;
background: linear-gradient(135deg, #2D7BFF, #8B5CF6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.status-title { font-size: 24px; font-weight: 900; color: #0F172A; margin-bottom: 12px; }
.status-message { font-size: 15px; color: #64748B; font-weight: 500; }
.progress-bar-container { margin-top: 40px; }
.progress-bar-track { height: 6px; background: rgba(15,23,42,0.05); border-radius: 100px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #2D7BFF, #8B5CF6); transition: width 1s linear; }
/* ═══════════════════════════════════════════
RESULTS & TIMELINE
═══════════════════════════════════════════ */
.results-hero {
background: #fff;
border-radius: 32px;
padding: 40px;
border: 1px solid rgba(15,23,42,0.04);
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03);
margin-bottom: 32px;
}
.hero-main-info {
display: flex;
align-items: center;
gap: 24px;
margin-bottom: 32px;
}
.model-large-icon {
width: 80px;
height: 80px;
border-radius: 24px;
background: linear-gradient(135deg, var(--accent, #2D7BFF), #1a6bff);
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 12px 24px rgba(var(--accent, rgba(45,123,255,0.4)));
}
.scope-tag {
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.model-big-title {
font-size: 32px;
font-weight: 900;
color: #0F172A;
margin: 4px 0 0 0;
letter-spacing: -0.02em;
}
.hero-rationale {
background: #FAFBFF;
border-left: 4px solid #2D7BFF;
padding: 24px 32px;
border-radius: 0 24px 24px 0;
margin-bottom: 32px;
}
.rationale-header { font-size: 13px; font-weight: 800; color: #2D7BFF; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.rationale-text { font-size: 16px; color: #334155; line-height: 1.8; font-style: italic; margin: 0; }
.platform-strip {
display: flex;
gap: 12px;
}
.p-item {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background: #fff;
border: 1px solid rgba(15,23,42,0.08);
border-radius: 100px;
font-size: 13px;
font-weight: 800;
color: #0F172A;
box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
/* SPRINTS */
.sprints-section { margin-bottom: 40px; }
.section-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-title-row i {
width: 48px; height: 48px; border-radius: 16px; background: rgba(45,123,255,0.08);
color: #2D7BFF; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.section-title-row h3 { font-size: 28px; font-weight: 900; color: #0F172A; margin: 0; }
.sprints-list { display: flex; flex-direction: column; gap: 16px; }
.sprint-item {
background: #fff; border-radius: 24px;
border: 1px solid rgba(15,23,42,0.04);
box-shadow: 0 8px 24px rgba(15,23,42,0.02);
overflow: hidden; transition: all 0.3s;
}
.sprint-item.is-active {
border-color: rgba(45,123,255,0.2);
box-shadow: 0 16px 40px rgba(45,123,255,0.06);
}
.sprint-summary {
display: flex; align-items: center; gap: 20px; padding: 24px 32px; cursor: pointer;
}
.week-num {
width: 56px; height: 56px; border-radius: 16px; background: #FAFBFF;
border: 1px solid rgba(45,123,255,0.1); color: #2D7BFF;
display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900;
}
.is-active .week-num {
background: linear-gradient(135deg, #2D7BFF, #1a6bff); color: #fff;
box-shadow: 0 8px 20px rgba(45,123,255,0.3); border: none;
}
.week-title { font-size: 20px; font-weight: 800; color: #0F172A; margin: 0 0 8px 0; }
.week-tags { display: flex; gap: 8px; }
.week-tag { font-size: 11px; font-weight: 700; color: #64748B; background: #F1F5F9; padding: 4px 10px; border-radius: 100px; }
.expand-icon { margin-left: auto; color: #94A3B8; transition: transform 0.3s; }
.is-active .expand-icon { transform: rotate(180deg); color: #2D7BFF; }
.sprint-calendar {
padding: 0 32px 32px; border-top: 1px solid rgba(15,23,42,0.04); margin-top: 10px;
display: flex; flex-direction: column; gap: 24px;
}
.day-track { display: flex; gap: 24px; align-items: stretch; margin-top: 24px; }
.day-marker {
width: 64px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.day-circle {
width: 48px; height: 48px; border-radius: 50%; background: #FAFBFF; border: 2px solid rgba(45,123,255,0.1);
display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; color: #2D7BFF;
margin-bottom: 8px; box-shadow: 0 4px 12px rgba(45,123,255,0.05);
}
.day-date { font-size: 12px; font-weight: 600; color: #64748B; white-space: nowrap; }
/* POST CARD - THE TRUE MASTERPIECE */
.post-cards-wrap { flex: 1; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(600px, 1fr)); }
.post-card {
background: #fff; border: 1px solid rgba(15,23,42,0.05); border-radius: 24px;
box-shadow: 0 12px 32px rgba(15,23,42,0.04); overflow: hidden; display: flex;
transition: all 0.3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(45,123,255,0.08); }
.post-media-area {
width: 320px; flex-shrink: 0; background: #0F172A; position: relative;
border-right: 1px solid rgba(255,255,255,0.1);
}
.video-container { width: 100%; height: 100%; position: relative; }
video { width: 100%; height: 100%; object-fit: cover; }
.controls-overlay {
position: absolute; bottom: 16px; right: 16px;
width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; border: none;
transition: all 0.2s;
}
.controls-overlay:hover { background: rgba(45,123,255,0.8); transform: scale(1.1); }
.post-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; cursor: zoom-in; }
.post-image:hover { transform: scale(1.05); }
.generating-view {
position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
background: linear-gradient(135deg, #0F172A, #1E293B); color: #fff;
}
.gen-spinner {
width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.1);
border-top-color: #2D7BFF; animation: spin 1s linear infinite; margin-bottom: 20px;
box-shadow: 0 0 20px rgba(45,123,255,0.5);
}
.post-content-area { padding: 32px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-header-badges { display: flex; justify-content: space-between; margin-bottom: 24px; }
.badge-plat {
display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px;
font-size: 12px; font-weight: 800; text-transform: uppercase; color: #fff; background: #0F172A;
box-shadow: 0 4px 12px rgba(15,23,42,0.2);
}
.badge-format {
display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 100px;
font-size: 12px; font-weight: 800; background: #F1F5F9; color: #334155; border: 1px solid rgba(15,23,42,0.05);
}
.post-text-body {
font-size: 15px; color: #334155; line-height: 1.7; font-weight: 500;
margin-bottom: 24px; white-space: pre-line;
}
.post-hashtags { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.hashtag {
font-size: 13px; font-weight: 700; color: #2D7BFF; padding: 6px 12px;
background: rgba(45,123,255,0.05); border-radius: 8px; border: 1px solid rgba(45,123,255,0.1);
}
.post-footer-actions {
margin-top: auto; display: flex; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(15,23,42,0.04);
}
.action-btn {
flex: 1; padding: 12px; border-radius: 12px; border: 1px solid rgba(15,23,42,0.08); background: #fff;
color: #475569; font-size: 13px; font-weight: 800; cursor: pointer; transition: all 0.2s;
display: flex; justify-content: center; align-items: center; gap: 8px;
}
.action-btn:hover { background: #FAFBFF; color: #2D7BFF; border-color: rgba(45,123,255,0.3); }
.action-btn.primary {
background: linear-gradient(135deg, #2D7BFF, #1a6bff); color: #fff; border: none;
box-shadow: 0 4px 12px rgba(45,123,255,0.3);
}
.action-btn.primary:hover {
transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45,123,255,0.4);
}
/* Modals */
.media-modal-wrap { max-width: 900px; width: 100%; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.modal-video, .modal-image { width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
</style>`;
const startIndex = content.indexOf('<style scoped>');
const endIndex = content.indexOf('</style>') + '</style>'.length;
if (startIndex !== -1 && endIndex !== -1) {
const updatedContent = content.substring(0, startIndex) + newStyle + content.substring(endIndex);
fs.writeFileSync(targetPath, updatedContent);
console.log('MarketingStrategy CSS updated successfully!');
} else {
console.log('Could not find style tag.');
}