Skip to content

Commit

Permalink
✨ Updated design and texts && improved project page && added 2 projects
Browse files Browse the repository at this point in the history
  • Loading branch information
nwrenger committed Feb 5, 2025
1 parent 2bc6f50 commit 13d3559
Show file tree
Hide file tree
Showing 36 changed files with 599 additions and 395 deletions.
Binary file modified bun.lockb
Binary file not shown.
33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,32 @@
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.3.1",
"@sveltejs/adapter-auto": "^4.0.0",
"@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.15.1",
"@sveltejs/vite-plugin-svelte": "^4.0.4",
"@sveltejs/kit": "^2.17.1",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@types/luxon": "^3.4.2",
"autoprefixer": "^10.4.20",
"bits-ui": "^1.0.0-next.74",
"bits-ui": "^1.0.0-next.86",
"clsx": "^2.1.1",
"install": "^0.13.0",
"lucide-svelte": "^0.469.0",
"mode-watcher": "^0.5.0",
"lucide-svelte": "^0.474.0",
"mode-watcher": "^0.5.1",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"simple-icons": "^14.0.0",
"svelte": "^5.16.0",
"svelte-check": "^4.1.1",
"tailwind-merge": "^2.6.0",
"tailwind-variants": "^0.3.0",
"prettier-plugin-svelte": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.11",
"simple-icons": "^14.5.0",
"svelte": "^5.19.8",
"svelte-check": "^4.1.4",
"tailwind-merge": "^3.0.1",
"tailwind-variants": "^0.3.1",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vaul-svelte": "^0.3.2",
"vite": "5.4.11"
"vite": "6.1.0",
"caniuse-lite": "^1.0.30001697",
"luxon": "^3.5.0"
}
}
2 changes: 1 addition & 1 deletion src/lib/components/icons/Instagram.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
*/
</script>

<Icon name="instagram" {...$$props} fill="currentColor" strokeWidth="0.5" {iconNode}>
<Icon name="instagram" {...$$props} fill="currentColor" strokeWidth="0.2" {iconNode}>
<slot />
</Icon>
24 changes: 0 additions & 24 deletions src/lib/components/ui/accordion/accordion-content.svelte

This file was deleted.

12 changes: 0 additions & 12 deletions src/lib/components/ui/accordion/accordion-item.svelte

This file was deleted.

29 changes: 0 additions & 29 deletions src/lib/components/ui/accordion/accordion-trigger.svelte

This file was deleted.

17 changes: 0 additions & 17 deletions src/lib/components/ui/accordion/index.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/lib/components/ui/alert/alert-description.svelte

This file was deleted.

39 changes: 0 additions & 39 deletions src/lib/components/ui/alert/alert.svelte

This file was deleted.

14 changes: 0 additions & 14 deletions src/lib/components/ui/alert/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/components/ui/badge/badge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
this={href ? 'a' : 'span'}
bind:this={ref}
{href}
class={cn(badgeVariants({ variant, className }))}
class={cn(badgeVariants({ variant }), className)}
{...restProps}
>
{@render children?.()}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/ui/button/button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
</script>

{#if href}
<a bind:this={ref} class={cn(buttonVariants({ variant, size, className }))} {href} {...restProps}>
<a bind:this={ref} class={cn(buttonVariants({ variant, size }), className)} {href} {...restProps}>
{@render children?.()}
</a>
{:else}
<button
bind:this={ref}
class={cn(buttonVariants({ variant, size, className }))}
class={cn(buttonVariants({ variant, size }), className)}
{type}
{...restProps}
>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/ui/card/card-title.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
role="heading"
aria-level={level}
bind:this={ref}
class={cn('text-lg font-semibold leading-none tracking-tight', className)}
class={cn('text-2xl font-semibold leading-none tracking-tight', className)}
{...restProps}
>
{@render children?.()}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<script lang="ts">
import { DropdownMenu as DropdownMenuPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
import Check from 'lucide-svelte/icons/check';
import Minus from 'lucide-svelte/icons/minus';
import { cn } from '$lib/utils.js';
import type { Snippet } from 'svelte';
let {
ref = $bindable(null),
checked = $bindable(false),
indeterminate = $bindable(false),
class: className,
children: childrenProp,
...restProps
}: WithoutChildrenOrChild<DropdownMenuPrimitive.CheckboxItemProps> & {
children?: Snippet;
} = $props();
</script>

<DropdownMenuPrimitive.CheckboxItem
bind:ref
bind:checked
bind:indeterminate
class={cn(
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50',
className
)}
{...restProps}
>
{#snippet children({ checked, indeterminate })}
<span class="absolute left-2 flex size-3.5 items-center justify-center">
{#if indeterminate}
<Minus class="size-4" />
{:else}
<Check class={cn('size-4', !checked && 'text-transparent')} />
{/if}
</span>
{@render childrenProp?.()}
{/snippet}
</DropdownMenuPrimitive.CheckboxItem>
26 changes: 26 additions & 0 deletions src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<script lang="ts">
import { cn } from '$lib/utils.js';
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
let {
ref = $bindable(null),
sideOffset = 4,
portalProps,
class: className,
...restProps
}: DropdownMenuPrimitive.ContentProps & {
portalProps?: DropdownMenuPrimitive.PortalProps;
} = $props();
</script>

<DropdownMenuPrimitive.Portal {...portalProps}>
<DropdownMenuPrimitive.Content
bind:ref
{sideOffset}
class={cn(
'z-50 min-w-[8rem] overflow-hidden rounded-md bg-popover p-1 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
className
)}
{...restProps}
/>
</DropdownMenuPrimitive.Portal>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script lang="ts">
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
import { cn } from '$lib/utils.js';
let {
ref = $bindable(null),
class: className,
inset,
...restProps
}: DropdownMenuPrimitive.GroupHeadingProps & {
inset?: boolean;
} = $props();
</script>

<DropdownMenuPrimitive.GroupHeading
bind:ref
class={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}
{...restProps}
/>
23 changes: 23 additions & 0 deletions src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<script lang="ts">
import { cn } from '$lib/utils.js';
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
let {
ref = $bindable(null),
class: className,
inset,
...restProps
}: DropdownMenuPrimitive.ItemProps & {
inset?: boolean;
} = $props();
</script>

<DropdownMenuPrimitive.Item
bind:ref
class={cn(
'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
inset && 'pl-8',
className
)}
{...restProps}
/>
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
<script lang="ts">
import type { HTMLAttributes } from 'svelte/elements';
import type { WithElementRef } from 'bits-ui';
import { cn } from '$lib/utils.js';
import { type WithElementRef } from 'bits-ui';
import type { HTMLAttributes } from 'svelte/elements';
let {
ref = $bindable(null),
class: className,
level = 5,
inset,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
level?: 1 | 2 | 3 | 4 | 5 | 6;
inset?: boolean;
} = $props();
</script>

<div
role="heading"
aria-level={level}
bind:this={ref}
class={cn('mb-1 font-medium leading-none tracking-tight', className)}
class={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}
{...restProps}
>
{@render children?.()}
Expand Down
Loading

0 comments on commit 13d3559

Please sign in to comment.