Skip to content

Commit

Permalink
slowly but surely
Browse files Browse the repository at this point in the history
  • Loading branch information
dromzeh committed Nov 14, 2023
1 parent c0e9730 commit eaa3fec
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 71 deletions.
25 changes: 11 additions & 14 deletions src/components/posts/Post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,20 @@ export let post: Post
</script>

<div class="z-10 flex flex-col">
<div class="py-3">
<div class="mb-2 flex items-center justify-between gap-2">
<a
class="text-lg text-white underline decoration-zinc-600 transition-colors hover:text-violet-300 hover:decoration-violet-300"
href="/posts/{post.id}">
{post.title}
</a>
<div class="hidden sm:block">
<div class="mb-3 flex flex-row gap-2">
<div class="bg-zinc-800 px-1 font-mono text-xs text-white">
<a href="/posts/{post.id}">
<div
class="group rounded-lg p-3 transition-all duration-150 hover:bg-zinc-500/10 hover:ring-1 hover:ring-white/50">
<div class="flex items-center justify-between gap-2">
<p class="text-lg text-white">
{post.title}
</p>
<div class="hidden sm:block">
<div
class="rounded-lg px-2 py-1 font-mono text-xs text-white ring-1 ring-white/50">
{post.categories[0]}
</div>
</div>
</div>
</div>
<p>
{post.description}
</p>
</div>
</a>
</div>
4 changes: 2 additions & 2 deletions src/components/posts/PostsContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ onMount(async () => {
{#each groupedPosts as [year, yearPosts]}
<div class="relative">
<div
class="year absolute translate-x-[-30px] translate-y-[-20px] text-8xl font-bold opacity-20">
class="year absolute translate-x-[-30px] translate-y-[-20px] font-mono text-8xl font-bold opacity-20">
{year}
</div>
<div class="flex flex-col gap-6">
<div class="flex flex-col gap-2">
{#each yearPosts as post}
<Post post="{post}" />
{/each}
Expand Down
42 changes: 21 additions & 21 deletions src/components/projects/Project.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ export let project: Project
</script>

<div class="z-10 flex flex-col">
<div class="py-3">
<div class="mb-2 flex items-center justify-between gap-2">
<a
href="{project.url ? project.url : project.gitUrl}"
target="_blank"
class="text-lg text-white underline decoration-zinc-600 transition-colors hover:text-violet-300 hover:decoration-violet-300">
{project.name}
</a>
{#if project.gitUrl}
<a
href="{project.gitUrl}"
target="_blank"
rel="noopener noreferrer"
class="monofont bg-zinc-800 px-1 text-xs lowercase text-white">
Open Source
</a>
{/if}
<a href="{project.url ? project.url : project.gitUrl}">
<div
class="group rounded-lg p-3 transition-all duration-150 hover:bg-zinc-500/10 hover:ring-1 hover:ring-white/50">
<div class="flex items-center justify-between gap-2">
<p class="text-lg text-white">
{project.name}
</p>
{#if project.gitUrl}
<a
href="{project.gitUrl}"
target="_blank"
rel="noopener noreferrer"
class="rounded-lg px-2 py-1 font-mono text-xs text-white ring-1 ring-white/50">
Open Source
</a>
{/if}
</div>
<p class="">
{project.description}
</p>
</div>
<p class="">
{project.description}
</p>
</div>
</a>
</div>
4 changes: 2 additions & 2 deletions src/components/projects/ProjectsContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ onMount(async () => {
{#each groupedProjects as [category, categoryProjects]}
<div class="relative">
<div
class="category absolute translate-x-[-30px] translate-y-[-50px] text-8xl font-bold opacity-20 sm:translate-y-[-20px]">
class="category absolute translate-x-[-30px] translate-y-[-50px] font-mono text-8xl font-bold opacity-20 sm:translate-y-[-20px]">
{category}
</div>
<div class="flex flex-col gap-6">
<div class="flex flex-col gap-2">
{#each categoryProjects as project}
<Project project="{project}" />
{/each}
Expand Down
36 changes: 8 additions & 28 deletions src/components/socials/SocialsContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,48 +13,28 @@ import { Github, Twitter } from 'lucide-svelte'
out to me on Discord.
<div class="my-4 flex flex-wrap gap-4">
<a
class="flex flex-row gap-2 text-white transition-colors hover:text-violet-300"
class="text-white underline decoration-zinc-600 transition-colors hover:text-violet-300 hover:decoration-violet-300"
href="https://git.dromzeh.dev/"
target="_blank">
<Github size="{24}" /> GitHub
GitHub
</a>
<a
class="flex flex-row gap-2 text-white transition-colors hover:text-violet-300"
class="text-white underline decoration-zinc-600 transition-colors hover:text-violet-300 hover:decoration-violet-300"
href="https://twitter.com/dromzeh"
target="_blank">
<Twitter size="{24}" /> Twitter
Twitter
</a>
<a
class="flex flex-row gap-2 text-white transition-colors hover:text-violet-300"
class="text-white underline decoration-zinc-600 transition-colors hover:text-violet-300 hover:decoration-violet-300"
href="https://discord.com/users/492731761680187403"
target="_blank">
<svg
width="24"
height="24"
viewBox="0 0 15 15"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
><path
fill-rule="evenodd"
clip-rule="evenodd"
d="M5.07451 1.82584C5.03267 1.81926 4.99014 1.81825 4.94803 1.82284C4.10683 1.91446 2.82673 2.36828 2.07115 2.77808C2.02106 2.80525 1.97621 2.84112 1.93869 2.88402C1.62502 3.24266 1.34046 3.82836 1.11706 4.38186C0.887447 4.95076 0.697293 5.55032 0.588937 5.98354C0.236232 7.39369 0.042502 9.08728 0.0174948 10.6925C0.0162429 10.7729 0.0351883 10.8523 0.0725931 10.9234C0.373679 11.496 1.02015 12.027 1.66809 12.4152C2.32332 12.8078 3.08732 13.1182 3.70385 13.1778C3.85335 13.1922 4.00098 13.1358 4.10282 13.0255C4.2572 12.8581 4.5193 12.4676 4.71745 12.1643C4.80739 12.0267 4.89157 11.8953 4.95845 11.7901C5.62023 11.9106 6.45043 11.9801 7.50002 11.9801C8.54844 11.9801 9.37796 11.9107 10.0394 11.7905C10.1062 11.8957 10.1903 12.0269 10.2801 12.1643C10.4783 12.4676 10.7404 12.8581 10.8947 13.0255C10.9966 13.1358 11.1442 13.1922 11.2937 13.1778C11.9102 13.1182 12.6742 12.8078 13.3295 12.4152C13.9774 12.027 14.6239 11.496 14.925 10.9234C14.9624 10.8523 14.9813 10.7729 14.9801 10.6925C14.9551 9.08728 14.7613 7.39369 14.4086 5.98354C14.3003 5.55032 14.1101 4.95076 13.8805 4.38186C13.6571 3.82836 13.3725 3.24266 13.0589 2.88402C13.0214 2.84112 12.9765 2.80525 12.9264 2.77808C12.1708 2.36828 10.8907 1.91446 10.0495 1.82284C10.0074 1.81825 9.96489 1.81926 9.92305 1.82584C9.71676 1.85825 9.5391 1.96458 9.40809 2.06355C9.26977 2.16804 9.1413 2.29668 9.0304 2.42682C8.86968 2.61544 8.71437 2.84488 8.61428 3.06225C8.27237 3.03501 7.90138 3.02 7.5 3.02C7.0977 3.02 6.72593 3.03508 6.38337 3.06244C6.28328 2.84501 6.12792 2.61549 5.96716 2.42682C5.85626 2.29668 5.72778 2.16804 5.58947 2.06355C5.45846 1.96458 5.2808 1.85825 5.07451 1.82584ZM11.0181 11.5382C11.0395 11.5713 11.0615 11.6051 11.0838 11.6392C11.2169 11.843 11.3487 12.0385 11.4508 12.1809C11.8475 12.0916 12.352 11.8818 12.8361 11.5917C13.3795 11.2661 13.8098 10.8918 14.0177 10.5739C13.9852 9.06758 13.7993 7.50369 13.4773 6.21648C13.38 5.82759 13.2038 5.27021 12.9903 4.74117C12.7893 4.24326 12.5753 3.82162 12.388 3.5792C11.7376 3.24219 10.7129 2.88582 10.0454 2.78987C10.0308 2.79839 10.0113 2.81102 9.98675 2.82955C9.91863 2.881 9.84018 2.95666 9.76111 3.04945C9.71959 3.09817 9.68166 3.1471 9.64768 3.19449C9.953 3.25031 10.2253 3.3171 10.4662 3.39123C11.1499 3.6016 11.6428 3.89039 11.884 4.212C12.0431 4.42408 12.0001 4.72494 11.788 4.884C11.5759 5.04306 11.2751 5.00008 11.116 4.788C11.0572 4.70961 10.8001 4.4984 10.1838 4.30877C9.58933 4.12585 8.71356 3.98 7.5 3.98C6.28644 3.98 5.41067 4.12585 4.81616 4.30877C4.19988 4.4984 3.94279 4.70961 3.884 4.788C3.72494 5.00008 3.42408 5.04306 3.212 4.884C2.99992 4.72494 2.95694 4.42408 3.116 4.212C3.35721 3.89039 3.85011 3.6016 4.53383 3.39123C4.77418 3.31727 5.04571 3.25062 5.35016 3.19488C5.31611 3.14738 5.27808 3.09831 5.23645 3.04945C5.15738 2.95666 5.07893 2.881 5.01081 2.82955C4.98628 2.81102 4.96674 2.79839 4.95217 2.78987C4.28464 2.88582 3.25999 3.24219 2.60954 3.5792C2.42226 3.82162 2.20825 4.24326 2.00729 4.74117C1.79376 5.27021 1.61752 5.82759 1.52025 6.21648C1.19829 7.50369 1.01236 9.06758 0.97986 10.5739C1.18772 10.8918 1.61807 11.2661 2.16148 11.5917C2.64557 11.8818 3.15003 12.0916 3.5468 12.1809C3.64885 12.0385 3.78065 11.843 3.9138 11.6392C3.93626 11.6048 3.95838 11.5708 3.97996 11.5375C3.19521 11.2591 2.77361 10.8758 2.50064 10.4664C2.35359 10.2458 2.4132 9.94778 2.63377 9.80074C2.85435 9.65369 3.15236 9.71329 3.29941 9.93387C3.56077 10.3259 4.24355 11.0201 7.50002 11.0201C10.7565 11.0201 11.4392 10.326 11.7006 9.93386C11.8477 9.71329 12.1457 9.65369 12.3663 9.80074C12.5869 9.94779 12.6465 10.2458 12.4994 10.4664C12.2262 10.8762 11.8041 11.2598 11.0181 11.5382ZM4.08049 7.01221C4.32412 6.74984 4.65476 6.60162 5.00007 6.59998C5.34538 6.60162 5.67603 6.74984 5.91966 7.01221C6.16329 7.27459 6.30007 7.62974 6.30007 7.99998C6.30007 8.37021 6.16329 8.72536 5.91966 8.98774C5.67603 9.25011 5.34538 9.39833 5.00007 9.39998C4.65476 9.39833 4.32412 9.25011 4.08049 8.98774C3.83685 8.72536 3.70007 8.37021 3.70007 7.99998C3.70007 7.62974 3.83685 7.27459 4.08049 7.01221ZM9.99885 6.59998C9.65354 6.60162 9.3229 6.74984 9.07926 7.01221C8.83563 7.27459 8.69885 7.62974 8.69885 7.99998C8.69885 8.37021 8.83563 8.72536 9.07926 8.98774C9.3229 9.25011 9.65354 9.39833 9.99885 9.39998C10.3442 9.39833 10.6748 9.25011 10.9184 8.98774C11.1621 8.72536 11.2989 8.37021 11.2989 7.99998C11.2989 7.62974 11.1621 7.27459 10.9184 7.01221C10.6748 6.74984 10.3442 6.60162 9.99885 6.59998Z"
fill="currentColor"></path
></svg> Discord
Discord
</a>
<a
class="flex flex-row gap-2 text-white transition-colors hover:text-violet-300"
class="text-white underline decoration-zinc-600 transition-colors hover:text-violet-300 hover:decoration-violet-300"
href="https://open.spotify.com/user/fnn3ngyzaq9wir8jyevt96zrf"
target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
width="24"
viewBox="0 0 168 168">
<path
fill="currentColor"
d="m83.996 0.277c-46.249 0-83.743 37.493-83.743 83.742 0 46.251 37.494 83.741 83.743 83.741 46.254 0 83.744-37.49 83.744-83.741 0-46.246-37.49-83.738-83.745-83.738l0.001-0.004zm38.404 120.78c-1.5 2.46-4.72 3.24-7.18 1.73-19.662-12.01-44.414-14.73-73.564-8.07-2.809 0.64-5.609-1.12-6.249-3.93-0.643-2.81 1.11-5.61 3.926-6.25 31.9-7.291 59.263-4.15 81.337 9.34 2.46 1.51 3.24 4.72 1.73 7.18zm10.25-22.805c-1.89 3.075-5.91 4.045-8.98 2.155-22.51-13.839-56.823-17.846-83.448-9.764-3.453 1.043-7.1-0.903-8.148-4.35-1.04-3.453 0.907-7.093 4.354-8.143 30.413-9.228 68.222-4.758 94.072 11.127 3.07 1.89 4.04 5.91 2.15 8.976v-0.001zm0.88-23.744c-26.99-16.031-71.52-17.505-97.289-9.684-4.138 1.255-8.514-1.081-9.768-5.219-1.254-4.14 1.08-8.513 5.221-9.771 29.581-8.98 78.756-7.245 109.83 11.202 3.73 2.209 4.95 7.016 2.74 10.733-2.2 3.722-7.02 4.949-10.73 2.739z"
></path>
</svg> Spotify
Spotify
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import SocialsContainer from '../components/socials/SocialsContainer.svelte'
<div class="py-24 text-zinc-400">
<div class="flex flex-col gap-3">
<div>
<h1 class="text-4xl font-semibold text-white">dromzeh.dev</h1>
<h1 class="font-mono text-4xl font-semibold text-white">dromzeh.dev</h1>
<div class="mb-2 mt-8 flex flex-col gap-3">
<Intro />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/posts/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import PostsContainer from '../../components/posts/PostsContainer.svelte'
</svelte:head>

<div class="py-24 text-zinc-400">
<h1 class="text-4xl font-semibold text-white">Posts</h1>
<h1 class="font-mono text-4xl font-semibold text-white">Posts</h1>
<div class="mb-2 mt-8 flex flex-col gap-3">
<PostsContainer />
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/posts/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const { content } = data as { content: any }
</p>
</div>

<div class="mb-2 flex flex-row gap-1">
<div class="mb-2 flex flex-row gap-2">
{#each categories as category}
<p class="bg-zinc-800 px-1 font-mono text-xs text-white">
<p class="rounded-lg px-2 py-1 font-mono text-xs text-white ring-1 ring-white/50">
{category}
</p>
{/each}
Expand Down

0 comments on commit eaa3fec

Please sign in to comment.