diff --git a/public/assets/algolia.svg b/public/assets/algolia.svg new file mode 100644 index 0000000..c594652 --- /dev/null +++ b/public/assets/algolia.svg @@ -0,0 +1,7 @@ + + Algolia + + + \ No newline at end of file diff --git a/src/components/ui/icons/GithubIcon.svelte b/public/assets/github.svg similarity index 56% rename from src/components/ui/icons/GithubIcon.svelte rename to public/assets/github.svg index 92301a3..3406b88 100644 --- a/src/components/ui/icons/GithubIcon.svelte +++ b/public/assets/github.svg @@ -1,32 +1,6 @@ - - - - {#if !!title} - {title} - {/if} + + GitHub - - - + d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"> + + \ No newline at end of file diff --git a/public/assets/magnifyingGlass.svg b/public/assets/magnifyingGlass.svg new file mode 100644 index 0000000..63ec553 --- /dev/null +++ b/public/assets/magnifyingGlass.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/public/assets/pencil.svg b/public/assets/pencil.svg new file mode 100644 index 0000000..d4d6048 --- /dev/null +++ b/public/assets/pencil.svg @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/public/assets/repository.svg b/public/assets/repository.svg new file mode 100644 index 0000000..968d964 --- /dev/null +++ b/public/assets/repository.svg @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/public/assets/star.svg b/public/assets/star.svg new file mode 100644 index 0000000..14349d8 --- /dev/null +++ b/public/assets/star.svg @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/public/assets/user.svg b/public/assets/user.svg new file mode 100644 index 0000000..8da852f --- /dev/null +++ b/public/assets/user.svg @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/public/assets/x.svg b/public/assets/x.svg new file mode 100644 index 0000000..b9ddc82 --- /dev/null +++ b/public/assets/x.svg @@ -0,0 +1,6 @@ + + X + + + \ No newline at end of file diff --git a/public/assets/zenn.svg b/public/assets/zenn.svg new file mode 100644 index 0000000..349c28b --- /dev/null +++ b/public/assets/zenn.svg @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/public/favicon.svg b/public/favicon.svg deleted file mode 100644 index f157bd1..0000000 --- a/public/favicon.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/src/components/Hero.svelte b/src/components/Hero.svelte index b1697df..3be84b1 100644 --- a/src/components/Hero.svelte +++ b/src/components/Hero.svelte @@ -1,11 +1,7 @@ {#if title} {title} diff --git a/src/components/Search/SearchInput.svelte b/src/components/Search/SearchInput.svelte index 93dd1d3..f8b97b4 100644 --- a/src/components/Search/SearchInput.svelte +++ b/src/components/Search/SearchInput.svelte @@ -1,7 +1,7 @@
- +
@@ -43,11 +43,6 @@ align-items: center; } - .search-icon :global(svg) { - height: 1.25rem; - width: 1.25rem; - } - .search-input { color: rbg(var(--color-white)); font-size: 1rem; diff --git a/src/components/Search/index.svelte b/src/components/Search/index.svelte index 0097301..a249587 100644 --- a/src/components/Search/index.svelte +++ b/src/components/Search/index.svelte @@ -5,7 +5,7 @@ import { searchAlgolia } from '../../utils/algolia' import SearchInput from './SearchInput.svelte' import BlogHit from './BlogHit.svelte' - import AlgoliaIcon from '../ui/icons/AlgoliaIcon.svelte' + import AlgoliaIcon from './AlgoliaIcon.svelte' let results: SearchResponse let hits: Hit[] = [] @@ -88,7 +88,7 @@ target="_blank" rel="noopener noreferrer" > - + {#if !results?.nbHits} @@ -123,10 +123,6 @@ justify-content: flex-end; } - .search-icon-wrapper :global(svg) { - height: 1.25rem; - } - .search-results-wrapper { height: calc(100% - 9rem); overflow-y: auto; diff --git a/src/components/ui/Icon.svelte b/src/components/ui/Icon.svelte new file mode 100644 index 0000000..d48daee --- /dev/null +++ b/src/components/ui/Icon.svelte @@ -0,0 +1,112 @@ + + + + + diff --git a/src/components/ui/icons/MagnifyingGlass.svelte b/src/components/ui/icons/MagnifyingGlass.svelte deleted file mode 100644 index 5bb9046..0000000 --- a/src/components/ui/icons/MagnifyingGlass.svelte +++ /dev/null @@ -1,24 +0,0 @@ - - - - {#if title} - {title} - {/if} - - diff --git a/src/components/ui/icons/OriverIcon.svelte b/src/components/ui/icons/OriverIcon.svelte deleted file mode 100644 index 65d6f35..0000000 --- a/src/components/ui/icons/OriverIcon.svelte +++ /dev/null @@ -1,15 +0,0 @@ - - -
- - diff --git a/src/components/ui/icons/PencilIcon.svelte b/src/components/ui/icons/PencilIcon.svelte deleted file mode 100644 index 72484ee..0000000 --- a/src/components/ui/icons/PencilIcon.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - - - {#if !!title} - {title} - {/if} - - diff --git a/src/components/ui/icons/RepoIcon.svelte b/src/components/ui/icons/RepoIcon.svelte deleted file mode 100644 index 51abea4..0000000 --- a/src/components/ui/icons/RepoIcon.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - - - {#if !!title} - {title} - {/if} - - diff --git a/src/components/ui/icons/StarIcon.svelte b/src/components/ui/icons/StarIcon.svelte deleted file mode 100644 index 57a019d..0000000 --- a/src/components/ui/icons/StarIcon.svelte +++ /dev/null @@ -1,26 +0,0 @@ - - - - {#if !!title} - {title} - {/if} - - diff --git a/src/components/ui/icons/UserIcon.svelte b/src/components/ui/icons/UserIcon.svelte deleted file mode 100644 index a8d8664..0000000 --- a/src/components/ui/icons/UserIcon.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - - - {#if !!title} - {title} - {/if} - - diff --git a/src/components/ui/icons/X.svelte b/src/components/ui/icons/X.svelte deleted file mode 100644 index fb7b09f..0000000 --- a/src/components/ui/icons/X.svelte +++ /dev/null @@ -1,26 +0,0 @@ - - - - {#if !!title} - {title} - {/if} - - diff --git a/src/components/ui/icons/ZennIcon.svelte b/src/components/ui/icons/ZennIcon.svelte deleted file mode 100644 index b3df65c..0000000 --- a/src/components/ui/icons/ZennIcon.svelte +++ /dev/null @@ -1,32 +0,0 @@ - - - - {#if !!title} - {title} - {/if} - - - - diff --git a/src/layouts/Header.astro b/src/layouts/Header.astro index e05b5b8..892d9a3 100644 --- a/src/layouts/Header.astro +++ b/src/layouts/Header.astro @@ -1,24 +1,22 @@ --- -import OriverIcon from '../components/ui/icons/OriverIcon.svelte' +import Icon from '../components/ui/Icon.svelte' --- @@ -34,6 +32,7 @@ import OriverIcon from '../components/ui/icons/OriverIcon.svelte' .home { text-decoration: none; + margin: 0.5rem; } .about {