Skip to content

Commit ce127ac

Browse files
committed
chore: open external link in new tab
1 parent 5c4b457 commit ce127ac

8 files changed

+47
-13
lines changed

apps/web/components/code-demo.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ function EditOnGithubButton({ githubSlug }: { githubSlug: string }) {
272272
return (
273273
<a
274274
href={href}
275-
rel="noreferrer nofollow noopener"
275+
target="_blank"
276+
rel="nofollow noopener noreferrer"
276277
className="inline-flex w-fit items-center justify-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2 text-center text-xs font-medium text-gray-900 hover:bg-gray-100 hover:text-primary-700 focus:text-primary-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-700"
277278
>
278279
<svg

apps/web/components/homepage/contributors-section.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export async function ContributorsSection() {
7272
<p>Become a member of a community of developers by supporting Flowbite</p>
7373
</div>
7474
<Link
75+
rel="noopener"
76+
target="_blank"
7577
href="https://github.com/themesberg/flowbite-react"
7678
className="flex items-center gap-2 whitespace-nowrap text-base font-medium text-cyan-700 hover:underline"
7779
>

apps/web/components/homepage/featured-section.tsx

+18-9
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ export function FeaturedSection() {
88
<div className="mx-auto mb-4 text-base tracking-tight lg:mx-0 lg:mb-0">Featured in:</div>
99
<div className="flex flex-wrap items-center justify-center gap-8">
1010
<Link
11-
href="https://www.reddit.com/r/flowbite/"
12-
rel="nofollow noreferrer noopener"
1311
aria-label="Reddit - Flowbite"
12+
href="https://www.reddit.com/r/flowbite/"
13+
rel="nofollow noopener noreferrer"
14+
target="_blank"
1415
>
1516
<svg width="105" height="36" viewBox="0 0 105 36" fill="none" xmlns="http://www.w3.org/2000/svg">
1617
<path
@@ -31,7 +32,12 @@ export function FeaturedSection() {
3132
/>
3233
</svg>
3334
</Link>
34-
<Link href="https://dev.to/t/flowbite" rel="nofollow noreferrer noopener" aria-label="DEV - Flowbite">
35+
<Link
36+
aria-label="DEV - Flowbite"
37+
href="https://dev.to/t/flowbite"
38+
rel="nofollow noopener noreferrer"
39+
target="_blank"
40+
>
3541
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
3642
<path
3743
d="M9.8811 14.0207C9.57556 13.7923 9.26923 13.6781 8.96369 13.6781H7.59032V21.905H8.96447C9.27002 21.905 9.57634 21.7908 9.88189 21.5624C10.1874 21.334 10.3402 20.9915 10.3402 20.534V15.0492C10.3394 14.5924 10.1859 14.2491 9.8811 14.0207ZM32.244 0.138184H3.87892C1.97321 0.138184 0.4266 1.68086 0.421875 3.58735V31.9682C0.4266 33.8747 1.97321 35.4174 3.87892 35.4174H32.244C34.1505 35.4174 35.6963 33.8747 35.701 31.9682V3.58735C35.6963 1.68086 34.1497 0.138184 32.244 0.138184ZM12.5648 20.5489C12.5648 22.0302 11.6506 24.2745 8.75658 24.2698H5.10266V11.2401H8.83375C11.6246 11.2401 12.5633 13.4813 12.564 14.9633L12.5648 20.5489ZM20.4932 13.5671H16.2975V16.5926H18.8623V18.9212H16.2975V21.9459H20.494V24.2745H15.5974C14.7186 24.2973 13.9878 23.6028 13.9658 22.7239V12.8718C13.9445 11.9937 14.6398 11.2645 15.5179 11.2425H20.494L20.4932 13.5671ZM28.6547 22.646C27.6152 25.0675 25.7528 24.5856 24.9188 22.646L21.8847 11.2433H24.4495L26.7891 20.1985L29.1177 11.2433H31.6833L28.6547 22.646Z"
@@ -40,9 +46,10 @@ export function FeaturedSection() {
4046
</svg>
4147
</Link>
4248
<Link
43-
href="https://www.producthunt.com/products/flowbite"
44-
rel="nofollow noreferrer noopener"
4549
aria-label="Product Hunt - Flowbite"
50+
href="https://www.producthunt.com/products/flowbite"
51+
rel="nofollow noopener noreferrer"
52+
target="_blank"
4653
>
4754
<svg width="153" height="36" viewBox="0 0 153 36" fill="none" xmlns="http://www.w3.org/2000/svg">
4855
<path
@@ -60,9 +67,10 @@ export function FeaturedSection() {
6067
</svg>
6168
</Link>
6269
<Link
63-
href="https://news.ycombinator.com/item?id=28561468"
64-
rel="nofollow noreferrer noopener"
6570
aria-label="Y Combinator - Flowbite"
71+
href="https://news.ycombinator.com/item?id=28561468"
72+
rel="nofollow noopener noreferrer"
73+
target="_blank"
6674
>
6775
<svg width="161" height="34" viewBox="0 0 161 34" fill="none" xmlns="http://www.w3.org/2000/svg">
6876
<path d="M33.6816 0.226074H0.578125V33.3295H33.6816V0.226074Z" fill="#6B7280" />
@@ -113,9 +121,10 @@ export function FeaturedSection() {
113121
</svg>
114122
</Link>
115123
<Link
116-
href="https://www.youtube.com/channel/UC_Ms4V2kYDsh7F_CSsHyQ6A"
117-
rel="nofollow noreferrer noopener"
118124
aria-label="YoutTube - Flowbite"
125+
href="https://www.youtube.com/channel/UC_Ms4V2kYDsh7F_CSsHyQ6A"
126+
rel="nofollow noopener noreferrer"
127+
target="_blank"
119128
>
120129
<svg width="113" height="24" viewBox="0 0 113 24" fill="none" xmlns="http://www.w3.org/2000/svg">
121130
<path

apps/web/components/homepage/figma-section.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export function FigmaSection() {
2020
<p className="self-stretch">Check out the following resources to learn more about Flowbite Figma:</p>
2121
<div className="isolate flex flex-col items-start gap-4 self-stretch">
2222
<a
23+
rel="nofollow noopener noreferrer"
24+
target="_blank"
2325
href="https://www.figma.com/file/xYaJr6UvThCW2LM2RjLeJf/flowbite-pro-figma-2.6.0?type=design&node-id=18-0&t=jKFrn2Dz5D8jhk7d-0"
2426
className="inline-flex max-w-lg items-center justify-start gap-5 self-stretch rounded-lg border border-gray-300 bg-white px-4 py-3.5 text-center text-base font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 sm:gap-7 dark:border-gray-600 dark:bg-gray-800 dark:text-white dark:hover:border-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-700"
2527
>
@@ -65,6 +67,8 @@ export function FigmaSection() {
6567
</div>
6668
</a>
6769
<a
70+
rel="noopener"
71+
target="_blank"
6872
href="https://flowbite.com/figma/"
6973
className="inline-flex max-w-lg items-center justify-start gap-4 self-stretch rounded-lg border border-gray-300 bg-white px-4 py-3.5 text-center text-base font-medium text-gray-900 placeholder:py-3.5 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 sm:gap-6 dark:border-gray-600 dark:bg-gray-800 dark:text-white dark:hover:border-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-700"
7074
>

apps/web/components/homepage/react-section.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ export function ReactSection() {
3939
React UI components
4040
</h2>
4141
<p className="text-lg text-gray-500 dark:text-gray-400">
42-
<a href="" className="text-lg font-medium text-gray-900 underline hover:no-underline dark:text-white">
42+
<Link
43+
href="/"
44+
className="text-lg font-medium text-gray-900 underline hover:no-underline dark:text-white"
45+
>
4346
Flowbite React
44-
</a>{" "}
47+
</Link>{" "}
4548
is a free and open-source UI component library based on accessible React components and Tailwind CSS.
4649
</p>
4750
<p className="text-lg text-gray-500 dark:text-gray-400">

apps/web/components/homepage/social-proof-section.tsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ export async function SocialProofSection() {
9090
<div className="flex w-full flex-col items-start gap-6 md:gap-3">
9191
<div className="flex flex-row items-start gap-2 self-stretch md:justify-between md:gap-2 md:pr-16 lg:justify-end lg:gap-2 lg:pr-0">
9292
<a
93+
rel="noopener"
94+
target="_blank"
9395
href="https://github.com/themesberg/flowbite-react"
9496
className="flex w-full max-w-[272px] flex-col items-start gap-4 rounded-lg px-4 py-2 text-gray-400 hover:bg-gray-50 lg:px-8 lg:py-6 dark:hover:bg-gray-800"
9597
>
@@ -114,6 +116,8 @@ export async function SocialProofSection() {
114116
</div>
115117
</a>
116118
<a
119+
rel="nofollow noopener noreferrer"
120+
target="_blank"
117121
href="https://www.npmjs.com/package/flowbite-react"
118122
className="flex w-full max-w-[272px] flex-col items-start gap-4 rounded-lg px-4 py-2 text-gray-400 hover:bg-gray-50 lg:px-8 lg:py-6 dark:hover:bg-gray-800"
119123
>
@@ -131,6 +135,8 @@ export async function SocialProofSection() {
131135
</div>
132136
<div className="flex flex-row items-start gap-2 self-stretch md:justify-between md:gap-12 md:pr-16 lg:justify-end lg:gap-2 lg:pr-0">
133137
<a
138+
rel="nofollow noopener noreferrer"
139+
target="_blank"
134140
href="https://www.figma.com/community/file/1179442320711977498"
135141
className="flex w-full max-w-[272px] flex-col items-start gap-4 rounded-lg px-4 py-2 text-gray-400 hover:bg-gray-50 lg:px-8 lg:py-6 dark:hover:bg-gray-800"
136142
>
@@ -169,8 +175,9 @@ export async function SocialProofSection() {
169175
</div>
170176
</a>
171177
<a
178+
rel="nofollow noopener noreferrer"
179+
target="_blank"
172180
href="https://discord.gg/4eeurUVvTy"
173-
rel="nofollow"
174181
className="flex w-full max-w-[272px] flex-col items-start gap-4 rounded-lg px-4 py-2 text-gray-400 hover:bg-gray-50 lg:px-8 lg:py-6 dark:hover:bg-gray-800"
175182
>
176183
<svg

apps/web/components/homepage/tailwind-section.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,17 @@ export function TailwindSection() {
4343
</p>
4444
<p className="text-lg text-gray-500 dark:text-gray-400">
4545
<a
46+
rel="nofollow noopener noreferrer"
47+
target="_blank"
4648
href="https://tailwindcss.com"
4749
className="text-lg font-medium text-gray-900 underline hover:no-underline dark:text-white"
4850
>
4951
Tailwind CSS
5052
</a>{" "}
5153
is the most popular and open-source utility-first CSS framework on the market and the{" "}
5254
<a
55+
rel="noopener"
56+
target="_blank"
5357
href="https://flowbite.com"
5458
className="text-lg font-medium text-gray-900 underline hover:no-underline dark:text-white"
5559
>

apps/web/components/navbar.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ export function NavbarLinks() {
2121
Quickstart
2222
</a>
2323
<a
24+
rel="noopener"
25+
target="_blank"
2426
href="https://flowbite.com/figma/"
2527
className="rounded-lg p-2.5 text-sm font-medium text-gray-900 hover:text-cyan-700 dark:text-gray-300 dark:hover:text-cyan-500"
2628
>
2729
Figma
2830
</a>
2931
<a
32+
rel="noopener"
33+
target="_blank"
3034
href="https://flowbite.com"
3135
className="rounded-lg p-2.5 text-sm font-medium text-gray-900 hover:text-cyan-700 dark:text-gray-300 dark:hover:text-cyan-500"
3236
>

0 commit comments

Comments
 (0)