chore: simplify colors

This commit is contained in:
Cory Dransfeldt 2023-10-28 17:26:30 -07:00
parent 67adea35a3
commit ec35c70418
29 changed files with 79 additions and 75 deletions

View file

@ -1,7 +1,7 @@
{%- capture fullUrl %}
{{ site.url }}{{ page.url }}{% endcapture -%}
<!doctype html>
<html class="scrollbar-thin scrollbar-thumb-purple-500 scrollbar-track-purple-100" lang="en">
<html class="scrollbar-thin scrollbar-thumb-blue-500 scrollbar-track-blue-100" lang="en">
<head>
<title>
{% if title %}
@ -17,7 +17,7 @@
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ fullUrl }}" />
<meta property="og:image" content="{{ image | getPostImage }}">
<meta name="theme-color" content="#a855f7" />
<meta name="theme-color" content="#3b82f6" />
<meta name="generator" content="{{ eleventy.generator }}">
<meta name="robots" content="noai, noimageai">
<link
@ -66,7 +66,7 @@
</style>
</noscript>
</head>
<body class="dark:text-white bg-white dark:bg-gray-900 font-sans text-gray-800 scrollbar-thin scrollbar-thumb-purple-500 scrollbar-track-purple-100">
<body class="dark:text-white bg-white dark:bg-gray-900 font-sans text-gray-800 scrollbar-thin scrollbar-thumb-blue-500 scrollbar-track-blue-100">
{{ content }}
{% capture js %}
{% render "../assets/scripts/script.js" %}

View file

@ -1,6 +1,6 @@
<div class="mt-12 py-8 border-t-2 flex flex-col md:flex-row justify-between items-center">
<div class="flex flex-col mb-4 md:mb-0 md:flex-row items-center flex-1">
<div class="border border-teal-700 dark:border-teal-300 bg-white rounded-full overflow-hidden mb-4 md:mb-0 md:mr-4 [&>*]:h-20 [&>*]:w-20 flex flex-col items-center">
<div class="border border-blue-500 dark:border-blue-200 bg-white rounded-full overflow-hidden mb-4 md:mb-0 md:mr-4 [&>*]:h-20 [&>*]:w-20 flex flex-col items-center">
{% image './src/assets/img/avatar.webp', site.name, 'inline-block' %}
</div>
<span class="text-lg font-medium">{{ site.name }}</span>

View file

@ -1,6 +1,6 @@
{%- capture pageUrl %}/{{ link | downcase }}/{% endcapture -%}
{% if page.url != pageUrl %}
<a class="text-gray-700 hover:text-pink-500 dark:text-gray-200 dark:hover:text-pink-500 !no-underline" href="/{{ link | downcase }}">
<a class="text-gray-700 hover:text-blue-800 dark:text-gray-200 dark:hover:text-blue-200 !no-underline" href="/{{ link | downcase }}">
{% if icon %}
{% tablericon icon link %}
{% else %}

View file

@ -9,7 +9,7 @@
{% assign alt = item.alt | strip %}
<a href="{{ item.url | stripUtm }}" title="{{ alt | escape }}">
<div class="relative block h-full rounded-lg overflow-hidden"{% if shape != 'square' %} style="max-width:226px"{% endif %}>
<div class="absolute left-0 top-0 h-full w-full rounded-lg border border-purple-600 hover:border-pink-500 dark:border-purple-400 dark:hover:border-pink-500 ease-in-out duration-300{% if item.title %} bg-cover-gradient{% endif %}"></div>
<div class="absolute left-0 top-0 h-full w-full rounded-lg border border-blue-600 hover:border-blue-800 dark:border-blue-400 dark:hover:border-blue-200 ease-in-out duration-300{% if item.title %} bg-cover-gradient{% endif %}"></div>
<div class="absolute left-1 bottom-2 drop-shadow-md">
{% if item.title %}
<div class="px-1 text-xs font-bold text-white line-clamp-2">{{ item.title }}</div>

View file

@ -1,7 +1,7 @@
<nav class="flex justify-between mt-8 items-center">
{% if pagination.href.previous %}
<a href="{{ pagination.href.previous }}">
<button class="py-2 pr-4 dark:text-purple-400 text-purple-600" aria-label="Previous page [&>svg]:h-5 [&>svg]:w-5">
<button class="py-2 pr-4 dark:text-blue-400 text-blue-600" aria-label="Previous page [&>svg]:h-5 [&>svg]:w-5">
{% tablericon "arrow-left" "Previous" %}
</button>
</a>
@ -18,7 +18,7 @@
</div>
{% if pagination.href.next %}
<a href="{{ pagination.href.next }}">
<button class="py-2 pl-4 dark:text-purple-400 text-purple-600 [&>svg]:h-5 [&>svg]:w-5" aria-label="Next page">
<button class="py-2 pl-4 dark:text-blue-400 text-blue-600 [&>svg]:h-5 [&>svg]:w-5" aria-label="Next page">
{% tablericon "arrow-right" "Next" %}
</button>
</a>

View file

