Skip to content

Commit

Permalink
feat: tup-610 content-block migration
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Tomas-Gonzalez committed Oct 13, 2023
1 parent a556416 commit 080dd55
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/components/c-content-block.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/components/c-content-block/demo.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/core-styles.base.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/lib/_imports/components/c-content-block.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:is(.c-content-block, .content-block) {
margin-bottom: var(--global-space--bootstrap-gap);
padding: var(--global-space--pattern-pad);
}

:is(.c-content-block, .content-block) :is(h1, h2, h3, h4, h5, h6) {
border-left: var(--global-border-width--xx-thick) solid var(--global-color-accent--tertiary);
padding-left: 10px;
}
33 changes: 33 additions & 0 deletions src/lib/_imports/components/c-content-block/c-content-block.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<dl>
<dt>Staff Profile</dt>
<dd>
<div class="content-block">
<img class="img-fluid" />
<img src="https://upload.wikimedia.org/wikipedia/commons/9/99/Exampleavatar.png"
title="University of Texas at Austin" class="img-fluid" />
</div>

<div class="content-block">
<h3>Education</h3>

<p><strong>Ph.D., Computer Engineering</strong><br>
Clemson University, 2000</p>

<p><strong>M.S., Computer Engineering</strong><br>
Clemson University, 1993</p>

<p><strong>B.S., Electrical Engineering</strong><br>
Clemson University, B.S. (Electrical Engineering), 1991</p>
</div>
</dd>

<dt>Newsletters</dt>
<dd>
<article class="content-block">
<h3>EPIC + WeTeach_CS Newsletter</h3>

<p>Stay connected with our biweekly <a href="#">newsletter</a>.</p>
<a class="c-button c-button--primary" href="#">Newsletter Signup</a>
</article>
</dd>
</dl>
1 change: 1 addition & 0 deletions src/lib/_imports/core-styles.base.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
@import url("./components/c-pill.css");
@import url("./components/c-see-all-link.css");
@import url("./components/c-tag.css");
@import url("./components/c-content-block.css");

/* TRUMPS */
@import url("./trumps/s-affixed-input-wrapper.css");
Expand Down

0 comments on commit 080dd55

Please sign in to comment.