Skip to content

Commit

Permalink
Umami, more post images width, new article (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwabed authored Nov 12, 2022
1 parent 00940bf commit 956b32c
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 70 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DATABASE_URL=
BOT_TOKEN=
BOT_GROUP_ID=
PUBLIC_UMAMI_WEBSITE_ID=
PUBLIC_UMAMI_URL=
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
},
"devDependencies": {
"@sveltejs/adapter-vercel": "1.0.0-next.81",
"@sveltejs/kit": "1.0.0-next.539",
"@sveltejs/kit": "1.0.0-next.543",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"@unocss/preset-rem-to-px": "^0.46.4",
"@unocss/preset-typography": "^0.46.4",
"@unocss/preset-wind": "^0.46.4",
"@unocss/reset": "^0.46.4",
"@unocss/transformer-variant-group": "^0.46.4",
"@vitest/coverage-istanbul": "^0.25.1",
Expand All @@ -28,10 +28,10 @@
"mdsvex": "^0.10.6",
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.8.0",
"prisma": "^4.6.0",
"prisma": "^4.6.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",
"svelte": "^3.52.0",
"svelte": "^3.53.1",
"svelte-check": "^2.9.2",
"svelte-preprocess": "^4.10.7",
"tslib": "^2.4.1",
Expand All @@ -44,7 +44,7 @@
"dependencies": {
"@fontsource/montserrat": "^4.5.13",
"@fontsource/open-sans": "^4.5.13",
"@prisma/client": "^4.6.0",
"@prisma/client": "^4.6.1",
"notie": "^4.3.1"
}
}
104 changes: 55 additions & 49 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,4 @@
<body>
<div id="svelte">%sveltekit.body%</div>
</body>

<script
async
defer
data-do-not-track="true"
data-website-id="2b9f5efb-e054-4c0f-bfb8-44063fc990a4"
src="https://guests.kalwabed.xyz/umami.js"
></script>
</html>
10 changes: 5 additions & 5 deletions src/lib/components/blog/Image.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
export let isFullWidth = false;
</script>

<figure class="text-center">
<figure class="text-center not-prose space-y-2 lg:w-[800px] lg:-mx-24">
<img
{src}
alt="Ini gambar"
class="rounded-lg mx-auto {isFullWidth ? 'w-full' : ''}"
alt={caption}
class="rounded-lg mx-auto {isFullWidth ? 'w-[800px]' : ''}"
height="420"
width="420"
decoding="async"
loading="lazy"
/>
<caption class="text-xs inline-flex space-x-1">
<figcaption class="text-xs inline-flex space-x-1">
{@html caption}
</caption>
</figcaption>
</figure>
11 changes: 11 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,22 @@
import '@fontsource/open-sans/600.css';
import '@fontsource/montserrat/400.css';
import '@fontsource/montserrat/600.css';
import { PUBLIC_UMAMI_WEBSITE_ID, PUBLIC_UMAMI_URL } from '$env/static/public';
import TopNavigation from '$lib/components/TopNavigation.svelte';
import Footer from '$lib/components/Footer.svelte';
</script>

<svelte:head>
<script
async
defer
data-do-not-track="true"
data-website-id={PUBLIC_UMAMI_WEBSITE_ID}
src={PUBLIC_UMAMI_URL}
></script>
</svelte:head>

<div class="w-full flex-auto flex flex-col h-full">
<TopNavigation />
<main class="w-full max-w-full md:max-w-screen-lg mx-auto flex flex-col mt-10 md:mt-20 p-4 md:p-0">
Expand Down
Loading

1 comment on commit 956b32c

@vercel
Copy link

@vercel vercel bot commented on 956b32c Nov 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.