File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed
Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ <section class =" extension-promo" >
2+ <p class =" banner-text" >
3+ Love these Copy Title & URL bookmarklets? Get the Chrome extension with
4+ customizable hotkeys to speed up your workflow!
5+ </p >
6+ <a
7+ href =" https://chromewebstore.google.com/detail/copy-url-and-title-of-cur/fgbholfmconpcpilaibkfakecpplekff?utm_source=isqua_github&utm_medium=website&utm_campaign=bookmarklets_promo"
8+ target =" _blank"
9+ class =" bookmarklet install-btn"
10+ >
11+ Add to Chrome
12+ </a >
13+ </section >
14+
15+ <style >
16+ .extension-promo {
17+ padding: 1rem 1.5rem;
18+ margin: 1.5rem 0;
19+ border-radius: 0.25rem;
20+ position: relative;
21+ background-color: #fff;
22+ }
23+
24+ .extension-promo::before {
25+ content: "";
26+ position: absolute;
27+ inset: -0.25rem;
28+ border-radius: 0.5rem;
29+ background: linear-gradient(
30+ to left bottom,
31+ rgb(198, 255, 221),
32+ rgb(251, 215, 134),
33+ rgb(247, 121, 125)
34+ );
35+ opacity: 0.5;
36+ z-index: -1;
37+ }
38+
39+ .banner-text {
40+ font-size: 20px;
41+ margin: 0 0 0.5rem;
42+ }
43+
44+ a.install-btn {
45+ cursor: pointer;
46+ background-color: #1abef1;
47+ color: #fff;
48+ }
49+ </style >
Original file line number Diff line number Diff line change 11---
2+ import ExtensionPromo from " ../components/ExtensionPromo.astro" ;
23import Layout from " ../components/Layout.astro" ;
34
45import { getCollection } from " astro:content" ;
@@ -51,6 +52,7 @@ const sections = (await getCollection("sections")).map((s) => ({
5152 </button >
5253 </dt >
5354 <dd >{ bookmarklet .text } </dd >
55+ { bookmarklet .id === ' copy-title-url-md' && <ExtensionPromo />}
5456 </>
5557 ))}
5658 </dl >
You can’t perform that action at this time.
0 commit comments