-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/WebmasterCamp/ywc19-hackath…
- Loading branch information
Showing
6 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
/* Write your global styles here, in PostCSS syntax */ | ||
@tailwind base; | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<script lang="ts"> | ||
import Icon from "@iconify/svelte"; | ||
export let name = "Default", | ||
ingredient = 0, | ||
timeCook = 0, | ||
imgID = "/Image.svg"; | ||
</script> | ||
|
||
<div class="w-full justify-start items-center my-1 inline-flex flex items-center"> | ||
<div class="w-full h-16 flex"> | ||
<img | ||
src={imgID} | ||
alt="" | ||
height="1.5rem" | ||
class="relative flex-col justify-start items-start flex w-16 h-16" | ||
/> | ||
<div class="flex flex-col pl-4"> | ||
<h1 class="text-black text-base font-normal">{name}</h1> | ||
<div class="text-black text-xs font-normal"> | ||
Expired in {ingredient} days | ||
</div> | ||
<div class="text-neutral-600 text-xs font-normal"> | ||
Amount : {timeCook} unit | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<a href="/fridge"> | ||
<Icon icon="ic:baseline-arrow-forward-ios" /> | ||
</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<script lang="ts"> | ||
import { onMount } from 'svelte'; | ||
import { onMount } from 'svelte'; | ||
import '../app.postcss'; | ||
onMount(() => { | ||
onMount(()=>{ | ||
Notification.requestPermission(); | ||
}); | ||
}) | ||
</script> | ||
|
||
<slot /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters