diff --git a/public/diagonal-stripes.svg b/public/diagonal-stripes.svg
index 1237279..e4ccaa7 100644
--- a/public/diagonal-stripes.svg
+++ b/public/diagonal-stripes.svg
@@ -1,5 +1,5 @@
diff --git a/src/components/UrlItem.tsx b/src/components/UrlItem.tsx
index 47adfd9..d4428d6 100644
--- a/src/components/UrlItem.tsx
+++ b/src/components/UrlItem.tsx
@@ -1,19 +1,18 @@
-import { createResource } from "solid-js";
+import { createEffect, createResource } from "solid-js";
import getDocument from "../getDocument";
export default function UrlItem({ url }: { url: URL }) {
const [document] = createResource(url, getDocument);
- const title = () => document()?.title ?? url.hostname;
- // classList={{
- // "relative after:absolute after:inset-0 after:bg-[url(/public/diagonal-stripes.svg)] after:animate-stripes *:opacity-70 after:starting:opacity-0 after:transition-all after:transition-discrete after:duration-1000":
- // document.loading,
- // }}
+ const title = () => document()?.title || url.hostname;
+
return (
{/*
{title()}
+ {/* Pattern based on tailwindcss.com */}
);
diff --git a/src/index.css b/src/index.css
index 44d8825..3765ed2 100644
--- a/src/index.css
+++ b/src/index.css
@@ -1,17 +1,17 @@
@import "tailwindcss";
:root {
- @apply bg-stone-100 text-stone-900;
+ @apply bg-stone-100 text-stone-900 caret-orange-600 accent-orange-500 selection:bg-stone-900 selection:text-orange-500;
}
@theme {
- --animate-stripes: stripes 5s linear infinite;
- @keyframes stripes {
- from {
- background-position: 0 0;
+ --animate-stripes: stripes 1.5s linear infinite;
+ @keyframes stripes {
+ from {
+ background-position: 0 0;
+ }
+ to {
+ background-position: 40px -40px;
+ }
}
- to {
- background-position: 40px -40px;
- }
- }
}