-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(playground): create example with two uiproots
- Loading branch information
Showing
5 changed files
with
123 additions
and
25 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
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,77 @@ | ||
--- | ||
title: Example with multiple playgrounds | ||
--- | ||
|
||
<div class="component-section"> | ||
<h1 class="component-title">USER CARD</h1> | ||
<p class="component-description"> | ||
User card is a component for displaying user's info. | ||
Can be in rectangle/rounded styles with multiple | ||
colors supported. | ||
</p> | ||
</div> | ||
|
||
<uip-root> | ||
<uip-header> | ||
<uip-snippets></uip-snippets> | ||
<uip-options></uip-options> | ||
</uip-header> | ||
<script type="text/html" uip-snippet label="Rectangle user card"> | ||
<div class="user-card user-block aqua-user">Alexander</div> | ||
</script> | ||
<script type="text/html" uip-snippet label="Circle user card" wrap-items> | ||
<div class="user-card user-circle aqua-user">Alexander</div> | ||
</script> | ||
<uip-preview></uip-preview> | ||
<uip-settings target=".user-card"> | ||
<uip-select-setting label="User color" attribute="class" mode="append"> | ||
<option value="red-user">Red</option> | ||
<option value="aqua-user">Aqua</option> | ||
<option value="green-user">Green</option> | ||
</uip-select-setting> | ||
</uip-settings> | ||
<uip-editor></uip-editor> | ||
</uip-root> | ||
|
||
<div class="component-section"> | ||
<h1 class="component-title">USER LIST</h1> | ||
<p class="component-description"> | ||
User list is a component for displaying multiple users' info. | ||
Can manually wrap list items on new lines. | ||
</p> | ||
</div> | ||
|
||
<uip-root> | ||
<uip-header> | ||
<uip-snippets></uip-snippets> | ||
<uip-options></uip-options> | ||
</uip-header> | ||
<script type="text/html" uip-snippet label="Users aqua list"> | ||
<div class="user-list"> | ||
<div class="user-card aqua-user">Alexander</div> | ||
<div class="user-card user-circle aqua-user">Alexey</div> | ||
<div class="user-card aqua-user">Marina</div> | ||
</div> | ||
</script> | ||
<script type="text/html" uip-snippet label="Long red users list containing seven items" wrap-items> | ||
<div class="user-list"> | ||
<div class="user-card red-user">Anton</div> | ||
<div class="user-card red-user">Dmitri</div> | ||
<div class="user-card red-user">Alexandra</div> | ||
<div class="user-card red-user">Artem</div> | ||
<div class="user-card red-user">Marina</div> | ||
<div class="user-card red-user">Alexander</div> | ||
<div class="user-card red-user">Alexander</div> | ||
</div> | ||
</script> | ||
<uip-preview></uip-preview> | ||
<uip-settings target=".user-list"> | ||
<uip-select-setting label="User color" target=".user-card" attribute="class" mode="append"> | ||
<option value="red-user">Red</option> | ||
<option value="aqua-user">Aqua</option> | ||
<option value="green-user">Green</option> | ||
</uip-select-setting> | ||
<uip-bool-setting label="Wrap items" attribute="wrap-items"></uip-bool-setting> | ||
</uip-settings> | ||
<uip-editor></uip-editor> | ||
</uip-root> |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.main { | ||
display: block; | ||
} | ||
|
||
.component-section { | ||
margin: 2rem 0; | ||
font-family: sans-serif; | ||
|
||
.component-title { | ||
margin-bottom: 1rem; | ||
} | ||
} |