-
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
Showing
18 changed files
with
177 additions
and
146 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 |
---|---|---|
|
@@ -183,3 +183,4 @@ app-bar { | |
width: 100%; | ||
height: fit-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
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
13 changes: 4 additions & 9 deletions
13
apps/duskmoon_storybook_web/lib/phx_wc_storybook_web/controllers/page_html/hook.html.heex
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
70 changes: 36 additions & 34 deletions
70
apps/duskmoon_storybook_web/lib/phx_wc_storybook_web/controllers/page_html/mdi.html.heex
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,43 +1,45 @@ | ||
<.dm_breadcrumb class="bg-white h-6 text-slate-400"> | ||
<.dm_breadcrumb class="px-4"> | ||
<:crumb>Icon</:crumb> | ||
<:crumb>Material Design Icon</:crumb> | ||
</.dm_breadcrumb> | ||
<.dm_card class={[ | ||
"w-full h-full overflow-auto", | ||
"text-slate-900 bg-slate-50 dark:text-slate-50 dark:bg-slate-900", | ||
]}> | ||
<:title class="flex flex-row justify-center items-center"> | ||
<span class="text-4xl text-blue-600 hover:text-blue-400"> | ||
Material Design Icons | ||
</span> | ||
</:title> | ||
<div class="mockup-window bg-base-300 border"> | ||
<.dm_markdown | ||
class="mx-6" | ||
content={""" | ||
## Example | ||
<:title class="flex flex-row justify-center items-center"> | ||
<span class="text-4xl text-blue-600 hover:text-blue-400"> | ||
Material Design Icons | ||
</span> | ||
</:title> | ||
<div class="mockup-window bg-base-300 border"> | ||
<.dm_markdown | ||
class="mx-6" | ||
content={""" | ||
## Example | ||
|
||
```html | ||
<!-- icon_name is matrial icon name --> | ||
<.dm_mdi name={icon_name} class="w-12 h-12" /> | ||
``` | ||
"""} | ||
/> | ||
</div> | ||
<div class="flex flex-row mt-4 mb-2"> | ||
<.form for={@conn} action={~p"/mdi"} method="get" class={["flex flex-row gap-2"]}> | ||
<.dm_input label="Icon Name" name="filter" value={@filter} /> | ||
<.button type="submit">Search</.button> | ||
</.form> | ||
</div> | ||
<div class="flex flex-row flex-wrap gap-4"> | ||
<%= for icon_name <- @mdi_icons do %> | ||
<div class="border flex flex-col w-40 h-40 items-center justify-center"> | ||
<div class="text-blue-400"><embed><%= icon_name %></embed></div> | ||
<div class="flex items-center justify-center"> | ||
<.dm_mdi name={icon_name} class="w-24 h-24" /> | ||
</div> | ||
</div> | ||
<% end %> | ||
```html | ||
<!-- icon_name is matrial icon name --> | ||
<.dm_mdi name={icon_name} class="w-12 h-12" /> | ||
``` | ||
"""} | ||
/> | ||
</div> | ||
<div class="flex flex-row mt-4 mb-2"> | ||
<.form for={@conn} action={~p"/mdi"} method="get" class={["flex flex-row gap-2"]}> | ||
<.dm_input field_class="flex" label="Icon Name" name="filter" value={@filter} /> | ||
<button type="submit" class="btn btn-primary">Search</button> | ||
</.form> | ||
</div> | ||
<div class="flex flex-row flex-wrap gap-4"> | ||
<div | ||
:for={icon_name <- @mdi_icons} | ||
class="border flex flex-col w-40 h-40 items-center justify-center p-4" | ||
> | ||
<div class="text-primary"> | ||
<embed><%= icon_name %></embed> | ||
</div> | ||
<div class="flex items-center justify-center"> | ||
<.dm_mdi name={icon_name} class="w-24 h-24" /> | ||
</div> | ||
</div> | ||
</div> | ||
</.dm_card> |
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
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
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
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
2 changes: 1 addition & 1 deletion
2
apps/duskmoon_storybook_web/lib/phx_wc_storybook_web/storybook/components/modal.story.exs
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
2 changes: 1 addition & 1 deletion
2
apps/duskmoon_storybook_web/lib/phx_wc_storybook_web/storybook/components/tab.story.exs
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.