Skip to content

Commit

Permalink
add mac app links
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Johnson-Williams committed Jul 19, 2024
1 parent e20b2b5 commit e914c31
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 7 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

[Find the nearest Tailwind colour](https://find-nearest-tailwind-colour.edjohnsonwilliams.co.uk) is a web app to help you find the nearest colour from [the full Tailwind CSS colour palette](https://tailwindcss.com/docs/customizing-colors).

<https://find-nearest-tailwind-colour.edjohnsonwilliams.co.uk>
<https://find-nearest-tailwind-colour.netlify.app>

## Nearest Color Desktop app

Nearest Color is a desktop app that's a better version of this website in every way, including much better color matching and every color input format. Find out more about [why **Nearest Color** is better than *Find the nearest Tailwind colour*](https://nearest-color.com/why-nearest-color-better-than-find-nearest-tailwind-colour).

You can [buy Nearest Color on the Mac App Store](https://apps.apple.com/gb/app/nearest-color/id6504228400?mt=12) (Windows coming soon).

<a href="https://apps.apple.com/gb/app/nearest-color/id6504228400?mt=12"><img src="https://github.com/edjw/find-nearest-tailwind-colour/blob/main/src/assets/images/apple_store.svg" alt="Download on the App Store" width="200"></a>

## Developing

Expand Down
54 changes: 54 additions & 0 deletions src/assets/images/apple_store.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/components/AppStoreLinks.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script lang="ts">
import AppStoreImage from "$/assets/images/apple_store.svg";
</script>

<div class="flex items-center gap-x-2">
<a href="https://apps.apple.com/gb/app/nearest-color/id6504228400">
<img src={AppStoreImage} alt="Download on the App Store" class="my-0" />
</a>

<p class="my-0"><small>Windows coming soon</small></p>
</div>
8 changes: 5 additions & 3 deletions src/components/Banner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { get } from "svelte/store";
import { bannerShownSessionStore, bannerHiddenCountStore } from "../data/bannerStore";
import { onMount } from "svelte";
import TestFlightLink from "./TestFlightLink.svelte";
import AppStoreLinks from "./AppStoreLinks.svelte";
let banner: HTMLDivElement;
onMount(() => {
Expand Down Expand Up @@ -40,7 +40,7 @@
class="px-2 py-1 italic font-extrabold text-white transition-all bg-indigo-500 rounded hover:bg-indigo-600 hover:text-gray-50"
>Nearest Color</a
>
will be an app that's a better version of this website in every way, including
is an app that's a better version of this website in every way, including
<a
class="font-bold"
href="https://nearest-color.com/why-nearest-color-better-than-find-nearest-tailwind-colour?banner"
Expand All @@ -54,7 +54,9 @@
>.
</p>

<TestFlightLink />
<div class="my-2">
<AppStoreLinks />
</div>
<!-- <p class="flex-shrink-0 mt-0">
<a
href="https://nearest-color.com/why-nearest-color-better-than-find-nearest-tailwind-colour?banner"
Expand Down
8 changes: 5 additions & 3 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import "$/app.css";
import AppStoreLinks from "$/components/AppStoreLinks.svelte";
import Banner from "$/components/Banner.svelte";
import TestFlightLink from "$/components/TestFlightLink.svelte";
</script>

<div class="container pt-4 mx-auto">
Expand All @@ -16,7 +16,7 @@
href="https://nearest-color.com/why-nearest-color-better-than-find-nearest-tailwind-colour?footer"
>Nearest Color</a
>
will be an app that's a better version of this website in every way, including
is an app that's a better version of this website in every way, including
<a
class="font-bold"
href="https://nearest-color.com/why-nearest-color-better-than-find-nearest-tailwind-colour?footer"
Expand All @@ -30,7 +30,9 @@
>.
</p>
</div>
<TestFlightLink />
<div class="my-2">
<AppStoreLinks />
</div>

<p>
Made by
Expand Down

0 comments on commit e914c31

Please sign in to comment.