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: UI color and text inconsistencies #139

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/errorBoundary/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ErrorBoundary extends React.Component<Props, State> {
}

public componentDidCatch(error: Error, errorInfo: ErrorInfo) {
console.log({ error, errorInfo });
console.error({ error, errorInfo });
this.setState({ hasError: true });
}

Expand All @@ -37,7 +37,7 @@ class ErrorBoundary extends React.Component<Props, State> {
href="/"
className="rounded-2xl bg-transparent border border-custom-accent gap-3 lg:gap-6 py-[18px] lg:py-6 3xl:py-9 px-4 lg:px-5 3xl:px-8 text-custom-accent hover:bg-custom-accent hover:text-white flex items-center justify-center text-[18px] lg:text-2xl 3xl:text-[32px] font-semibold w-fit"
>
Go back home
Go to Homepage
</Link>
</div>
</section>
Expand Down
6 changes: 3 additions & 3 deletions src/components/noResultsCard/NoResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ const NoResults = ({ openForm }: { openForm: () => void }) => {
No results found
</h2>
<p className="text-custom-primary-text">
You can contribute to our sources by submitting a url
You can contribute to our sources by submitting a URL
</p>
<div className="flex flex-col lg:flex-row w-fit gap-4 mx-auto mt-4">
<Link
href="/"
className="text-custom-black dark:text-white py-2 px-3 font-bold mx-auto text-sm lg:text-base bg-custom-otherLight rounded-[10px]"
>
Go back to homepage
Go to Homepage
</Link>
<button
onClick={openForm}
className="flex justify-center items-center gap-2 py-2 px-3 font-bold mx-auto text-sm text-white lg:text-base bg-custom-accent disabled:bg-custom-hover-state disabled:cursor-not-allowed disabled:text-[#CCBAA3] rounded-[10px]"
>
<span>Contribute</span>
<span>Suggest a source</span>
</button>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Custom404() {
>
<NavBar />
<div className={`App btc-search w-full`}>
<div className="flex flex-col items-center justify-center gap-y-2 w-full h-full">
<div className="flex flex-col items-center justify-center gap-y-6 w-full h-full">
<h1 className="md:text-4xl font-bold text-center">
404 - Page Not Found
</h1>
Expand All @@ -22,7 +22,7 @@ export default function Custom404() {
</p>
<Link
href="/"
className="text-custom-brightOrange-200 underline underline-offset-2"
className="flex justify-center items-center gap-2 py-2 px-3 font-bold mx-auto text-sm text-white lg:text-base bg-custom-accent disabled:bg-custom-hover-state disabled:cursor-not-allowed disabled:text-[#CCBAA3] rounded-[10px]"
>
Go to Homepage
</Link>
Expand Down
2 changes: 2 additions & 0 deletions src/utils/dummy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export const defaultSearchTags = [
type: "domain",
filter: true,
tags: [
"https://delvingbitcoin.org/",
"https://github.com/bitcoin/bips",
"https://lists.linuxfoundation.org/pipermail/bitcoin-dev/",
"https://bitcoin.stackexchange.com",
"https://lists.linuxfoundation.org/pipermail/lightning-dev/",
Expand Down