Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/badge #394

Merged
merged 21 commits into from
Jul 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
352 changes: 352 additions & 0 deletions packages/components-sketch/views/badge.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,352 @@

<div data-sketch-artboard="Badge" class="artboard">
<h1 class="title--artboard">Overview</h1>

<h2 class="title--artboard-section">Badge Eyecatcher</h2>
<div class="agent-states--grid" data-category="Text only">
<div class="agent-states--item">
<p class="agent-states--label">Primary - Large</p>
<scale-badge size="large" color="primary" rotation="0">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: white;
font-weight: 400;
"
>
Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: white;
font-weight: 700;
"
>
<span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
<div class="agent-states--item">
<p class="agent-states--label">White - Large</p>
<scale-badge size="large" color="white" rotation="0">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: black;
font-weight: 400;
"
>
Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: black;
font-weight: 700;
"
>
<span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
<div class="agent-states--item">
<p class="agent-states--label">Black - Large</p>
<scale-badge size="large" color="black" rotation="0">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: white;
font-weight: 400;
"
>
Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: white;
font-weight: 700;
"
>
<span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
<div class="agent-states--item">
<p class="agent-states--label">Colored - Large</p>
<scale-badge size="large" color="blue" rotation="0">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: white;
font-weight: 400;
"
>
Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: white;
font-weight: 700;
"
>
<span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
</div>

<h2 class="title--artboard-section"></h2>
<div class="agent-states--grid" data-category="Text only">
<div class="agent-states--item">
<p class="agent-states--label">Primary - Small</p>
<scale-badge size="small" color="primary" rotation="0">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: white;
font-weight: 400;
"
>
Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: white;
font-weight: 700;
"
>
<span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
<div class="agent-states--item">
<p class="agent-states--label">White - small</p>
<scale-badge size="small" color="white" rotation="0">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: black;
font-weight: 400;
"
>
Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: black;
font-weight: 700;
"
>
<span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
<div class="agent-states--item">
<p class="agent-states--label">Black - Small</p>
<scale-badge size="small" color="black" rotation="0">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: white;
font-weight: 400;
"
>
Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: white;
font-weight: 700;
"
>
<span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
<div class="agent-states--item">
<p class="agent-states--label">Colored - small</p>
<scale-badge size="small" color="blue" rotation="0">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: white;
font-weight: 400;
"
>
Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: white;
font-weight: 700;
"
>
<span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
</div>

<h2 class="title--artboard-section"></h2>
<div class="agent-states--grid" data-category="Text only">
<div class="agent-states--item">
<p class="agent-states--label">Rotation 0˚ Default</p>
<scale-badge size="large" color="primary" rotation="0">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: white;
font-weight: 400;
"
> Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: white;
font-weight: 700;
"
> <span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
<div class="agent-states--item">
<p class="agent-states--label">Rotation 30˚ </p>
<scale-badge size="large" color="blue" rotation="30">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: black;
font-weight: 400;
"
> Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: black;
font-weight: 700;
"
> <span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
<div class="agent-states--item">
<p class="agent-states--label">Rotation 90˚ </p>
<scale-badge size="large" color="black" rotation="90">
<div>
<div
style="
text-align: center;
font-size: 20px;
color: white;
font-weight: 400;
"
> Für nur
</div>
<div
style="
text-align: center;
font-size: 60px;
color: white;
font-weight: 700;
"
>
<span> 15 € </span>
</div>
</div>
</scale-badge>
</div>
</div>
</div>
</div>

<script src="/symbol_names.js"></script>
<script>
Array.from(document.querySelectorAll('scale-badge')).forEach((btn, i) => {
btn.dataset.sketchSymbol = `Badge / ${order(
1,
getCategoryName(btn)
)} / ${order(
2,
btn.dataset.hasIcon ? 'With Icon' : 'Without Icon'
)} / ${order(4, getStateName(btn))}`;
});
</script>






























1 change: 1 addition & 0 deletions packages/components-sketch/views/index.hbs
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ file, You can obtain one at https://mozilla.org/MPL/2.0/.
<h1 class="title--artboard">Scale Components</h1>
<p><a href="/accordion">Accordion</a></p>
<p><a href="/button">Button</a></p>
<p><a href="/badge">Badge</a></p>
<p><a href="/breadcrumb">Breadcrumb</a></p>
<p><a href="/card">Card</a></p>
<p><a href="/checkbox">Checkbox</a></p>
Loading