Skip to content

Commit d0a7366

Browse files
committed
feat: add a link to the copy url & title chrome extension
1 parent ab09841 commit d0a7366

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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>

src/pages/index.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import ExtensionPromo from "../components/ExtensionPromo.astro";
23
import Layout from "../components/Layout.astro";
34
45
import { 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>

0 commit comments

Comments
 (0)