Skip to content

Commit b476b78

Browse files
add tabs and card component styles and markup
1 parent c5c0dce commit b476b78

File tree

5 files changed

+65
-1
lines changed

5 files changed

+65
-1
lines changed

addon/styles/addon.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
@import "components/es-header.css";
88
@import "components/es-page-header.css";
99
@import "components/es-button.css";
10+
@import "components/es-tabs.css";
11+
@import "components/es-card.css";

addon/styles/components/es-card.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.card {
2+
border: 1px solid var(--color-gray);
3+
border-radius: 4px;
4+
margin-bottom: 1em;
5+
}
6+
7+
.card-content {
8+
padding: 1em;
9+
}

addon/styles/components/es-tabs.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.tabs {
2+
display: flex;
3+
margin-bottom: 1em;
4+
}
5+
6+
.tabs-item {
7+
flex-grow: 1;
8+
text-align: center;
9+
border-bottom: 2px solid var(--color-gray);
10+
}
11+
12+
.tabs-link {
13+
text-decoration: none;
14+
font-size: var(--text-preset-1);
15+
font-weight: 600;
16+
color: var(--color-muted);
17+
display: block;
18+
padding: 1em;
19+
}
20+
21+
.tabs-item--active {
22+
border-bottom: 2px solid var(--color-ember-orange);
23+
}
24+
25+
.tabs-item--active .tabs-link {
26+
color: var(--color-ember-orange);
27+
}

addon/styles/global.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
--color-light: #FFFFFF;
55
--color-muted: #F4F6F8;
66
--color-ember-orange: #E04E39;
7+
--color-gray: #A2A3A8;
78
--text-preset-1: 1rem;
89
--text-preset-2: 1.2rem;
910
--text-preset-3: 1.8rem;

tests/dummy/app/templates/index.hbs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,38 @@
1818
<div class="container">
1919
<h3 class="small bold">A Simple Component</h3>
2020
<p>Ember Components are a superset of HTML – that means <span class="bold">&lt;p&gt;Hello, world&lt;/p&gt;</span> is a full-fledged Ember Component! To pass data into Components, use the @ symbol along with an argument name.</p>
21+
<div class="card">
22+
<div class="card-content">
23+
<h3 class="small bold">Discussion Forum</h3>
24+
<p>Post and search longer-form questions in our public forum.</p>
25+
</div>
26+
</div>
2127
</div>
2228
</section>
2329

2430
<section class="content-section dark center">
2531
<div class="container">
2632
<h2 class="large">Batteries are included</h2>
2733
<p>Ember’s out-of-the-box experience has everything you need to start building on day one, and keep shipping for years. Never wire together your own framework again.</p>
34+
<div class="tabs">
35+
<div class="tabs-item tabs-item--active">
36+
<a class="tabs-link" href="#">Build Pipeline</a>
37+
</div>
38+
<div class="tabs-item">
39+
<a class="tabs-link" href="#">Routing</a>
40+
</div>
41+
<div class="tabs-item">
42+
<a class="tabs-link" href="#">Data Layer</a>
43+
</div>
44+
</div>
45+
46+
<div class="card">
47+
<div class="card-content">
48+
<h3 class="small bold">Discussion Forum</h3>
49+
<p>Post and search longer-form questions in our public forum.</p>
50+
</div>
51+
</div>
2852
<p class="medium">Ember CLI is the backbone of modern Ember apps. Code generators let you quickly create new components and tests. Use the local server for a development environment with Babel, fast rebuilds, auto-reloading and a test runner. Build your app for production with a single command.</p>
2953
</div>
30-
</section>
54+
</section>
55+

0 commit comments

Comments
 (0)