@julioventura/opensquad 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +433 -0
- package/_opensquad/config/playwright.config.json +11 -0
- package/_opensquad/core/architect.agent.yaml +112 -0
- package/_opensquad/core/best-practices/_catalog.yaml +126 -0
- package/_opensquad/core/best-practices/blog-post.md +132 -0
- package/_opensquad/core/best-practices/blog-seo.md +127 -0
- package/_opensquad/core/best-practices/brand-resolution-checklist.md +172 -0
- package/_opensquad/core/best-practices/copywriting.md +441 -0
- package/_opensquad/core/best-practices/data-analysis.md +401 -0
- package/_opensquad/core/best-practices/email-newsletter.md +118 -0
- package/_opensquad/core/best-practices/email-sales.md +110 -0
- package/_opensquad/core/best-practices/image-design.md +348 -0
- package/_opensquad/core/best-practices/instagram-feed.md +235 -0
- package/_opensquad/core/best-practices/instagram-reels.md +112 -0
- package/_opensquad/core/best-practices/instagram-stories.md +107 -0
- package/_opensquad/core/best-practices/linkedin-article.md +116 -0
- package/_opensquad/core/best-practices/linkedin-post.md +121 -0
- package/_opensquad/core/best-practices/researching.md +349 -0
- package/_opensquad/core/best-practices/review.md +269 -0
- package/_opensquad/core/best-practices/run-recovery.md +61 -0
- package/_opensquad/core/best-practices/social-networks-publishing.md +327 -0
- package/_opensquad/core/best-practices/squad-creation-checklist.md +32 -0
- package/_opensquad/core/best-practices/strategist.md +344 -0
- package/_opensquad/core/best-practices/technical-writing.md +365 -0
- package/_opensquad/core/best-practices/twitter-post.md +105 -0
- package/_opensquad/core/best-practices/twitter-thread.md +122 -0
- package/_opensquad/core/best-practices/whatsapp-broadcast.md +107 -0
- package/_opensquad/core/best-practices/youtube-script.md +122 -0
- package/_opensquad/core/best-practices/youtube-shorts.md +112 -0
- package/_opensquad/core/defaults/youtube-video-assembly.json +84 -0
- package/_opensquad/core/prompts/build.prompt.md +613 -0
- package/_opensquad/core/prompts/design.prompt.md +606 -0
- package/_opensquad/core/prompts/discovery.prompt.md +377 -0
- package/_opensquad/core/prompts/sherlock-instagram.md +123 -0
- package/_opensquad/core/prompts/sherlock-linkedin.md +73 -0
- package/_opensquad/core/prompts/sherlock-shared.md +684 -0
- package/_opensquad/core/prompts/sherlock-twitter.md +78 -0
- package/_opensquad/core/prompts/sherlock-youtube.md +85 -0
- package/_opensquad/core/runner.pipeline.md +743 -0
- package/_opensquad/core/skills.engine.md +384 -0
- package/bin/opensquad.js +108 -0
- package/dashboard/index.html +15 -0
- package/dashboard/package-lock.json +1964 -0
- package/dashboard/package.json +28 -0
- package/dashboard/public/assets/avatars/Female1_1wave.png +0 -0
- package/dashboard/public/assets/avatars/Female1_2wave.png +0 -0
- package/dashboard/public/assets/avatars/Female1_blink.png +0 -0
- package/dashboard/public/assets/avatars/Female1_talk.png +0 -0
- package/dashboard/public/assets/avatars/Female2_1wave.png +0 -0
- package/dashboard/public/assets/avatars/Female2_2wave.png +0 -0
- package/dashboard/public/assets/avatars/Female2_blink.png +0 -0
- package/dashboard/public/assets/avatars/Female2_talk.png +0 -0
- package/dashboard/public/assets/avatars/Female3_blink.png +0 -0
- package/dashboard/public/assets/avatars/Female3_talk.png +0 -0
- package/dashboard/public/assets/avatars/Female3_wave.png +0 -0
- package/dashboard/public/assets/avatars/Female4_blink.png +0 -0
- package/dashboard/public/assets/avatars/Female4_talk.png +0 -0
- package/dashboard/public/assets/avatars/Female4_wave.png +0 -0
- package/dashboard/public/assets/avatars/Female5_blink.png +0 -0
- package/dashboard/public/assets/avatars/Female5_talk.png +0 -0
- package/dashboard/public/assets/avatars/Female5_wave.png +0 -0
- package/dashboard/public/assets/avatars/Female6_blink.png +0 -0
- package/dashboard/public/assets/avatars/Female6_talk.png +0 -0
- package/dashboard/public/assets/avatars/Female6_wave.png +0 -0
- package/dashboard/public/assets/avatars/Male1_1wave.png +0 -0
- package/dashboard/public/assets/avatars/Male1_2wave.png +0 -0
- package/dashboard/public/assets/avatars/Male1_blink.png +0 -0
- package/dashboard/public/assets/avatars/Male1_talk.png +0 -0
- package/dashboard/public/assets/avatars/Male2_1wave.png +0 -0
- package/dashboard/public/assets/avatars/Male2_2wave.png +0 -0
- package/dashboard/public/assets/avatars/Male2_blink.png +0 -0
- package/dashboard/public/assets/avatars/Male2_talk.png +0 -0
- package/dashboard/public/assets/avatars/Male3_blink.png +0 -0
- package/dashboard/public/assets/avatars/Male3_talk.png +0 -0
- package/dashboard/public/assets/avatars/Male3_wave.png +0 -0
- package/dashboard/public/assets/avatars/Male4_blink.png +0 -0
- package/dashboard/public/assets/avatars/Male4_talk.png +0 -0
- package/dashboard/public/assets/avatars/Male4_wave.png +0 -0
- package/dashboard/public/assets/desks/desktop_set_black_down.png +0 -0
- package/dashboard/public/assets/desks/desktop_set_black_down_coding-1.png +0 -0
- package/dashboard/public/assets/desks/desktop_set_black_down_coding.png +0 -0
- package/dashboard/public/assets/desks/desktop_set_black_up.png +0 -0
- package/dashboard/public/assets/desks/desktop_set_white_down.png +0 -0
- package/dashboard/public/assets/desks/desktop_set_white_down_coding-1.png +0 -0
- package/dashboard/public/assets/desks/desktop_set_white_down_coding.png +0 -0
- package/dashboard/public/assets/desks/desktop_set_white_up.png +0 -0
- package/dashboard/public/assets/furniture/armchair_tan.png +0 -0
- package/dashboard/public/assets/furniture/armchair_tan_down.png +0 -0
- package/dashboard/public/assets/furniture/backpack_blue.png +0 -0
- package/dashboard/public/assets/furniture/backpack_red.png +0 -0
- package/dashboard/public/assets/furniture/blinds.png +0 -0
- package/dashboard/public/assets/furniture/blinds_large_closed_white.png +0 -0
- package/dashboard/public/assets/furniture/bookshelf.png +0 -0
- package/dashboard/public/assets/furniture/bookshelf_purple_tall.png +0 -0
- package/dashboard/public/assets/furniture/bulletin_board.png +0 -0
- package/dashboard/public/assets/furniture/clock.png +0 -0
- package/dashboard/public/assets/furniture/coffee_mug.png +0 -0
- package/dashboard/public/assets/furniture/coffee_mug_blue.png +0 -0
- package/dashboard/public/assets/furniture/coffee_table.png +0 -0
- package/dashboard/public/assets/furniture/coffeepot_right.png +0 -0
- package/dashboard/public/assets/furniture/coffeetable_black_horizontal.png +0 -0
- package/dashboard/public/assets/furniture/couch.png +0 -0
- package/dashboard/public/assets/furniture/couch_tan_down.png +0 -0
- package/dashboard/public/assets/furniture/cushion_blue.png +0 -0
- package/dashboard/public/assets/furniture/cushion_tan.png +0 -0
- package/dashboard/public/assets/furniture/desk_wood.png +0 -0
- package/dashboard/public/assets/furniture/fancy_rug.png +0 -0
- package/dashboard/public/assets/furniture/fancy_rug_wide.png +0 -0
- package/dashboard/public/assets/furniture/flowers1.png +0 -0
- package/dashboard/public/assets/furniture/flowers2.png +0 -0
- package/dashboard/public/assets/furniture/lamp_tan.png +0 -0
- package/dashboard/public/assets/furniture/lantern.png +0 -0
- package/dashboard/public/assets/furniture/monstera.png +0 -0
- package/dashboard/public/assets/furniture/monstera_small.png +0 -0
- package/dashboard/public/assets/furniture/picture_frame.png +0 -0
- package/dashboard/public/assets/furniture/plant1.png +0 -0
- package/dashboard/public/assets/furniture/plant2.png +0 -0
- package/dashboard/public/assets/furniture/plant3.png +0 -0
- package/dashboard/public/assets/furniture/plant_poof.png +0 -0
- package/dashboard/public/assets/furniture/plant_spindly.png +0 -0
- package/dashboard/public/assets/furniture/poster_blue.png +0 -0
- package/dashboard/public/assets/furniture/rug.png +0 -0
- package/dashboard/public/assets/furniture/succulent_blue.png +0 -0
- package/dashboard/public/assets/furniture/succulent_green.png +0 -0
- package/dashboard/public/assets/furniture/treasurechest_closed_gold.png +0 -0
- package/dashboard/public/assets/furniture/water_cooler_better.png +0 -0
- package/dashboard/public/assets/furniture/whiteboard.png +0 -0
- package/dashboard/public/assets/furniture/whiteboard_stand_graph.png +0 -0
- package/dashboard/public/assets/furniture/window_blinds_open.png +0 -0
- package/dashboard/src/App.tsx +46 -0
- package/dashboard/src/components/RunDashboardButton.tsx +92 -0
- package/dashboard/src/components/SquadCard.tsx +49 -0
- package/dashboard/src/components/SquadSelector.tsx +67 -0
- package/dashboard/src/components/StatusBadge.tsx +32 -0
- package/dashboard/src/components/StatusBar.tsx +116 -0
- package/dashboard/src/hooks/useSquadSocket.ts +135 -0
- package/dashboard/src/lib/formatTime.ts +16 -0
- package/dashboard/src/lib/normalizeState.ts +25 -0
- package/dashboard/src/main.tsx +10 -0
- package/dashboard/src/office/AgentSprite.ts +241 -0
- package/dashboard/src/office/OfficeScene.ts +153 -0
- package/dashboard/src/office/PhaserGame.tsx +80 -0
- package/dashboard/src/office/RoomBuilder.ts +190 -0
- package/dashboard/src/office/assetKeys.ts +150 -0
- package/dashboard/src/office/palette.ts +32 -0
- package/dashboard/src/plugin/squadWatcher.ts +397 -0
- package/dashboard/src/store/useSquadStore.ts +56 -0
- package/dashboard/src/styles/globals.css +36 -0
- package/dashboard/src/types/state.ts +63 -0
- package/dashboard/src/vite-env.d.ts +1 -0
- package/dashboard/tsconfig.json +24 -0
- package/dashboard/vite.config.ts +13 -0
- package/package.json +59 -0
- package/public/sfx/slide-transition-sfx.mp3 +0 -0
- package/skills/README.md +84 -0
- package/skills/apify/SKILL.md +55 -0
- package/skills/blotato/SKILL.md +63 -0
- package/skills/canva/SKILL.md +60 -0
- package/skills/higgsfield/SKILL.md +147 -0
- package/skills/image-ai-generator/SKILL.md +124 -0
- package/skills/image-ai-generator/scripts/generate.py +175 -0
- package/skills/image-creator/SKILL.md +166 -0
- package/skills/image-creator/editorial-slide-template.js +645 -0
- package/skills/image-fetcher/SKILL.md +91 -0
- package/skills/imgbb-uploader/SKILL.md +73 -0
- package/skills/imgbb-uploader/scripts/upload.js +125 -0
- package/skills/instagram-publisher/README.md +36 -0
- package/skills/instagram-publisher/SKILL.md +231 -0
- package/skills/instagram-publisher/scripts/publish-playwright.js +418 -0
- package/skills/instagram-publisher/scripts/publish.js +521 -0
- package/skills/opensquad-agent-creator/SKILL.md +192 -0
- package/skills/opensquad-skill-creator/SKILL.md +420 -0
- package/skills/opensquad-skill-creator/agents/analyzer.md +274 -0
- package/skills/opensquad-skill-creator/agents/comparator.md +202 -0
- package/skills/opensquad-skill-creator/agents/grader.md +223 -0
- package/skills/opensquad-skill-creator/assets/eval_review.html +146 -0
- package/skills/opensquad-skill-creator/eval-viewer/generate_review.py +471 -0
- package/skills/opensquad-skill-creator/eval-viewer/viewer.html +1325 -0
- package/skills/opensquad-skill-creator/references/schemas.md +430 -0
- package/skills/opensquad-skill-creator/references/skill-format.md +235 -0
- package/skills/opensquad-skill-creator/scripts/__init__.py +0 -0
- package/skills/opensquad-skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/skills/opensquad-skill-creator/scripts/quick_validate.py +103 -0
- package/skills/opensquad-skill-creator/scripts/run_eval.py +310 -0
- package/skills/opensquad-skill-creator/scripts/utils.py +47 -0
- package/skills/pdf-extractor/SKILL.md +57 -0
- package/skills/pdf-extractor/scripts/extract.py +82 -0
- package/skills/resend/SKILL.md +80 -0
- package/skills/run-dashboard/README.md +93 -0
- package/skills/run-dashboard/SKILL.md +173 -0
- package/skills/run-dashboard/scripts/finalize-state.js +273 -0
- package/skills/run-dashboard/scripts/generate.js +1296 -0
- package/skills/run-dashboard/scripts/serve.js +135 -0
- package/skills/run-dashboard/templates/run-dashboard-simple.template.html +191 -0
- package/skills/run-dashboard/templates/run-dashboard.template.html +1164 -0
- package/skills/smtp-sender/SKILL.md +88 -0
- package/skills/smtp-sender/scripts/send.js +478 -0
- package/skills/template-designer/SKILL.md +201 -0
- package/skills/template-designer/base-templates/model-a.html +27 -0
- package/skills/template-designer/base-templates/model-b.html +31 -0
- package/skills/template-designer/base-templates/model-c.html +42 -0
- package/skills/youtube-publisher/SKILL.md +232 -0
- package/skills/youtube-publisher/scripts/publish.js +2078 -0
- package/src/agents-cli.js +158 -0
- package/src/agents.js +134 -0
- package/src/i18n.js +48 -0
- package/src/init.js +442 -0
- package/src/locales/en.json +79 -0
- package/src/locales/es.json +78 -0
- package/src/locales/pt-BR.json +78 -0
- package/src/logger.js +38 -0
- package/src/prompt.js +46 -0
- package/src/readme/README.md +146 -0
- package/src/runs.js +318 -0
- package/src/skills-cli.js +157 -0
- package/src/skills.js +146 -0
- package/src/supabase-cli.js +584 -0
- package/src/update.js +169 -0
- package/templates/_opensquad/.opensquad-version +1 -0
- package/templates/_opensquad/_investigations/.gitkeep +0 -0
- package/templates/ide-templates/antigravity/.agent/rules/opensquad.md +68 -0
- package/templates/ide-templates/antigravity/.agent/workflows/opensquad.md +102 -0
- package/templates/ide-templates/claude-code/.claude/skills/opensquad/SKILL.md +182 -0
- package/templates/ide-templates/claude-code/.mcp.json +8 -0
- package/templates/ide-templates/claude-code/CLAUDE.md +57 -0
- package/templates/ide-templates/codex/.agents/skills/opensquad/SKILL.md +6 -0
- package/templates/ide-templates/codex/AGENTS.md +120 -0
- package/templates/ide-templates/cursor/.cursor/commands/opensquad.md +9 -0
- package/templates/ide-templates/cursor/.cursor/mcp.json +8 -0
- package/templates/ide-templates/cursor/.cursor/rules/opensquad.mdc +62 -0
- package/templates/ide-templates/cursor/.cursorignore +3 -0
- package/templates/ide-templates/gemini-cli/.gemini/settings.json +8 -0
- package/templates/ide-templates/gemini-cli/.gemini/skills/opensquad/SKILL.md +186 -0
- package/templates/ide-templates/gemini-cli/GEMINI.md +57 -0
- package/templates/ide-templates/opencode/.opencode/commands/opensquad.md +9 -0
- package/templates/ide-templates/opencode/AGENTS.md +120 -0
- package/templates/ide-templates/qwen-code/.qwen/settings.json +8 -0
- package/templates/ide-templates/qwen-code/.qwen/skills/opensquad/SKILL.md +182 -0
- package/templates/ide-templates/qwen-code/QWEN.md +57 -0
- package/templates/ide-templates/trae/.trae/mcp.json +8 -0
- package/templates/ide-templates/trae/.trae/rules/opensquad.md +64 -0
- package/templates/ide-templates/vscode-copilot/.github/copilot-instructions.md +59 -0
- package/templates/ide-templates/vscode-copilot/.github/prompts/opensquad.prompt.md +209 -0
- package/templates/ide-templates/vscode-copilot/.vscode/mcp.json +8 -0
- package/templates/ide-templates/vscode-copilot/.vscode/settings.json +3 -0
- package/templates/package.json +8 -0
- package/templates/squads/.gitkeep +0 -0
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
function escapeHtml(value) {
|
|
2
|
+
return String(value ?? '')
|
|
3
|
+
.replace(/&/g, '&')
|
|
4
|
+
.replace(/</g, '<')
|
|
5
|
+
.replace(/>/g, '>')
|
|
6
|
+
.replace(/\"/g, '"')
|
|
7
|
+
.replace(/'/g, ''');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function escapeAttribute(value) {
|
|
11
|
+
return escapeHtml(value);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function sanitizeChannelValue(value) {
|
|
15
|
+
const text = String(value ?? '').trim();
|
|
16
|
+
return text ? text : null;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function createChannelEntry(label, value) {
|
|
20
|
+
const sanitizedValue = sanitizeChannelValue(value);
|
|
21
|
+
if (!sanitizedValue) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return { label, value: sanitizedValue };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function normalizeEditorialCommunicationChannels(rawChannels = {}) {
|
|
29
|
+
if (Array.isArray(rawChannels)) {
|
|
30
|
+
return rawChannels
|
|
31
|
+
.map((channel) => {
|
|
32
|
+
if (!channel || typeof channel !== 'object') {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return createChannelEntry(channel.label, channel.value);
|
|
37
|
+
})
|
|
38
|
+
.filter(Boolean);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const prioritizedEntries = [
|
|
42
|
+
createChannelEntry('Site', rawChannels.website),
|
|
43
|
+
createChannelEntry('Instagram', rawChannels.instagram),
|
|
44
|
+
createChannelEntry('Facebook', rawChannels.facebook),
|
|
45
|
+
createChannelEntry('YouTube', rawChannels.youtube),
|
|
46
|
+
createChannelEntry('LinkedIn', rawChannels.linkedin),
|
|
47
|
+
createChannelEntry('X', rawChannels.x),
|
|
48
|
+
createChannelEntry('Email', rawChannels.email),
|
|
49
|
+
createChannelEntry('WhatsApp', rawChannels.whatsapp),
|
|
50
|
+
].filter(Boolean);
|
|
51
|
+
|
|
52
|
+
const seen = new Set();
|
|
53
|
+
return prioritizedEntries.filter((entry) => {
|
|
54
|
+
const key = `${entry.label.toLowerCase()}::${entry.value.toLowerCase()}`;
|
|
55
|
+
if (seen.has(key)) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
seen.add(key);
|
|
60
|
+
return true;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function estimateVisualUnits(text) {
|
|
65
|
+
return Array.from(String(text ?? '')).reduce((total, char) => {
|
|
66
|
+
if (/[WMQGOD@#%&8B]/.test(char)) return total + 1.18;
|
|
67
|
+
if (/[A-Z]/.test(char)) return total + 1.02;
|
|
68
|
+
if (/[a-z0-9]/.test(char)) return total + 0.88;
|
|
69
|
+
if (/[ijlrtf\.]/.test(char)) return total + 0.48;
|
|
70
|
+
if (/[\s_-]/.test(char)) return total + 0.36;
|
|
71
|
+
return total + 0.74;
|
|
72
|
+
}, 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function fitEditorialProjectTitle(title) {
|
|
76
|
+
const safeTitle = String(title ?? '').trim() || 'Projeto';
|
|
77
|
+
const units = Math.max(estimateVisualUnits(safeTitle), 8);
|
|
78
|
+
const longestToken = safeTitle.split(/\s+/).reduce((longest, token) => Math.max(longest, token.length), 0);
|
|
79
|
+
const rawFontSize = 1900 / units;
|
|
80
|
+
const tokenConstrainedSize = 1600 / Math.max(longestToken, 8);
|
|
81
|
+
const fontSize = Math.max(84, Math.min(140, Math.round(Math.min(rawFontSize, tokenConstrainedSize))));
|
|
82
|
+
const lineHeight = fontSize >= 126 ? 0.9 : fontSize >= 110 ? 0.93 : 0.96;
|
|
83
|
+
const maxWidth = longestToken >= 16 ? 820 : 860;
|
|
84
|
+
return { fontSize, lineHeight, maxWidth };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function createEditorialOpeningSlideHtml({
|
|
88
|
+
projectName,
|
|
89
|
+
date,
|
|
90
|
+
deck = 'RADAR EDITORIAL PARA ARTISTAS, SELOS E EQUIPES DE LANÇAMENTO.',
|
|
91
|
+
supportText = 'Diariamente uma notícia que importa para VOCÊ.',
|
|
92
|
+
footerLabel = 'edição diária',
|
|
93
|
+
brandLabel,
|
|
94
|
+
slideCounter = '1/6',
|
|
95
|
+
}) {
|
|
96
|
+
const fittedTitle = fitEditorialProjectTitle(projectName);
|
|
97
|
+
const safeProjectName = escapeHtml(projectName);
|
|
98
|
+
const safeDate = escapeHtml(date);
|
|
99
|
+
const safeDeck = escapeHtml(deck);
|
|
100
|
+
const safeSupportText = escapeHtml(supportText);
|
|
101
|
+
const safeFooterLabel = escapeHtml(footerLabel);
|
|
102
|
+
const safeBrandLabel = escapeHtml(brandLabel || projectName);
|
|
103
|
+
const safeSlideCounter = escapeHtml(slideCounter);
|
|
104
|
+
|
|
105
|
+
return `<!DOCTYPE html>
|
|
106
|
+
<html lang="pt-BR">
|
|
107
|
+
<head>
|
|
108
|
+
<meta charset="UTF-8" />
|
|
109
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
110
|
+
<style>
|
|
111
|
+
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
112
|
+
body {
|
|
113
|
+
width: 1080px;
|
|
114
|
+
height: 1080px;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
background:
|
|
117
|
+
linear-gradient(115deg, rgba(0, 209, 199, 0.08), transparent 34%),
|
|
118
|
+
radial-gradient(circle at 82% 76%, rgba(0, 209, 199, 0.08), transparent 20%),
|
|
119
|
+
linear-gradient(180deg, #0b1017 0%, #0f1620 58%, #111c28 100%);
|
|
120
|
+
color: #f5f7fa;
|
|
121
|
+
font-family: "Arial Nova", Arial, sans-serif;
|
|
122
|
+
padding: 72px;
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
justify-content: space-between;
|
|
126
|
+
position: relative;
|
|
127
|
+
}
|
|
128
|
+
body::after {
|
|
129
|
+
content: "";
|
|
130
|
+
position: absolute;
|
|
131
|
+
inset: 18px;
|
|
132
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
}
|
|
135
|
+
.topbar {
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: space-between;
|
|
139
|
+
gap: 24px;
|
|
140
|
+
position: relative;
|
|
141
|
+
z-index: 1;
|
|
142
|
+
}
|
|
143
|
+
.grid {
|
|
144
|
+
position: absolute;
|
|
145
|
+
inset: 0;
|
|
146
|
+
background-image:
|
|
147
|
+
linear-gradient(rgba(245,247,250,0.025) 1px, transparent 1px),
|
|
148
|
+
linear-gradient(90deg, rgba(245,247,250,0.025) 1px, transparent 1px);
|
|
149
|
+
background-size: 48px 48px;
|
|
150
|
+
mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 75%);
|
|
151
|
+
pointer-events: none;
|
|
152
|
+
}
|
|
153
|
+
.pill {
|
|
154
|
+
display: inline-flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
background: transparent;
|
|
157
|
+
color: #dffcf7;
|
|
158
|
+
border-radius: 999px;
|
|
159
|
+
border: 1px solid rgba(0, 209, 199, 0.45);
|
|
160
|
+
padding: 12px 20px;
|
|
161
|
+
font-size: 24px;
|
|
162
|
+
font-weight: 700;
|
|
163
|
+
letter-spacing: 0.16em;
|
|
164
|
+
text-transform: uppercase;
|
|
165
|
+
}
|
|
166
|
+
.dateStamp {
|
|
167
|
+
font-size: 24px;
|
|
168
|
+
font-weight: 700;
|
|
169
|
+
color: rgba(245, 247, 250, 0.92);
|
|
170
|
+
letter-spacing: 0.08em;
|
|
171
|
+
border-bottom: 2px solid rgba(0, 209, 199, 0.5);
|
|
172
|
+
padding-bottom: 10px;
|
|
173
|
+
}
|
|
174
|
+
.titleWrap {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-direction: column;
|
|
177
|
+
gap: 24px;
|
|
178
|
+
max-width: 900px;
|
|
179
|
+
position: relative;
|
|
180
|
+
z-index: 1;
|
|
181
|
+
}
|
|
182
|
+
.project {
|
|
183
|
+
font-size: ${fittedTitle.fontSize}px;
|
|
184
|
+
font-weight: 900;
|
|
185
|
+
line-height: ${fittedTitle.lineHeight};
|
|
186
|
+
letter-spacing: -0.05em;
|
|
187
|
+
color: #00d1c7;
|
|
188
|
+
font-family: Georgia, "Times New Roman", serif;
|
|
189
|
+
max-width: ${fittedTitle.maxWidth}px;
|
|
190
|
+
text-wrap: balance;
|
|
191
|
+
overflow-wrap: normal;
|
|
192
|
+
word-break: normal;
|
|
193
|
+
}
|
|
194
|
+
.subtitle {
|
|
195
|
+
display: grid;
|
|
196
|
+
grid-template-columns: 14px 1fr;
|
|
197
|
+
gap: 18px;
|
|
198
|
+
max-width: 760px;
|
|
199
|
+
align-items: start;
|
|
200
|
+
}
|
|
201
|
+
.subtitleBar {
|
|
202
|
+
width: 14px;
|
|
203
|
+
height: 100%;
|
|
204
|
+
min-height: 90px;
|
|
205
|
+
border-radius: 999px;
|
|
206
|
+
background: linear-gradient(180deg, #00d1c7 0%, rgba(0, 209, 199, 0.15) 100%);
|
|
207
|
+
}
|
|
208
|
+
.subtitleText {
|
|
209
|
+
font-size: 36px;
|
|
210
|
+
line-height: 1.22;
|
|
211
|
+
color: #d7dde8;
|
|
212
|
+
max-width: 700px;
|
|
213
|
+
text-wrap: balance;
|
|
214
|
+
}
|
|
215
|
+
.footerSection {
|
|
216
|
+
border-top: 1px solid rgba(184, 194, 207, 0.18);
|
|
217
|
+
padding-top: 26px;
|
|
218
|
+
position: relative;
|
|
219
|
+
z-index: 1;
|
|
220
|
+
}
|
|
221
|
+
.footer {
|
|
222
|
+
display: grid;
|
|
223
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
224
|
+
gap: 24px;
|
|
225
|
+
align-items: end;
|
|
226
|
+
}
|
|
227
|
+
.footerMeta {
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
gap: 14px;
|
|
231
|
+
min-width: 0;
|
|
232
|
+
}
|
|
233
|
+
.deck {
|
|
234
|
+
max-width: 330px;
|
|
235
|
+
font-size: 20px;
|
|
236
|
+
line-height: 1.3;
|
|
237
|
+
color: rgba(245, 247, 250, 0.58);
|
|
238
|
+
letter-spacing: 0.05em;
|
|
239
|
+
text-transform: uppercase;
|
|
240
|
+
}
|
|
241
|
+
.logo {
|
|
242
|
+
color: rgba(245, 247, 250, 0.62);
|
|
243
|
+
font-weight: 700;
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
gap: 14px;
|
|
247
|
+
min-width: 0;
|
|
248
|
+
}
|
|
249
|
+
.logo::before {
|
|
250
|
+
content: "${safeFooterLabel}";
|
|
251
|
+
display: inline-block;
|
|
252
|
+
font-size: 15px;
|
|
253
|
+
letter-spacing: 0.16em;
|
|
254
|
+
text-transform: uppercase;
|
|
255
|
+
color: rgba(0, 209, 199, 0.9);
|
|
256
|
+
}
|
|
257
|
+
.brandName {
|
|
258
|
+
color: rgba(245, 247, 250, 0.62);
|
|
259
|
+
white-space: nowrap;
|
|
260
|
+
overflow: hidden;
|
|
261
|
+
text-overflow: ellipsis;
|
|
262
|
+
}
|
|
263
|
+
.counter {
|
|
264
|
+
color: #00d1c7;
|
|
265
|
+
font-weight: 700;
|
|
266
|
+
font-size: 30px;
|
|
267
|
+
letter-spacing: 0.04em;
|
|
268
|
+
align-self: end;
|
|
269
|
+
}
|
|
270
|
+
</style>
|
|
271
|
+
</head>
|
|
272
|
+
<body>
|
|
273
|
+
<div class="grid"></div>
|
|
274
|
+
<div class="topbar">
|
|
275
|
+
<div class="pill">NOTÍCIAS DO DIA</div>
|
|
276
|
+
<div class="dateStamp">${safeDate}</div>
|
|
277
|
+
</div>
|
|
278
|
+
<div class="titleWrap">
|
|
279
|
+
<div class="project">${safeProjectName}</div>
|
|
280
|
+
<div class="subtitle">
|
|
281
|
+
<div class="subtitleBar"></div>
|
|
282
|
+
<div class="subtitleText">${safeSupportText}</div>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
<div class="footerSection">
|
|
286
|
+
<div class="footer">
|
|
287
|
+
<div class="footerMeta">
|
|
288
|
+
<div class="deck">${safeDeck}</div>
|
|
289
|
+
<div class="logo"><span class="brandName">${safeBrandLabel}</span></div>
|
|
290
|
+
</div>
|
|
291
|
+
<div class="counter">${safeSlideCounter}</div>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
</body>
|
|
295
|
+
</html>`;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export function createEditorialClosingSlideHtml({
|
|
299
|
+
projectName,
|
|
300
|
+
title = 'Continue a leitura pelas fontes originais.',
|
|
301
|
+
intro = '',
|
|
302
|
+
sources = [],
|
|
303
|
+
primarySourceName,
|
|
304
|
+
primarySourceUrl,
|
|
305
|
+
qrMarkup = '',
|
|
306
|
+
communicationChannels = [],
|
|
307
|
+
showCommunicationChannels = false,
|
|
308
|
+
slideCounter = '6/6',
|
|
309
|
+
}) {
|
|
310
|
+
const safeProjectName = escapeHtml(projectName);
|
|
311
|
+
const safeTitle = escapeHtml(title);
|
|
312
|
+
const safeIntro = escapeHtml(intro);
|
|
313
|
+
const safePrimarySourceName = escapeHtml(primarySourceName || '');
|
|
314
|
+
const safePrimarySourceUrl = escapeHtml(primarySourceUrl || '');
|
|
315
|
+
const safeSlideCounter = escapeHtml(slideCounter);
|
|
316
|
+
const normalizedChannels = normalizeEditorialCommunicationChannels(communicationChannels);
|
|
317
|
+
const visibleChannels = normalizedChannels.slice(0, 5);
|
|
318
|
+
const extraChannelsCount = Math.max(normalizedChannels.length - visibleChannels.length, 0);
|
|
319
|
+
const introMarkup = safeIntro
|
|
320
|
+
? `<div class="intro"><div>${safeIntro}</div></div>`
|
|
321
|
+
: '';
|
|
322
|
+
const renderedSources = sources.map((source) => `
|
|
323
|
+
<div class="sourceItem">
|
|
324
|
+
<div class="sourceLabel">${escapeHtml(source.label)}</div>
|
|
325
|
+
<div class="sourceUrl">${escapeHtml(source.url)}</div>
|
|
326
|
+
</div>`).join('');
|
|
327
|
+
const channelsMarkup = showCommunicationChannels && visibleChannels.length
|
|
328
|
+
? `
|
|
329
|
+
<div class="channelsSection">
|
|
330
|
+
<div class="channelsHeader">OUTROS CANAIS</div>
|
|
331
|
+
<div class="channelGrid">${visibleChannels.map((channel) => `
|
|
332
|
+
<div class="channelCard">
|
|
333
|
+
<div class="channelLabel">${escapeHtml(channel.label)}</div>
|
|
334
|
+
<div class="channelValue">${escapeHtml(channel.value)}</div>
|
|
335
|
+
</div>`).join('')}${extraChannelsCount > 0 ? `
|
|
336
|
+
<div class="channelCard channelCardMuted">
|
|
337
|
+
<div class="channelLabel">Rede extra</div>
|
|
338
|
+
<div class="channelValue">+${extraChannelsCount} canal${extraChannelsCount > 1 ? 'is' : ''}</div>
|
|
339
|
+
</div>` : ''}
|
|
340
|
+
</div>
|
|
341
|
+
</div>`
|
|
342
|
+
: '';
|
|
343
|
+
const primarySourceCardLabel = safePrimarySourceUrl ? 'LINK DIRETO' : 'LINKS NA DESCRICAO';
|
|
344
|
+
const primarySourceCardValue = safePrimarySourceUrl || 'Abra a descricao para acessar a fonte principal.';
|
|
345
|
+
const qrContentMarkup = qrMarkup
|
|
346
|
+
? `<div class="qrGraphic" aria-hidden="true">${qrMarkup}</div>`
|
|
347
|
+
: `<div class="qrFallback">${primarySourceCardLabel}</div>`;
|
|
348
|
+
|
|
349
|
+
return `<!DOCTYPE html>
|
|
350
|
+
<html lang="pt-BR">
|
|
351
|
+
<head>
|
|
352
|
+
<meta charset="UTF-8" />
|
|
353
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
354
|
+
<style>
|
|
355
|
+
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
356
|
+
body {
|
|
357
|
+
width: 1080px;
|
|
358
|
+
height: 1080px;
|
|
359
|
+
overflow: hidden;
|
|
360
|
+
background:
|
|
361
|
+
linear-gradient(120deg, rgba(0, 209, 199, 0.07), transparent 36%),
|
|
362
|
+
radial-gradient(circle at 78% 16%, rgba(0, 209, 199, 0.11), transparent 22%),
|
|
363
|
+
linear-gradient(180deg, #0c1118 0%, #111925 60%, #0d1118 100%);
|
|
364
|
+
color: #f5f7fa;
|
|
365
|
+
font-family: "Arial Nova", Arial, sans-serif;
|
|
366
|
+
padding: 72px;
|
|
367
|
+
display: grid;
|
|
368
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
369
|
+
gap: 18px;
|
|
370
|
+
position: relative;
|
|
371
|
+
}
|
|
372
|
+
body::after {
|
|
373
|
+
content: "";
|
|
374
|
+
position: absolute;
|
|
375
|
+
inset: 18px;
|
|
376
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
377
|
+
pointer-events: none;
|
|
378
|
+
}
|
|
379
|
+
.eyebrow {
|
|
380
|
+
color: #00d1c7;
|
|
381
|
+
font-size: 24px;
|
|
382
|
+
font-weight: 800;
|
|
383
|
+
letter-spacing: 0.16em;
|
|
384
|
+
text-transform: uppercase;
|
|
385
|
+
position: relative;
|
|
386
|
+
z-index: 1;
|
|
387
|
+
}
|
|
388
|
+
.contentArea {
|
|
389
|
+
min-height: 0;
|
|
390
|
+
display: flex;
|
|
391
|
+
flex-direction: column;
|
|
392
|
+
justify-content: center;
|
|
393
|
+
gap: 34px;
|
|
394
|
+
position: relative;
|
|
395
|
+
z-index: 1;
|
|
396
|
+
}
|
|
397
|
+
.titleBlock {
|
|
398
|
+
display: flex;
|
|
399
|
+
flex-direction: column;
|
|
400
|
+
gap: 0;
|
|
401
|
+
max-width: 730px;
|
|
402
|
+
}
|
|
403
|
+
.title {
|
|
404
|
+
font-size: 62px;
|
|
405
|
+
line-height: 0.96;
|
|
406
|
+
font-weight: 900;
|
|
407
|
+
max-width: 730px;
|
|
408
|
+
letter-spacing: -0.04em;
|
|
409
|
+
font-family: Georgia, "Times New Roman", serif;
|
|
410
|
+
text-wrap: balance;
|
|
411
|
+
color: #00d1c7;
|
|
412
|
+
}
|
|
413
|
+
.intro {
|
|
414
|
+
display: block;
|
|
415
|
+
font-size: 21px;
|
|
416
|
+
line-height: 1.34;
|
|
417
|
+
color: #c7d0db;
|
|
418
|
+
max-width: 790px;
|
|
419
|
+
position: relative;
|
|
420
|
+
z-index: 1;
|
|
421
|
+
}
|
|
422
|
+
.sources {
|
|
423
|
+
display: grid;
|
|
424
|
+
grid-template-columns: 1fr 280px;
|
|
425
|
+
gap: 28px;
|
|
426
|
+
align-items: center;
|
|
427
|
+
}
|
|
428
|
+
.sourceList {
|
|
429
|
+
display: flex;
|
|
430
|
+
flex-direction: column;
|
|
431
|
+
gap: 12px;
|
|
432
|
+
padding-top: 4px;
|
|
433
|
+
}
|
|
434
|
+
.sourcesHeader {
|
|
435
|
+
font-size: 16px;
|
|
436
|
+
font-weight: 800;
|
|
437
|
+
letter-spacing: 0.16em;
|
|
438
|
+
text-transform: uppercase;
|
|
439
|
+
color: rgba(0, 209, 199, 0.88);
|
|
440
|
+
margin-bottom: 10px;
|
|
441
|
+
}
|
|
442
|
+
.sourcesFooter {
|
|
443
|
+
margin-top: 10px;
|
|
444
|
+
font-size: 15px;
|
|
445
|
+
font-weight: 800;
|
|
446
|
+
letter-spacing: 0.16em;
|
|
447
|
+
text-transform: uppercase;
|
|
448
|
+
color: rgba(245, 247, 250, 0.56);
|
|
449
|
+
}
|
|
450
|
+
.sourceItem {
|
|
451
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
452
|
+
border-left: 4px solid rgba(0, 209, 199, 0.75);
|
|
453
|
+
border-radius: 22px;
|
|
454
|
+
padding: 14px 18px 14px 16px;
|
|
455
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.025) 100%);
|
|
456
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
|
457
|
+
}
|
|
458
|
+
.sourceLabel {
|
|
459
|
+
font-size: 24px;
|
|
460
|
+
font-weight: 700;
|
|
461
|
+
color: #f5f7fa;
|
|
462
|
+
margin-bottom: 4px;
|
|
463
|
+
}
|
|
464
|
+
.sourceUrl {
|
|
465
|
+
font-size: 18px;
|
|
466
|
+
line-height: 1.3;
|
|
467
|
+
color: #b8c2cf;
|
|
468
|
+
word-break: break-word;
|
|
469
|
+
}
|
|
470
|
+
.channelsSection {
|
|
471
|
+
display: flex;
|
|
472
|
+
flex-direction: column;
|
|
473
|
+
gap: 12px;
|
|
474
|
+
max-width: 860px;
|
|
475
|
+
}
|
|
476
|
+
.channelsHeader {
|
|
477
|
+
font-size: 16px;
|
|
478
|
+
font-weight: 800;
|
|
479
|
+
letter-spacing: 0.16em;
|
|
480
|
+
text-transform: uppercase;
|
|
481
|
+
color: rgba(0, 209, 199, 0.88);
|
|
482
|
+
}
|
|
483
|
+
.channelGrid {
|
|
484
|
+
display: flex;
|
|
485
|
+
flex-wrap: wrap;
|
|
486
|
+
gap: 12px;
|
|
487
|
+
}
|
|
488
|
+
.channelCard {
|
|
489
|
+
min-width: 0;
|
|
490
|
+
max-width: calc(50% - 6px);
|
|
491
|
+
flex: 1 1 250px;
|
|
492
|
+
border-radius: 20px;
|
|
493
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
494
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
|
|
495
|
+
padding: 12px 16px 13px;
|
|
496
|
+
}
|
|
497
|
+
.channelCardMuted {
|
|
498
|
+
border-style: dashed;
|
|
499
|
+
background: rgba(255, 255, 255, 0.025);
|
|
500
|
+
}
|
|
501
|
+
.channelLabel {
|
|
502
|
+
font-size: 13px;
|
|
503
|
+
font-weight: 800;
|
|
504
|
+
letter-spacing: 0.14em;
|
|
505
|
+
text-transform: uppercase;
|
|
506
|
+
color: rgba(0, 209, 199, 0.9);
|
|
507
|
+
margin-bottom: 6px;
|
|
508
|
+
}
|
|
509
|
+
.channelValue {
|
|
510
|
+
font-size: 20px;
|
|
511
|
+
line-height: 1.22;
|
|
512
|
+
font-weight: 700;
|
|
513
|
+
color: #f5f7fa;
|
|
514
|
+
word-break: break-word;
|
|
515
|
+
}
|
|
516
|
+
.qrWrap {
|
|
517
|
+
background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(232, 238, 244, 0.96) 100%);
|
|
518
|
+
border-radius: 24px;
|
|
519
|
+
padding: 14px;
|
|
520
|
+
display: flex;
|
|
521
|
+
flex-direction: column;
|
|
522
|
+
gap: 10px;
|
|
523
|
+
align-items: stretch;
|
|
524
|
+
color: #10141c;
|
|
525
|
+
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
|
|
526
|
+
}
|
|
527
|
+
.qrFallback {
|
|
528
|
+
min-height: 220px;
|
|
529
|
+
border-radius: 16px;
|
|
530
|
+
display: flex;
|
|
531
|
+
align-items: center;
|
|
532
|
+
justify-content: center;
|
|
533
|
+
padding: 24px;
|
|
534
|
+
text-align: center;
|
|
535
|
+
font-size: 28px;
|
|
536
|
+
font-weight: 900;
|
|
537
|
+
letter-spacing: 0.12em;
|
|
538
|
+
background:
|
|
539
|
+
linear-gradient(135deg, rgba(0, 209, 199, 0.18) 0%, rgba(0, 209, 199, 0.04) 100%),
|
|
540
|
+
repeating-linear-gradient(
|
|
541
|
+
45deg,
|
|
542
|
+
rgba(16, 20, 28, 0.08) 0,
|
|
543
|
+
rgba(16, 20, 28, 0.08) 10px,
|
|
544
|
+
rgba(255, 255, 255, 0.18) 10px,
|
|
545
|
+
rgba(255, 255, 255, 0.18) 20px
|
|
546
|
+
);
|
|
547
|
+
border-radius: 16px;
|
|
548
|
+
}
|
|
549
|
+
.qrGraphic {
|
|
550
|
+
min-height: 220px;
|
|
551
|
+
border-radius: 16px;
|
|
552
|
+
display: flex;
|
|
553
|
+
align-items: center;
|
|
554
|
+
justify-content: center;
|
|
555
|
+
background: #ffffff;
|
|
556
|
+
padding: 12px;
|
|
557
|
+
}
|
|
558
|
+
.qrGraphic svg {
|
|
559
|
+
display: block;
|
|
560
|
+
width: 100%;
|
|
561
|
+
height: auto;
|
|
562
|
+
max-width: 220px;
|
|
563
|
+
max-height: 220px;
|
|
564
|
+
}
|
|
565
|
+
.qrWrap span {
|
|
566
|
+
font-size: 16px;
|
|
567
|
+
font-weight: 700;
|
|
568
|
+
text-align: center;
|
|
569
|
+
line-height: 1.25;
|
|
570
|
+
}
|
|
571
|
+
.qrUrl {
|
|
572
|
+
font-size: 16px;
|
|
573
|
+
line-height: 1.3;
|
|
574
|
+
font-weight: 700;
|
|
575
|
+
color: rgba(16, 20, 28, 0.78);
|
|
576
|
+
word-break: break-word;
|
|
577
|
+
text-align: center;
|
|
578
|
+
}
|
|
579
|
+
.footerSection {
|
|
580
|
+
border-top: 1px solid rgba(184, 194, 207, 0.18);
|
|
581
|
+
padding-top: 26px;
|
|
582
|
+
position: relative;
|
|
583
|
+
z-index: 1;
|
|
584
|
+
}
|
|
585
|
+
.projectBand {
|
|
586
|
+
align-self: stretch;
|
|
587
|
+
min-height: 168px;
|
|
588
|
+
display: flex;
|
|
589
|
+
align-items: center;
|
|
590
|
+
justify-content: space-between;
|
|
591
|
+
gap: 24px;
|
|
592
|
+
}
|
|
593
|
+
.projectMeta {
|
|
594
|
+
display: flex;
|
|
595
|
+
flex-direction: column;
|
|
596
|
+
gap: 0;
|
|
597
|
+
}
|
|
598
|
+
.projectName {
|
|
599
|
+
font-size: 72px;
|
|
600
|
+
line-height: 0.96;
|
|
601
|
+
font-weight: 900;
|
|
602
|
+
color: rgba(0, 209, 199, 0.9);
|
|
603
|
+
letter-spacing: -0.05em;
|
|
604
|
+
font-family: Georgia, "Times New Roman", serif;
|
|
605
|
+
}
|
|
606
|
+
.counter {
|
|
607
|
+
font-size: 30px;
|
|
608
|
+
color: #00d1c7;
|
|
609
|
+
font-weight: 700;
|
|
610
|
+
letter-spacing: 0.04em;
|
|
611
|
+
padding-bottom: 10px;
|
|
612
|
+
}
|
|
613
|
+
</style>
|
|
614
|
+
</head>
|
|
615
|
+
<body>
|
|
616
|
+
<div class="eyebrow">SAIBA MAIS...</div>
|
|
617
|
+
<div class="contentArea">
|
|
618
|
+
<div class="titleBlock">
|
|
619
|
+
<div class="title">${safeTitle}</div>
|
|
620
|
+
${introMarkup}
|
|
621
|
+
</div>
|
|
622
|
+
<div class="sources">
|
|
623
|
+
<div class="sourceList">
|
|
624
|
+
<div class="sourcesHeader">FONTES VERIFICADAS</div>${renderedSources}
|
|
625
|
+
<div class="sourcesFooter">LINKS NA DESCRIÇÃO</div>
|
|
626
|
+
</div>
|
|
627
|
+
<div class="qrWrap">
|
|
628
|
+
${qrContentMarkup}
|
|
629
|
+
<span>Fonte principal<br />${safePrimarySourceName}</span>
|
|
630
|
+
<div class="qrUrl">${primarySourceCardValue}</div>
|
|
631
|
+
</div>
|
|
632
|
+
</div>
|
|
633
|
+
${channelsMarkup}
|
|
634
|
+
</div>
|
|
635
|
+
<div class="footerSection">
|
|
636
|
+
<div class="projectBand">
|
|
637
|
+
<div class="projectMeta">
|
|
638
|
+
<div class="projectName">${safeProjectName}</div>
|
|
639
|
+
</div>
|
|
640
|
+
<div class="counter">${safeSlideCounter}</div>
|
|
641
|
+
</div>
|
|
642
|
+
</div>
|
|
643
|
+
</body>
|
|
644
|
+
</html>`;
|
|
645
|
+
}
|