-
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.
fix: update credential card style (#124)
* fix: update credential card style --------- Co-authored-by: Puria Nafisi Azizi <puria@dyne.org>
- Loading branch information
1 parent
6a519e7
commit 73c0cb9
Showing
29 changed files
with
220 additions
and
69 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
import { DBadge } from './d-badge'; | ||
import { Meta, StoryObj } from '@storybook/html'; | ||
|
||
const meta = { | ||
title: 'Design System/Atoms/Badge', | ||
render: () => | ||
`<d-badge> | ||
Address | ||
</d-badge>`, | ||
} satisfies Meta<DBadge>; | ||
|
||
export default meta; | ||
type Story = StoryObj<DBadge>; | ||
|
||
export const Default: Story = { | ||
parameters: { | ||
design: { | ||
type: 'figma', | ||
url: 'https://www.figma.com/design/pdwfO3dMKtaCAQakht0JE6/DIDRoom-%2B-Signroom---WF-and-GUI---Dyne.org?node-id=3449-47234&m=dev', | ||
}, | ||
}, | ||
}; | ||
|
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,3 @@ | ||
:host { | ||
display: block; | ||
} |
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,20 @@ | ||
import { Component, Host, h } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'd-badge', | ||
styleUrl: 'd-badge.css', | ||
shadow: true, | ||
}) | ||
export class DBadge { | ||
render() { | ||
return ( | ||
<Host> | ||
<div class="flex w-fit justify-center items-center bg-accent px-2 py-0.5 rounded-md"> | ||
<span class="text-on-accent text-center text-sm font-normal leading-5"> | ||
<slot></slot> | ||
</span> | ||
</div> | ||
</Host> | ||
); | ||
} | ||
} |
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,10 @@ | ||
# d-badge | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
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,11 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
describe('d-badge', () => { | ||
it('renders', async () => { | ||
const page = await newE2EPage(); | ||
await page.setContent('<d-badge></d-badge>'); | ||
|
||
const element = await page.find('d-badge'); | ||
expect(element).toHaveClass('hydrated'); | ||
}); | ||
}); |
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,22 @@ | ||
import { newSpecPage } from '@stencil/core/testing'; | ||
import { DBadge } from '../d-badge'; | ||
|
||
describe('d-badge', () => { | ||
it('renders', async () => { | ||
const page = await newSpecPage({ | ||
components: [DBadge], | ||
html: `<d-badge></d-badge>`, | ||
}); | ||
expect(page.root).toEqualHtml(` | ||
<d-badge> | ||
<mock:shadow-root> | ||
<div class="bg-accent flex items-center justify-center px-2 py-0.5 rounded-md w-fit"> | ||
<span class="font-normal leading-5 text-center text-on-accent text-sm"> | ||
<slot></slot> | ||
</span> | ||
</div> | ||
</mock:shadow-root> | ||
</d-badge> | ||
`); | ||
}); | ||
}); |
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,32 +1,35 @@ | ||
:host { | ||
@apply w-full inline-flex flex-col items-start gap-2.5 px-5 py-5 rounded-lg bg-no-repeat bg-primary bg-cover; | ||
.main { | ||
@apply w-full inline-flex flex-col items-start justify-between gap-2.5 px-5 py-5 rounded-2xl bg-no-repeat bg-primary bg-cover aspect-[2] border border-solid border-white self-stretch; | ||
} | ||
|
||
.main.bg1 { | ||
background-image: var(--background-card-url); | ||
} | ||
|
||
.between { | ||
@apply w-full flex justify-between items-start; | ||
.main.bg2 { | ||
background-image: var(--background-card-url-2); | ||
} | ||
|
||
.heading { | ||
@apply flex items-center gap-2; | ||
.main.bg3 { | ||
background-image: var(--background-card-url-3); | ||
} | ||
|
||
.name { | ||
@apply text-2xl not-italic font-semibold leading-[22.5px] tracking-[-0.5px]; | ||
.main.bg4 { | ||
background-image: var(--background-card-url-4); | ||
} | ||
|
||
.info { | ||
@apply inline-flex flex-col items-start gap-2 min-h-32; | ||
.main.bg5 { | ||
background-image: var(--background-card-url-5); | ||
} | ||
|
||
.description { | ||
@apply text-xl not-italic font-medium leading-[20.5px] tracking-[-0.5px]; | ||
.main.bg6 { | ||
background-image: var(--background-card-url-6); | ||
} | ||
|
||
.labeled-text { | ||
@apply flex flex-col gap-0.5 whitespace-nowrap text-lg not-italic leading-[130%] tracking-[-0.5px]; | ||
.main.bg7 { | ||
background-image: var(--background-card-url-7); | ||
} | ||
|
||
.label { | ||
@apply font-bold; | ||
.main.bg8 { | ||
background-image: var(--background-card-url-8); | ||
} |
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
Oops, something went wrong.