Skip to content

Commit

Permalink
fix: a11y issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ttttonyhe committed Oct 7, 2024
1 parent 4481ce8 commit e303466
Show file tree
Hide file tree
Showing 4 changed files with 337 additions and 386 deletions.
2 changes: 1 addition & 1 deletion apps/main/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { withSentryConfig } = require("@sentry/nextjs")
const NextConfigs = {
assetPrefix: "/assets",
poweredByHeader: false,
productionBrowserSourceMaps: false,
productionBrowserSourceMaps: true,
compress: true,
transpilePackages: ["@twilight-toolkit/ui", "@twilight-toolkit/utils"],
images: {
Expand Down
1 change: 1 addition & 0 deletions apps/main/src/components/Banners/PagesAndLinks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const PagesAndLinks = () => {
<div>
<Link
href="/pages"
aria-label="See all pages"
className="group flex h-[25px] w-[25px] items-center justify-center overflow-hidden rounded-full bg-gray-100 text-gray-500 transition-all ease-in-out hover:w-[76px] dark:border dark:border-gray-600 dark:bg-transparent dark:text-gray-500">
<span className="effect-pressing more-to-come absolute right-0 flex w-[76px] justify-end gap-x-[4px] pr-[4px] leading-none transition-all ease-in-out dark:pr-1">
<span className="-mt-[0.5px] hidden text-xs opacity-0 transition-all delay-100 ease-in-out group-hover:block group-hover:opacity-100">
Expand Down
7 changes: 4 additions & 3 deletions apps/main/src/components/Banners/Research/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const NexusPaper = () => {
<span>NEXUS</span>
</div>
<div className="-translate-y-[1.5px]">
<label className="rounded-full border-[1.5px] bg-gray-100 py-[2.5px] pl-[7px] pr-[6.5px] text-[0.675rem] font-medium leading-[0.675rem] text-gray-500 dark:border-gray-600 dark:text-gray-400 dark:bg-gray-700">
<label className="rounded-full border-[1.5px] bg-gray-100 py-[2.5px] pl-[7px] pr-[6.5px] text-[0.675rem] font-medium leading-[0.675rem] text-gray-500 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-400">
NDSS 2025
</label>
</div>
Expand Down Expand Up @@ -45,9 +45,10 @@ const NexusPaper = () => {
</div>
<div>
<a
href="https://github.com/Kevin-Zh-CS/NEXUS"
href="https://github.com/zju-abclab/NEXUS"
rel="noreferrer noopener"
target="_blank"
aria-label="Visit this paper's GitHub repository"
className="group flex h-[25px] w-[25px] items-center justify-center overflow-hidden rounded-full bg-gray-100 text-gray-500 transition-all ease-in-out hover:w-[62px] dark:border dark:border-gray-600 dark:bg-transparent dark:text-gray-500">
<span className="effect-pressing more-to-come absolute right-0 flex w-[62px] justify-end gap-x-[2px] pr-[4px] leading-none transition-all ease-in-out dark:pr-1">
<span className="-mt-[0.5px] hidden text-xs opacity-0 transition-all delay-100 ease-in-out group-hover:block group-hover:opacity-100">
Expand All @@ -68,7 +69,7 @@ const NexusPaper = () => {
<span>LookAhead</span>
</div>
<div className="-translate-y-[1.5px]">
<label className="rounded-full border-[1.5px] bg-gray-100 py-[2.5px] pl-[7px] pr-[6.5px] text-[0.675rem] font-medium leading-[0.675rem] text-gray-500 dark:border-gray-600 dark:text-gray-400 dark:bg-gray-700">
<label className="rounded-full border-[1.5px] bg-gray-100 py-[2.5px] pl-[7px] pr-[6.5px] text-[0.675rem] font-medium leading-[0.675rem] text-gray-500 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-400">
Under Submission
</label>
</div>
Expand Down
Loading

0 comments on commit e303466

Please sign in to comment.