From 01063999d7b9069b67c5bb6b9e2053f7c0eb7434 Mon Sep 17 00:00:00 2001 From: Abhimanyu Rana Date: Sat, 13 May 2023 16:33:16 +0530 Subject: [PATCH] polishing --- README.md | 8 +++---- package-lock.json | 16 ++++++------- package.json | 4 ++-- src/components/Card.astro | 4 +--- src/layouts/Layout.astro | 48 +++++++++++++++++---------------------- src/pages/index.astro | 2 +- 6 files changed, 37 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index ac76698..1ed7bc6 100644 --- a/README.md +++ b/README.md @@ -133,15 +133,15 @@ Website | Description ### 💬 Prompts Website | Description :--- |:--- -[Dallelist](https://www.dallelist.com/?ref=riseofmachine) | DALL-E Prompt helper. +[Dallelist](https://www.dallelist.com/?ref=riseofmachine) | DALL-E prompt helper. [Eye for AI](https://eyeforai.xyz/?ref=riseofmachine) | Visual prompt builder. [Img2prompt](https://replicate.com/methexis-inc/img2prompt/?ref=riseofmachine) | Image to prompt. -[Jrnylist](https://www.jrnylist.com/?ref=riseofmachine) | Midjourney prompt Helper. +[Jrnylist](https://www.jrnylist.com/?ref=riseofmachine) | Midjourney prompt helper. [Krea](https://www.krea.ai/?ref=riseofmachine) | Create collections of prompts. [OpenArt](https://openart.ai/?ref=riseofmachine) | Discover 10M+ prompts. -[PromptBase](https://promptbase.com/?ref=riseofmachine) | Marketplace for GPT3 Prompts. +[PromptBase](https://promptbase.com/?ref=riseofmachine) | Marketplace for GPT3 prompts. [PromptBox](https://www.promptbox.ai/?ref=riseofmachine) | Organize your prompts. -[PromptHero](https://prompthero.com/?ref=riseofmachine) | Search prompts for Stable Diffusion, ChatGPT, & Midjourney. +[PromptHero](https://prompthero.com/?ref=riseofmachine) | Prompts for Stable Diffusion, ChatGPT, & Midjourney. [PromptLayer](https://promptlayer.com/?ref=riseofmachine) | Log, search, & manage prompt templates. diff --git a/package-lock.json b/package-lock.json index 93f16e0..d08f6c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,12 +10,12 @@ "license": "MIT", "dependencies": { "@astrojs/netlify": "^2.2.2", - "astro": "^2.4.4" + "astro": "^2.4.5" }, "devDependencies": { "@new-ui/colors": "^1.2.11", "@new-ui/effects": "^0.1.0", - "@new-ui/spacings": "^0.1.0", + "@new-ui/spacings": "^0.1.1", "@new-ui/typography": "^0.1.3" } }, @@ -967,9 +967,9 @@ "dev": true }, "node_modules/@new-ui/spacings": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@new-ui/spacings/-/spacings-0.1.0.tgz", - "integrity": "sha512-7qNwJpZntXYFVfTrrx3E84Ua5RiSppePL+f+UZlqxUvRzpDb1cMH+C8fOg37y6InkGNKOQRsDx9Q+OjRaURYEw==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@new-ui/spacings/-/spacings-0.1.1.tgz", + "integrity": "sha512-XkRn8uotK8XLHvOp4M5h8C8tg8cpRseTZUNHp94bLvpjWqb7/sr8LsuPt3QMzNtxFgRHbChGStBxhehYZkgjRQ==", "dev": true }, "node_modules/@new-ui/typography": { @@ -1263,9 +1263,9 @@ } }, "node_modules/astro": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/astro/-/astro-2.4.4.tgz", - "integrity": "sha512-2DFxcnZySS/OzBbiuWpoVGJBikcHfbwO5xmk5ohItswoMs+PfZ5P/B6mXplTjaosjm3M43c0OIsd8Mq6UksQZQ==", + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/astro/-/astro-2.4.5.tgz", + "integrity": "sha512-osxLnuLXaOX0FjWOVQH8cmK4N/Gdj/ZdEkeyMJWsUss7xQU4Q64tAxB/dAv75f/XZiu+PprmndJkyQ4sYLOv1g==", "dependencies": { "@astrojs/compiler": "^1.4.0", "@astrojs/language-server": "^1.0.0", diff --git a/package.json b/package.json index 400202e..3e2b060 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,12 @@ }, "dependencies": { "@astrojs/netlify": "^2.2.2", - "astro": "^2.4.4" + "astro": "^2.4.5" }, "devDependencies": { "@new-ui/colors": "^1.2.11", "@new-ui/effects": "^0.1.0", - "@new-ui/spacings": "^0.1.0", + "@new-ui/spacings": "^0.1.1", "@new-ui/typography": "^0.1.3" }, "description": "Handpicked AI tools for your projects.", diff --git a/src/components/Card.astro b/src/components/Card.astro index 590b89a..9a490fa 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -39,7 +39,5 @@ const { href, title, body } = Astro.props; background-position: 0; border: 1px solid var(--border); } - .link-card:is(:hover, :focus-within) h2 { - color: rgb(var(--accent)); - } + .link-card:is(:hover, :focus-within) h6 {} diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index edd6235..cd4004d 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -29,7 +29,7 @@ const { title } = Astro.props; @@ -40,46 +40,40 @@ const { title } = Astro.props; :root { --system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; --accent: var(--support-info); + --system-code: Menlo, Consolas, "Ubuntu Mono", "Roboto Mono", "DejaVu Sans Mono", Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; } html { font-family: var(--system-ui); background-color: var(--background); } body { margin: 0; padding: 0;} - code { - font-family: Menlo, Consolas, "Ubuntu Mono", "Roboto Mono", "DejaVu Sans Mono", Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; - } main { margin: auto var(--spacing-10);} h1.title { margin-bottom: var(--spacing-10); color: var(--text-primary); margin-top: var(--spacing-12); } section { margin-bottom: var(--spacing-10);} - p { margin-top: var(--spacing-1);} + p { margin-top: var(--spacing-00);} .nu-u-link--subtle { color: var(--text-secondary) !important;} /* theme toggle */ .theme-toggle { - --size: 2rem; - --icon-fill: var(--icon-secondary); - --icon-fill-hover: var(--icon-secondary); - background: none; - border: none; - padding: 0; - color: var(--icon-secondary); - - inline-size: var(--size); - block-size: var(--size); - aspect-ratio: 1; - border-radius: 50%; - - cursor: pointer; - touch-action: manipulation; - -webkit-tap-highlight-color: transparent; - - position: fixed; - top: var(--spacing-05); - right: var(--spacing-05); - - outline-offset: 5px; + --icon-fill: var(--icon-secondary); + --icon-fill-hover: var(--icon-secondary); + width: var(--spacing-09); + height: var(--spacing-09); + background: none; + border: none; + padding: var(--spacing-00); + color: var(--icon-secondary); + cursor: pointer; + touch-action: manipulation; + -webkit-tap-highlight-color: transparent; + position: fixed; + top: var(--spacing-07); + right: var(--spacing-07); + display: flex; + justify-content: center; + align-items: center; + border: 1px solid var(--border-muted); @nest [data-theme="dark"] & { --icon-fill: var(--icon-secondary); diff --git a/src/pages/index.astro b/src/pages/index.astro index cd93695..208c894 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -631,6 +631,6 @@ import "@new-ui/spacings"; display: grid; grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr)); gap: var(--spacing-02); - padding: 0; + padding: var(--spacing-00); }