Skip to content

Commit fc6c18c

Browse files
committed
chore: improve the accessibility of the site
1 parent b70be12 commit fc6c18c

File tree

6 files changed

+166
-164
lines changed

6 files changed

+166
-164
lines changed

components/CallToActionCard.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ const CallToActionCard = ({
1616
return (
1717
<a
1818
href={link}
19-
className="flex items-start max-w-sm p-2 min-h-44 hover:bg-gray-100 dark:hover:bg-gray-700"
19+
className="flex items-start max-w-sm p-2 rounded-lg min-h-44 hover:bg-gray-100 dark:hover:bg-gray-700"
2020
>
2121
<div className="flex items-start">
2222
<div className="mr-4">
2323
{cloneElement(icon, { className: "size-7 mt-1.5" })}
2424
</div>
2525
<div>
2626
<div className="flex items-center mb-2">
27-
<h5 className="font-bold tracking-tight underline md:text-lg lg:text-lg text-decoration-line: underline-offset-4 text-linkBlue dark:text-white">
27+
<h3 className="font-bold tracking-tight underline md:text-lg lg:text-lg text-decoration-line: underline-offset-4 text-linkBlue dark:text-white">
2828
{title}
29-
</h5>
29+
</h3>
3030
</div>
3131
<p className="font-normal text-gray-900 text-md dark:text-gray-400">
3232
{description}

components/DiscordButton.tsx

+25-23
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,32 @@ import React from "react";
22

33
const DiscordButton: React.FC = () => {
44
return (
5-
<a href="https://discord.com/invite/cv8EfJu3Tn">
5+
<a
6+
href="https://discord.com/invite/cv8EfJu3Tn"
7+
className="flex items-center px-6 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-300 rounded-lg shadow-md hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500"
8+
aria-label="Join Discord"
9+
>
610
<div className="flex items-center justify-center">
7-
<button className="flex items-center bg-white border border-gray-300 rounded-lg shadow-md px-6 py-2 text-sm font-medium text-gray-800 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500">
8-
<svg
9-
className="h-6 w-6 mr-0 md:mr-2"
10-
xmlns="http://www.w3.org/2000/svg"
11-
width="800px"
12-
height="800px"
13-
viewBox="0 -28.5 256 256"
14-
version="1.1"
15-
preserveAspectRatio="xMidYMid"
16-
>
17-
<g>
18-
<path
19-
d="M216.856339,16.5966031 C200.285002,8.84328665 182.566144,3.2084988 164.041564,0 C161.766523,4.11318106 159.108624,9.64549908 157.276099,14.0464379 C137.583995,11.0849896 118.072967,11.0849896 98.7430163,14.0464379 C96.9108417,9.64549908 94.1925838,4.11318106 91.8971895,0 C73.3526068,3.2084988 55.6133949,8.86399117 39.0420583,16.6376612 C5.61752293,67.146514 -3.4433191,116.400813 1.08711069,164.955721 C23.2560196,181.510915 44.7403634,191.567697 65.8621325,198.148576 C71.0772151,190.971126 75.7283628,183.341335 79.7352139,175.300261 C72.104019,172.400575 64.7949724,168.822202 57.8887866,164.667963 C59.7209612,163.310589 61.5131304,161.891452 63.2445898,160.431257 C105.36741,180.133187 151.134928,180.133187 192.754523,160.431257 C194.506336,161.891452 196.298154,163.310589 198.110326,164.667963 C191.183787,168.842556 183.854737,172.420929 176.223542,175.320965 C180.230393,183.341335 184.861538,190.991831 190.096624,198.16893 C211.238746,191.588051 232.743023,181.531619 254.911949,164.955721 C260.227747,108.668201 245.831087,59.8662432 216.856339,16.5966031 Z M85.4738752,135.09489 C72.8290281,135.09489 62.4592217,123.290155 62.4592217,108.914901 C62.4592217,94.5396472 72.607595,82.7145587 85.4738752,82.7145587 C98.3405064,82.7145587 108.709962,94.5189427 108.488529,108.914901 C108.508531,123.290155 98.3405064,135.09489 85.4738752,135.09489 Z M170.525237,135.09489 C157.88039,135.09489 147.510584,123.290155 147.510584,108.914901 C147.510584,94.5396472 157.658606,82.7145587 170.525237,82.7145587 C183.391518,82.7145587 193.761324,94.5189427 193.539891,108.914901 C193.539891,123.290155 183.391518,135.09489 170.525237,135.09489 Z"
20-
fill="#5865F2"
21-
fillRule="nonzero"
22-
/>
23-
</g>
24-
</svg>
25-
<span className="hidden md:inline text-xs lg:text-xl">
26-
Join Discord
27-
</span>
28-
</button>
11+
<svg
12+
className="w-6 h-6 mr-0 md:mr-2"
13+
xmlns="http://www.w3.org/2000/svg"
14+
width="800px"
15+
height="800px"
16+
viewBox="0 -28.5 256 256"
17+
version="1.1"
18+
preserveAspectRatio="xMidYMid"
19+
>
20+
<g>
21+
<path
22+
d="M216.856339,16.5966031 C200.285002,8.84328665 182.566144,3.2084988 164.041564,0 C161.766523,4.11318106 159.108624,9.64549908 157.276099,14.0464379 C137.583995,11.0849896 118.072967,11.0849896 98.7430163,14.0464379 C96.9108417,9.64549908 94.1925838,4.11318106 91.8971895,0 C73.3526068,3.2084988 55.6133949,8.86399117 39.0420583,16.6376612 C5.61752293,67.146514 -3.4433191,116.400813 1.08711069,164.955721 C23.2560196,181.510915 44.7403634,191.567697 65.8621325,198.148576 C71.0772151,190.971126 75.7283628,183.341335 79.7352139,175.300261 C72.104019,172.400575 64.7949724,168.822202 57.8887866,164.667963 C59.7209612,163.310589 61.5131304,161.891452 63.2445898,160.431257 C105.36741,180.133187 151.134928,180.133187 192.754523,160.431257 C194.506336,161.891452 196.298154,163.310589 198.110326,164.667963 C191.183787,168.842556 183.854737,172.420929 176.223542,175.320965 C180.230393,183.341335 184.861538,190.991831 190.096624,198.16893 C211.238746,191.588051 232.743023,181.531619 254.911949,164.955721 C260.227747,108.668201 245.831087,59.8662432 216.856339,16.5966031 Z M85.4738752,135.09489 C72.8290281,135.09489 62.4592217,123.290155 62.4592217,108.914901 C62.4592217,94.5396472 72.607595,82.7145587 85.4738752,82.7145587 C98.3405064,82.7145587 108.709962,94.5189427 108.488529,108.914901 C108.508531,123.290155 98.3405064,135.09489 85.4738752,135.09489 Z M170.525237,135.09489 C157.88039,135.09489 147.510584,123.290155 147.510584,108.914901 C147.510584,94.5396472 157.658606,82.7145587 170.525237,82.7145587 C183.391518,82.7145587 193.761324,94.5189427 193.539891,108.914901 C193.539891,123.290155 183.391518,135.09489 170.525237,135.09489 Z"
23+
fill="#5865F2"
24+
fillRule="nonzero"
25+
/>
26+
</g>
27+
</svg>
28+
<span className="hidden text-xs md:inline lg:text-xl">
29+
Join Discord
30+
</span>
2931
</div>
3032
</a>
3133
);

components/Footer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ const Footer = () => {
66
<footer className="w-full pt-2">
77
<DiscordBanner />
88
<div className="w-full p-4 border-t border-gray-700 shadow bg-tangleLogoTextColor md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800 dark:border-gray-600">
9-
<span className="text-sm text-gray-500 sm:text-center dark:text-gray-400">
9+
<span className="text-sm !text-gray-300 sm:text-center">
1010
© 2024{" "}
1111
<a href="https://flowbite.com/" className="hover:underline">
1212
Tangle Foundation
1313
</a>
1414
. All Rights Reserved.
1515
</span>
16-
<ul className="flex flex-wrap items-center gap-5 mt-3 text-sm font-medium text-gray-400 dark:text-gray-400 sm:mt-0">
16+
<ul className="flex flex-wrap items-center gap-5 mt-3 text-sm font-medium !text-gray-300 sm:mt-0">
1717
<li>
1818
<a href="mailto:[email protected]" className="hover:underline">
1919
Contact

components/LandingPage.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const LandingPage = () => {
7373
{/* Header and Image Row */}
7474
<div className="z-10 flex flex-col items-center justify-between gap-5 p-5 font-bold lg:pt-0 lg:flex-row lg:items-center">
7575
<div className="flex flex-col items-start gap-1 space-y-4 lg:space-xy-6">
76-
<p className="pl-1 text-sm text-gray-400 font-bol md:absolute lg:text-sm">
76+
<p className="pl-1 text-sm text-slate-500 dark:text-slate-400 font-bol md:absolute lg:text-sm">
7777
TANGLE DOCUMENTATION
7878
</p>
7979
<h1 className="text-3xl font-normal text-gray-900 dark:text-white md:text-3xl lg:text-5xl">
@@ -106,9 +106,9 @@ const LandingPage = () => {
106106

107107
{/* Call-to-Action Cards Row */}
108108
<div className="container">
109-
<h3 className="inline-flex mb-10 text-xl font-semibold text-gray-500 underline underline-offset-8 dark:text-white">
109+
<h2 className="inline-flex mb-10 text-xl font-semibold text-gray-500 underline underline-offset-8 dark:text-white">
110110
Get Started
111-
</h3>
111+
</h2>
112112
<div className="relative flex flex-grow p-5 md:p-0">
113113
<div className="flex flex-col items-center flex-grow gap-5 mb-8 sm:flex-row">
114114
{getStartedCards.map((card, index) => (
@@ -126,9 +126,9 @@ const LandingPage = () => {
126126

127127
{/* Resources Cards Row */}
128128
<div className="container">
129-
<h3 className="inline-flex mb-10 text-xl font-semibold text-gray-500 underline underline-offset-8 dark:text-white">
129+
<h2 className="inline-flex mb-10 text-xl font-semibold text-gray-500 underline underline-offset-8 dark:text-white">
130130
Resources
131-
</h3>
131+
</h2>
132132
<div className="relative flex flex-grow p-5 md:p-0">
133133
<div className="flex flex-col items-center flex-grow gap-5 mb-8 sm:flex-row">
134134
{resourcesCards.map((card, index) => (

public/images/TangleNetworkMap.png

-330 KB
Loading

0 commit comments

Comments
 (0)