Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Insufficient color contrast of some elements #370

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const Header = ({ transparent = true }: HeaderProps) => {
</span>
</span>

<span className="b3 hidden h-12 items-center justify-center rounded-md border-2 border-blurple-500 bg-blurple-500 p-4 !font-semibold text-white transition-colors group-hover:border-blurple-600 group-hover:bg-blurple-600 md:flex">
<span className="b3 hidden h-12 items-center justify-center rounded-md border-2 border-blurple-600 bg-blurple-600 p-4 !font-semibold text-white transition-colors group-hover:border-blurple-900 group-hover:bg-blurple-900 md:flex">
{item.footer.label}
</span>
</a>
Expand Down
6 changes: 3 additions & 3 deletions components/LinkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ const LinkButton = ({
<Link href={href}>
<a
className={classnames(
"flex items-center justify-center rounded-md border-2 p-4 text-center !font-semibold transition-colors focus:outline-none hocus:border-blurple-600 hocus:bg-blurple-600 hocus:text-white",
borderless ? "border-white" : "border-blurple-500",
"flex items-center justify-center rounded-md border-2 p-4 text-center !font-semibold transition-colors focus:outline-none hocus:border-blurple-900 hocus:bg-blurple-900 hocus:text-white",
borderless ? "border-white" : "border-blurple-600",
fullWidth ? "w-full" : "w-max",
light ? "bg-white text-blurple-500" : "bg-blurple-500 text-white",
light ? "bg-white text-blurple-600" : "bg-blurple-600 text-white",
size === "small" && "b3 h-10",
size === "medium" && "b3 h-12",
size === "large" && "b3 md:b1 h-12 md:h-16 md:px-6"
Expand Down
7 changes: 3 additions & 4 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useState } from "react"
import { useState } from "react"
import { FormattedMessage, useIntl } from "react-intl"
import Image from "next/image"
import Head from "next/head"
Expand Down Expand Up @@ -26,8 +26,7 @@ import illoWorld from "../public/illustrations/home_sponsors_world.png"
import homeHeroMobile from "../public/illustrations/home_hero_mobile.webp"
import homeHeroDesktop from "../public/illustrations/home_hero_desktop.png"
import Hero from "../components/Hero"
import { getDirForLocale } from "../utils/locales"
import { useRouter } from "next/router"

import Layout from "../components/Layout"

function Home() {
Expand Down Expand Up @@ -518,7 +517,7 @@ const Sponsors = ({ sponsors }) => {
</>
)}

<p className="mt-8 text-gray-2 lg:col-span-12 lg:mb-16">
<p className="mt-8 text-gray-1 lg:col-span-12 lg:mb-16">
Sponsorship does not equal influence. Mastodon is fully independent.
</p>
</section>
Expand Down