Skip to content

Commit

Permalink
feat: test image load
Browse files Browse the repository at this point in the history
  • Loading branch information
bbtgnn committed Feb 25, 2024
1 parent 1867e9b commit 5eda2f6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { base } from '$app/paths';
// import { cons } from 'effect/List';

export const href = (route: string) => {
return base ? `${base}${route}` : route;
};

// export const asset = (route: string) => {
// const s = import(route)
// return route;
// };
7 changes: 7 additions & 0 deletions src/routes/(collections)/organizations/dyne/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts" context="module">
// import { asset } from '$lib/utils';
import logo from './logo.jpeg';
console.log(logo);
export const props = {
name: 'Dyne.org',
location: 'Amsterdam, Paesi Bassi'
Expand All @@ -8,3 +13,5 @@
<p>Mo bellissima dyne</p>

<pre>{JSON.stringify(props, null, 2)}</pre>

<img src={logo} alt="dyne logo" />
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5eda2f6

Please sign in to comment.