Skip to content

Commit 8c90974

Browse files
committed
trying to make images work
1 parent 1ab8d15 commit 8c90974

File tree

2 files changed

+14
-23
lines changed

2 files changed

+14
-23
lines changed

src/lib/components/atoms/Image.svelte

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,7 @@
4747
<source src={base + src} type="video/mp4" />
4848
</video>
4949
{:else}
50-
<img
51-
srcset={buildSrcset()}
52-
src={base + src}
53-
{alt}
54-
loading="lazy"
55-
decoding="async"
56-
class:full-bleed={fullBleed}
57-
/>
50+
<img src={base + src} {alt} loading="lazy" decoding="async" class:full-bleed={fullBleed} />
5851
{/if}
5952

6053
<style lang="scss">

src/routes/(waves)/+page.svelte

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,19 @@
2828
</div>
2929
</div>
3030

31-
<div class="container">
32-
<ContentSection title="Projects" octothorb={true}>
33-
<div class="grid">
34-
{#each posts as post}
35-
<BlogPostCard
36-
title={post.title}
37-
coverImage={post.coverImage}
38-
excerpt={post.excerpt}
39-
slug={post.slug}
40-
tags={post.tags}
41-
/>
42-
{/each}
43-
</div>
44-
</ContentSection>
45-
</div>
31+
<ContentSection title="Projects" octothorb={true}>
32+
<div class="grid">
33+
{#each posts as post}
34+
<BlogPostCard
35+
title={post.title}
36+
coverImage={post.coverImage}
37+
excerpt={post.excerpt}
38+
slug={post.slug}
39+
tags={post.tags}
40+
/>
41+
{/each}
42+
</div>
43+
</ContentSection>
4644
<Footer />
4745

4846
<style lang="scss">

0 commit comments

Comments
 (0)