-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f057c6f
commit 66ab03a
Showing
4 changed files
with
41 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script> | ||
import { chevronBackOutline } from 'ionicons/icons'; | ||
export let backButton = true; | ||
//TODO: fix background color with actual token | ||
</script> | ||
|
||
<ion-header class="bg-[#243151]"> | ||
<ion-toolbar> | ||
{#if backButton} | ||
<ion-buttons slot="start"> | ||
<ion-button on:click={() => window.history.back()} on:keydown={() => window.history.back()} aria-hidden> | ||
<ion-icon icon={chevronBackOutline}></ion-icon> | ||
</ion-button> | ||
</ion-buttons> | ||
{/if} | ||
<ion-title class="text-center"> | ||
<slot /> | ||
</ion-title> | ||
{#if backButton} | ||
<ion-buttons slot="end" class="invisible"> | ||
<div class="px-5" /> | ||
</ion-buttons> | ||
{/if} | ||
</ion-toolbar> | ||
</ion-header> |
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,23 +1,13 @@ | ||
<script lang="ts"> | ||
import Logo from '$lib/components/atoms/Logo.svelte'; | ||
import Header from '$lib/components/atoms/Header.svelte'; | ||
export let data: any; | ||
const { credential } = data; | ||
</script> | ||
|
||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title> | ||
<div class="flex items-center gap-2"> | ||
<Logo /> | ||
<h1 class="text-2xl">Credential detail</h1> | ||
</div> | ||
</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
<Header>CREDENTIAL DETAIL</Header> | ||
<ion-content fullscreen class="ion-padding"> | ||
<d-credential-card {...credential} expiration-date="2017-01-01" verified="false"> </d-credential-card> | ||
<div class="fixed w-full bottom-0 left-0 bg-tab pb-11"> | ||
<div class="fixed w-full bottom-0 left-0 bg-tab"> | ||
<d-credential-detail {...credential} description={credential.expand.templates[0].name} href={`/${credential.id}/verify/`} /> | ||
</div> | ||
</ion-content> |
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