@ -5,14 +5,14 @@
<div class="border-bottom flex flex-row items-center border-gray-100 pb-4 w-full">
<div class="group flex flex-row space-between items-center">
<a href={{mention.url}}>
<div class="bg-gray-900 dark:bg-white h-14 w-14 border-4 border-white dark:border-gray-900 transition-all ease-in-out duration-300 group-hover:border-pink-500 dark:group-hover:border-pink-500 rounded-full overflow-hidden">
<div class="bg-gray-900 dark:bg-white h-14 w-14 border-4 border-white dark:border-gray-200 transition-all ease-in-out duration-300 group-hover:border-blue-800 dark:group-hover:border-blue-200 rounded-full overflow-hidden">
{% image mention.author.photo, mention.author.name %}
</div>
</a>
<div class="ml-3">
<a class="text-gray-700 dark:text-gray-200" href={{mention.url}}>
<p class="text-sm group-hover:text-pink-500 dark:group-hover:text-pink-500">{{ mention.content.text }}</p>
<p class="mt-1 text-xs group-hover:text-pink-500 dark:group-hover:text-pink-500">{{ mention.published | isoDateOnly }}</p>
<p class="text-sm group-hover:text-blue-800 dark:group-hover:text-blue-200">{{ mention.content.text }}</p>
<p class="mt-1 text-xs group-hover:text-blue-800 dark:group-hover:text-blue-200">{{ mention.published | isoDateOnly }}</p>
</a>
</div>
</div>

View file

@ -12,7 +12,7 @@
{% for mention in mentions[type] %}
<li class="-ml-3 inline">
<a href={{mention.url}}>
<div class="bg-gray-900 dark:bg-white h-14 w-14 border-4 border-white dark:border-gray-900 transition-all ease-in-out duration-300 hover:border-pink-500 dark:hover:border-pink-500 rounded-full overflow-hidden">
<div class="bg-gray-900 dark:bg-white h-14 w-14 border-4 border-white dark:border-gray-900 transition-all ease-in-out duration-300 hover:border-blue-800 dark:hover:border-blue-200 rounded-full overflow-hidden">
{% image mention.author.photo, mention.author.name %}
</div>
</a>

View file

@ -4,7 +4,7 @@
<ul class="list-inside list-disc pl-5 md:pl-10">
{% for mention in mentions['link-to'] %}
<li class="mt-1.5 mb-2">
<a href="{{ mention.url }}" class="text-blue-500 hover:text-blue-600 dark:text-blue-400 dark:hover:text-blue-300">
<a href="{{ mention.url }}" class="text-blue-500 hover:text-blue-600 dark:text-blue-400 dark:hover:text-blue-200">
{{ mention.name }}
</a>
</li>

View file

@ -5,7 +5,7 @@ layout: main
<article class="h-entry" data-pagefind-body>
{% if link %}
<a class="no-underline" href="{{ link }}">
<h2 class="[&>svg]:h-5 [&>svg]:w-5 [&>svg]:md:h-7 [&>svg]:md:w-7 [&>svg]:-mt-1 [&>svg]:md:-mt-1.5 [&>svg]:inline icon--bold p-name m-0 text-xl font-black leading-tight tracking-normal hover:text-pink-500 text-gray-800 dark:text-gray-200 dark:hover:text-pink-500 md:text-2xl ease-in-out duration-300 pt-8" data-pagefind-meta="title">
<h2 class="[&>svg]:h-5 [&>svg]:w-5 [&>svg]:md:h-7 [&>svg]:md:w-7 [&>svg]:-mt-1 [&>svg]:md:-mt-1.5 [&>svg]:inline icon--bold p-name m-0 text-xl font-black leading-tight tracking-normal hover:text-blue-800 text-gray-800 dark:text-gray-200 dark:hover:text-blue-200 md:text-2xl ease-in-out duration-300 pt-8" data-pagefind-meta="title">
{% tablericon 'link' title %}
{{ title }}
</h2>

View file

@ -9,7 +9,7 @@
{% tablericon "arrow-left" "Previous site" %}
</a>
<div class="flex justify-center">
<a href="https://webri.ng/webring/cssjoy/random?via=https://coryd.dev/webrings" class="[&>svg]:h-6 [&>svg]:w-6 icon--bold mx-4 flex flex-row items-center font-semibold p-2 rounded-full !no-underline !text-white dark:text-gray-900 bg-purple-600 dark:bg-purple-400 hover:bg-pink-500">
<a href="https://webri.ng/webring/cssjoy/random?via=https://coryd.dev/webrings" class="[&>svg]:h-6 [&>svg]:w-6 icon--bold mx-4 flex flex-row items-center font-semibold p-2 rounded-full !no-underline !text-white dark:text-gray-900 bg-blue-500 dark:bg-blue-400 hover:bg-pink-500">
{% tablericon "dice-3" "Random site" %}
</a>
</div>

View file

@ -6,7 +6,7 @@
The Claw Webring
</h3>
<div class="flex justify-center">
<a href="https://github.com/whitep4nth3r/the-claw-webring" class="flex flex-row items-start md:items-center font-semibold py-2 px-4 rounded-full !no-underline !text-white dark:text-gray-900 bg-purple-600 dark:bg-purple-400 hover:bg-pink-500">
<a href="https://github.com/whitep4nth3r/the-claw-webring" class="flex flex-row items-start md:items-center font-semibold py-2 px-4 rounded-full !no-underline !text-white dark:text-gray-900 bg-blue-500 dark:bg-blue-400 hover:bg-pink-500">
<span class="[&>svg]:h-5 [&>svg]:w-5 icon--bold pt-1 md:pt-0 mr-1">
{% tablericon "user-plus" "Join!" %}
</span>