Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ads/creative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export function renderCreativeHtml(creative: AdCreative, clickUrl: string): stri
a{text-decoration:none;display:block}
.cp-ad{display:flex;align-items:center;gap:8px;width:100%;height:${h}px;
background:${creative.bgColor};font-family:${creative.fontFamily};font-size:13px;
padding:0 12px;overflow:hidden;border-radius:8px;
padding:0 12px;overflow:hidden;border-radius:0;
border:1px solid rgba(255,255,255,.08);border-left:3px solid ${creative.accentColor}}
</style></head><body>
<a class="cp-ad" href="${esc(clickUrl)}" target="_blank" rel="noopener sponsored">
Expand Down Expand Up @@ -526,7 +526,7 @@ export function renderCreativeHtml(creative: AdCreative, clickUrl: string): stri
*{box-sizing:border-box;margin:0}
a{text-decoration:none;display:block}
.cp-ad{position:relative;width:${w}px;height:${h}px;background:${bg};font-family:${creative.fontFamily};
border-radius:8px;padding:${isMobile ? "8px 10px" : "14px"};overflow:hidden;
border-radius:0;padding:${isMobile ? "8px 10px" : "14px"};overflow:hidden;
border:1px solid rgba(255,255,255,.08)}
</style></head><body>
<a class="cp-ad" href="${esc(clickUrl)}" target="_blank" rel="noopener sponsored">${rectBg}${inner}</a>
Expand Down
4 changes: 2 additions & 2 deletions lib/ads/house.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function renderHouseAdHtml(
a{text-decoration:none;display:block}
.cp-ad{display:flex;align-items:center;gap:8px;width:100%;height:${h}px;background:#070a10;
font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:13px;padding:0 12px;
overflow:hidden;border-radius:8px;border:1px solid rgba(255,255,255,.08);border-left:3px solid #6ee7b7}
overflow:hidden;border-radius:0;border:1px solid rgba(255,255,255,.08);border-left:3px solid #6ee7b7}
</style></head><body>
<a class="cp-ad" href="${esc(clickUrl)}" target="_blank" rel="noopener sponsored">
<span style="font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#6ee7b7;flex:0 0 auto">CrawlProof Ads</span>
Expand Down Expand Up @@ -169,7 +169,7 @@ export function renderHouseAdHtml(
return `<!doctype html><html><head><meta charset="utf-8"><style>
*{box-sizing:border-box;margin:0}
a{text-decoration:none;display:block}
.cp-ad{position:relative;width:${w}px;height:${h}px;overflow:hidden;border-radius:8px;
.cp-ad{position:relative;width:${w}px;height:${h}px;overflow:hidden;border-radius:0;
border:1px solid rgba(255,255,255,.08);background:#070a10;
font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.cp-ad .bg{position:absolute;inset:0;z-index:0;background:url("${esc(img)}") center/cover no-repeat}
Expand Down
2 changes: 1 addition & 1 deletion lib/ads/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export function renderTerminalHtml(creative: AdCreative, clickUrl: string): stri
return `<!doctype html><html><head><meta charset="utf-8"><style>
*{box-sizing:border-box;margin:0}
a{text-decoration:none;display:block}
.cp-ad{background:${creative.bgColor};color:${creative.fgColor};border-radius:8px;
.cp-ad{background:${creative.bgColor};color:${creative.fgColor};border-radius:0;
border:1px solid rgba(255,255,255,.08);padding:10px 12px;overflow:auto}
pre{margin:0;font:12px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
white-space:pre;color:${creative.fgColor}}
Expand Down
Loading