improved contrast ratio
This commit is contained in:
@@ -125,7 +125,7 @@ export default function AddOrEditLink({
|
||||
|
||||
<div className="grid sm:grid-cols-2 gap-3">
|
||||
<div>
|
||||
<p className="text-sm text-sky-500 mb-2">
|
||||
<p className="text-sm text-sky-700 mb-2">
|
||||
Name
|
||||
<RequiredBadge />
|
||||
</p>
|
||||
@@ -134,13 +134,13 @@ export default function AddOrEditLink({
|
||||
onChange={(e) => setLink({ ...link, name: e.target.value })}
|
||||
type="text"
|
||||
placeholder="e.g. Example Link"
|
||||
className="w-full rounded-md p-2 border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"
|
||||
className="w-full rounded-md p-2 border-sky-100 border-solid border outline-none focus:border-sky-700 duration-100"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{method === "CREATE" ? (
|
||||
<div>
|
||||
<p className="text-sm text-sky-500 mb-2">
|
||||
<p className="text-sm text-sky-700 mb-2">
|
||||
URL
|
||||
<RequiredBadge />
|
||||
</p>
|
||||
@@ -149,13 +149,13 @@ export default function AddOrEditLink({
|
||||
onChange={(e) => setLink({ ...link, url: e.target.value })}
|
||||
type="text"
|
||||
placeholder="e.g. http://example.com/"
|
||||
className="w-full rounded-md p-2 border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"
|
||||
className="w-full rounded-md p-2 border-sky-100 border-solid border outline-none focus:border-sky-700 duration-100"
|
||||
/>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
<div>
|
||||
<p className="text-sm text-sky-500 mb-2">Collection</p>
|
||||
<p className="text-sm text-sky-700 mb-2">Collection</p>
|
||||
<CollectionSelection
|
||||
onChange={setCollection}
|
||||
// defaultValue={{
|
||||
@@ -174,7 +174,7 @@ export default function AddOrEditLink({
|
||||
</div>
|
||||
|
||||
<div className={method === "UPDATE" ? "sm:col-span-2" : ""}>
|
||||
<p className="text-sm text-sky-500 mb-2">Tags</p>
|
||||
<p className="text-sm text-sky-700 mb-2">Tags</p>
|
||||
<TagSelection
|
||||
onChange={setTags}
|
||||
defaultValue={link.tags.map((e) => {
|
||||
@@ -183,7 +183,7 @@ export default function AddOrEditLink({
|
||||
/>
|
||||
</div>
|
||||
<div className="sm:col-span-2">
|
||||
<p className="text-sm text-sky-500 mb-2">Description</p>
|
||||
<p className="text-sm text-sky-700 mb-2">Description</p>
|
||||
<textarea
|
||||
value={link.description}
|
||||
onChange={(e) => setLink({ ...link, description: e.target.value })}
|
||||
@@ -192,7 +192,7 @@ export default function AddOrEditLink({
|
||||
? "Will be auto generated if nothing is provided."
|
||||
: ""
|
||||
}
|
||||
className="resize-none w-full rounded-md p-2 border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100"
|
||||
className="resize-none w-full rounded-md p-2 border-sky-100 border-solid border outline-none focus:border-sky-700 duration-100"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -151,7 +151,7 @@ export default function LinkDetails({ link }: Props) {
|
||||
/>
|
||||
)}
|
||||
<div className="flex flex-col gap- justify-end drop-shadow">
|
||||
<p className="text-2xl text-sky-500 capitalize break-words hyphens-auto">
|
||||
<p className="text-2xl text-sky-700 capitalize break-words hyphens-auto">
|
||||
{link.name}
|
||||
</p>
|
||||
<Link
|
||||
@@ -223,12 +223,12 @@ export default function LinkDetails({ link }: Props) {
|
||||
<p className="text-gray-500">Screenshot</p>
|
||||
</div>
|
||||
|
||||
<div className="flex text-sky-600 gap-1">
|
||||
<div className="flex text-sky-500 gap-1">
|
||||
<Link
|
||||
href={`/api/archives/${link.collectionId}/${link.id}.png`}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="cursor-pointer hover:bg-sky-100 duration-100 p-2 rounded-md"
|
||||
className="cursor-pointer hover:bg-slate-200 duration-100 p-2 rounded-md"
|
||||
>
|
||||
<FontAwesomeIcon
|
||||
icon={faArrowUpRightFromSquare}
|
||||
@@ -238,7 +238,7 @@ export default function LinkDetails({ link }: Props) {
|
||||
|
||||
<div
|
||||
onClick={() => handleDownload("png")}
|
||||
className="cursor-pointer hover:bg-sky-100 duration-100 p-2 rounded-md"
|
||||
className="cursor-pointer hover:bg-slate-200 duration-100 p-2 rounded-md"
|
||||
>
|
||||
<FontAwesomeIcon
|
||||
icon={faCloudArrowDown}
|
||||
@@ -257,12 +257,12 @@ export default function LinkDetails({ link }: Props) {
|
||||
<p className="text-gray-500">PDF</p>
|
||||
</div>
|
||||
|
||||
<div className="flex text-sky-600 gap-1">
|
||||
<div className="flex text-sky-500 gap-1">
|
||||
<Link
|
||||
href={`/api/archives/${link.collectionId}/${link.id}.pdf`}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="cursor-pointer hover:bg-sky-100 duration-100 p-2 rounded-md"
|
||||
className="cursor-pointer hover:bg-slate-200 duration-100 p-2 rounded-md"
|
||||
>
|
||||
<FontAwesomeIcon
|
||||
icon={faArrowUpRightFromSquare}
|
||||
@@ -272,7 +272,7 @@ export default function LinkDetails({ link }: Props) {
|
||||
|
||||
<div
|
||||
onClick={() => handleDownload("pdf")}
|
||||
className="cursor-pointer hover:bg-sky-100 duration-100 p-2 rounded-md"
|
||||
className="cursor-pointer hover:bg-slate-200 duration-100 p-2 rounded-md"
|
||||
>
|
||||
<FontAwesomeIcon
|
||||
icon={faCloudArrowDown}
|
||||
|
||||
@@ -33,10 +33,10 @@ export default function LinkModal({
|
||||
<div className={className}>
|
||||
<Tab.Group defaultIndex={defaultIndex}>
|
||||
{method === "CREATE" && (
|
||||
<p className="text-xl text-sky-500 text-center">New Link</p>
|
||||
<p className="text-xl text-sky-700 text-center">New Link</p>
|
||||
)}
|
||||
<Tab.List
|
||||
className={`flex justify-center flex-col max-w-[15rem] sm:max-w-[30rem] mx-auto sm:flex-row gap-2 sm:gap-3 mb-5 text-sky-600 ${
|
||||
className={`flex justify-center flex-col max-w-[15rem] sm:max-w-[30rem] mx-auto sm:flex-row gap-2 sm:gap-3 mb-5 text-sky-700 ${
|
||||
isOwnerOrMod ? "" : "pb-8"
|
||||
}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user