Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: theme colours to forms (#7699)
Browse files Browse the repository at this point in the history
* add color variables to stats and select input

* Update components/form/Select.js

Co-authored-by: Krish Gupta <krishstwt@gmail.com>

---------

Co-authored-by: Eddie Jaoude <eddie@jaoudestudios.com>
Co-authored-by: Krish Gupta <krishstwt@gmail.com>
  • Loading branch information
3 people committed Jun 21, 2023
1 parent f733de2 commit ebc4806
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion components/form/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Select({
<select
id={name}
name={name}
className="mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6"
className="mt-2 text-primary-high dark:bg-transparent dark:text-white border-2 transition-all duration-250 ease-linear rounded px-6 py-2 mb-2 block w-full sm:text-sm sm:leading-6"
defaultValue={value}
{...restProps}
>
Expand Down
22 changes: 11 additions & 11 deletions pages/account/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function Statistics({ data, profile, progress, BASE_URL }) {
<h2 className="sr-only" id="profile-overview-title">
Profile Overview
</h2>
<div className="bg-white p-6">
<div className="bg-white dark:bg-primary-high p-6">
<div className="sm:flex sm:items-center sm:justify-between">
<div className="sm:flex sm:space-x-5">
<div className="flex-shrink-0">
Expand All @@ -138,13 +138,13 @@ export default function Statistics({ data, profile, progress, BASE_URL }) {
/>
</div>
<div className="mt-4 text-center sm:mt-0 sm:pt-1 sm:text-left">
<p className="text-sm font-medium text-gray-600">
<p className="text-sm font-medium text-primary-medium dark:text-primary-low-medium">
Welcome back,
</p>
<p className="text-xl font-bold text-gray-900 sm:text-2xl">
<p className="text-xl font-bold text-primary-high dark:text-primary-low sm:text-2xl">
{profile.name}
</p>
<ReactMarkdown className="text-sm font-medium text-gray-600">
<ReactMarkdown className="text-sm font-medium text-primary-medium dark:text-primary-low-medium ">
{profile.bio}
</ReactMarkdown>
</div>
Expand All @@ -156,24 +156,24 @@ export default function Statistics({ data, profile, progress, BASE_URL }) {
</div>
</div>
</div>
<div className="grid grid-cols-1 divide-y divide-gray-200 border-t border-gray-200 bg-gray-50 sm:grid-cols-3 sm:divide-x sm:divide-y-0">
<div className="grid grid-cols-1 divide-y divide-gray-200 border-t border-gray-200 bg-gray-50 dark:bg-primary-medium sm:grid-cols-3 sm:divide-x sm:divide-y-0">
<div className="px-6 py-5 text-center text-sm font-medium">
<span className="text-gray-900">
<span className="text-primary-high dark:text-primary-low">
{abbreviateNumber(data.profile.monthly)}
</span>{" "}
<span className="text-gray-600">Profile views last 30 days</span>
<span className="text-primary-medium dark:text-primary-low-medium">Profile views last 30 days</span>
</div>
<div className="px-6 py-5 text-center text-sm font-medium">
<span className="text-gray-900">
<span className="text-primary-high dark:text-primary-low">
{abbreviateNumber(data.profile.total)}
</span>{" "}
<span className="text-gray-600">Total Profile views</span>
<span className="text-primary-medium dark:text-primary-low-medium">Total Profile views</span>
</div>
<div className="px-6 py-5 text-center text-sm font-medium">
<span className="text-gray-900">
<span className="text-primary-high dark:text-primary-low">
{abbreviateNumber(data.links.clicks)}
</span>{" "}
<span className="text-gray-600">Total link clicks</span>
<span className="text-primary-medium dark:text-primary-low-medium">Total link clicks</span>
</div>
</div>
</div>
Expand Down

0 comments on commit ebc4806

Please sign in to comment.