Skip to content

Commit 3dfc108

Browse files
Merge pull request #3 from ExtractPDF4J/codex/add-rel-attribute-to-target-blank-links
Add rel noopener noreferrer to external links
2 parents 0b4550b + 8242ee1 commit 3dfc108

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/ExtractPDF4JLanding.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function ExtractPDF4JLanding(){
2727
<a href={import.meta.env.BASE_URL + 'docs/index.html'} className="hover:text-white transition">Docs</a>
2828
</nav>
2929
<div className="flex items-center gap-2">
30-
<a href="https://github.com/yourusername/ExtractPDF4J" target="_blank" className="inline-flex items-center gap-2 rounded-xl bg-white/10 hover:bg-white/20 transition px-3 py-2 text-sm">
30+
<a href="https://github.com/yourusername/ExtractPDF4J" target="_blank" rel="noopener noreferrer" className="inline-flex items-center gap-2 rounded-xl bg-white/10 hover:bg-white/20 transition px-3 py-2 text-sm">
3131
<Github className="size-4" /> GitHub
3232
</a>
3333
</div>
@@ -53,7 +53,7 @@ export default function ExtractPDF4JLanding(){
5353
A modern, open-source library inspired by Camelot & Tabula, built for the JVM. Robust parsing, multi-page detection, and OCR for tough scans.
5454
</p>
5555
<div className="mt-8 flex flex-wrap items-center justify-center gap-3">
56-
<a href="https://github.com/yourusername/ExtractPDF4J" target="_blank" className="inline-flex items-center gap-2 rounded-2xl bg-sky-500 px-5 py-3 font-medium text-neutral-900 shadow-lg hover:shadow-xl active:scale-[.99]">
56+
<a href="https://github.com/yourusername/ExtractPDF4J" target="_blank" rel="noopener noreferrer" className="inline-flex items-center gap-2 rounded-2xl bg-sky-500 px-5 py-3 font-medium text-neutral-900 shadow-lg hover:shadow-xl active:scale-[.99]">
5757
<Github className="size-5" /> Star on GitHub
5858
</a>
5959
<a href={import.meta.env.BASE_URL + 'docs/index.html'} className="inline-flex items-center gap-2 rounded-2xl border border-white/15 px-5 py-3 font-medium hover:bg-white/10">
@@ -94,7 +94,7 @@ export default function ExtractPDF4JLanding(){
9494
</div>
9595
<pre className="mt-4 overflow-x-auto rounded-xl bg-neutral-900 p-4 text-sm text-neutral-200">{maven}</pre>
9696
<div className="mt-4 flex flex-wrap gap-2 text-sm text-neutral-300">
97-
<a href="https://github.com/yourusername/ExtractPDF4J/releases" target="_blank" className="inline-flex items-center gap-2 rounded-lg bg-white/10 px-3 py-2 hover:bg-white/20"><Download className="size-4"/> Releases</a>
97+
<a href="https://github.com/yourusername/ExtractPDF4J/releases" target="_blank" rel="noopener noreferrer" className="inline-flex items-center gap-2 rounded-lg bg-white/10 px-3 py-2 hover:bg-white/20"><Download className="size-4"/> Releases</a>
9898
<a href={import.meta.env.BASE_URL + 'docs/index.html'} className="inline-flex items-center gap-2 rounded-lg bg-white/10 px-3 py-2 hover:bg-white/20"><BookOpen className="size-4"/> Read the docs</a>
9999
</div>
100100
</div>
@@ -116,7 +116,7 @@ export default function ExtractPDF4JLanding(){
116116
<div className="mx-auto max-w-7xl px-4 py-10 text-sm text-neutral-400 flex flex-col md:flex-row items-center justify-between gap-4">
117117
<p>© {new Date().getFullYear()} ExtractPDF4J • Apache-2.0</p>
118118
<div className="flex items-center gap-3">
119-
<a href="https://github.com/yourusername/ExtractPDF4J" target="_blank" className="inline-flex items-center gap-2 hover:text-white"><Github className="size-4"/> GitHub</a>
119+
<a href="https://github.com/yourusername/ExtractPDF4J" target="_blank" rel="noopener noreferrer" className="inline-flex items-center gap-2 hover:text-white"><Github className="size-4"/> GitHub</a>
120120
<a href={import.meta.env.BASE_URL + 'docs/index.html'} className="inline-flex items-center gap-2 hover:text-white"><BookOpen className="size-4"/> Docs</a>
121121
</div>
122122
</div>

0 commit comments

Comments
 (0)