Skip to content

Commit 6b957a1

Browse files
authored
Merge pull request #13 from ben-mur64/master
Added slots, updated demo
2 parents a599c42 + 4978c71 commit 6b957a1

11 files changed

+2385
-2873
lines changed

components/byu-faculty-profile/byu-faculty-profile.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,5 +252,45 @@ <h3>Links</h3>
252252
<slot class="card-slot" name="faculty-custom-body">No Information</slot>
253253
</div>
254254
</div>
255+
<div class="card education-card hide">
256+
<div class="click-area">
257+
<table>
258+
<tbody>
259+
<tr>
260+
<td class="card-title-wrapper">
261+
<h3>Education</h3>
262+
</td>
263+
<td class="card-chevron-wrapper">
264+
<img class="chevron svg-md" src="./Chevron-Right.svg">
265+
<img class="chevron svg-md hide" src="./Chevron-Down.svg">
266+
</td>
267+
</tr>
268+
</tbody>
269+
</table>
270+
</div>
271+
<div class="card-content">
272+
<slot class="card-slot" name="faculty-education">No Information</slot>
273+
</div>
274+
</div>
275+
<div class="card cv-card hide">
276+
<div class="click-area">
277+
<table>
278+
<tbody>
279+
<tr>
280+
<td class="card-title-wrapper">
281+
<h3>Curriculum Vitae</h3>
282+
</td>
283+
<td class="card-chevron-wrapper">
284+
<img class="chevron svg-md" src="./Chevron-Right.svg">
285+
<img class="chevron svg-md hide" src="./Chevron-Down.svg">
286+
</td>
287+
</tr>
288+
</tbody>
289+
</table>
290+
</div>
291+
<div class="card-content">
292+
<slot class="card-slot" name="faculty-cv">No Information</slot>
293+
</div>
294+
</div>
255295
</div>
256296
</div>

demo.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<!--===== DEMO PT 1 =====-->
7878
<div class=faculty-listing-header>
7979
<h1>
80-
Faculty Profiles
80+
Faculty Listing Examples
8181
</h1>
8282
</div>
8383
<byu-faculty-listing id="demo" faculty-image="./test_image.png" faculty-profile-link="https://home.byu.edu/home/">
@@ -139,7 +139,16 @@ <h2 slot="listing-name">James Archibald</h2>
139139
</byu-faculty-listing>
140140

141141
<!--===== DEMO PT 2 =====-->
142-
<!--<byu-faculty-profile background-image="./test_image_5.jpg" faculty-image="./test_image.png">
142+
<br />
143+
<br />
144+
<br />
145+
<div class=faculty-listing-header>
146+
<h1>
147+
Faculty Profile Example
148+
</h1>
149+
</div>
150+
151+
<byu-faculty-profile background-image="./test_image_5.jpg" faculty-image="./test_image.png">
143152
<div slot="faculty-name">Bradley R. Adams</div>
144153
<span slot="faculty-title">Associate Professor</span>
145154
<span slot="faculty-office">265 Crabtree</span>
@@ -168,7 +177,9 @@ <h2 slot="listing-name">James Archibald</h2>
168177
<div slot="faculty-custom-header">Custom Header</div>
169178
<p slot="faculty-custom-body">This is a card that can be used for custom
170179
content.</p>
171-
</byu-faculty-profile>-->
180+
<p slot="faculty-education">This is where the faculty education goes!</p>
181+
<p slot="faculty-cv">This is where the CV goes!</p>
182+
</byu-faculty-profile>
172183
<byu-footer></byu-footer>
173184
</body>
174185
</html>

dist/components-compat.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components-compat.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components-compat.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components-compat.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)