generated from uswds/uswds-sandbox
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from uswds/cm-mc-part-3
Extending: Exercise 3
- Loading branch information
Showing
4 changed files
with
61 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div class="usa-card ut-testimonial"> | ||
<div class="usa-card__container"> | ||
<svg class="usa-icon ut-testimonial__icon" aria-hidden="true" focusable="false" role="img" height="50px" width="50px"> | ||
<use xlink:href="/assets/uswds/img/sprite.svg#format_quote"></use> | ||
</svg> | ||
<div class="usa-card__body ut-testimonial__quote"> | ||
<p> | ||
"Wow, this component sure is great" | ||
</p> | ||
</div> | ||
<div class="usa-card__footer ut-testimonial__footer"> | ||
<img src="https://doodleipsum.com/100x100/avatar-5?bg=a5a8eb&shape=circle&n=1" alt="Profile pic"> | ||
<div class="ut-testimonial__profile"> | ||
<p class="ut-testimonial__profile-name">Person McGuy</p> | ||
<p class="ut-testimonial__profile-title">USWDS User</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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,40 @@ | ||
@use "uswds-core" as *; | ||
|
||
$ut-testimonial-icon-color: color("indigo-30"); | ||
|
||
.ut-testimonial .usa-card__container { | ||
@include set-text-and-bg("indigo-70v", "indigo-20"); | ||
} | ||
|
||
.ut-testimonial__icon { | ||
@include u-square(7); | ||
fill: $ut-testimonial-icon-color; | ||
stroke: $ut-testimonial-icon-color; | ||
} | ||
|
||
.ut-testimonial__quote p { | ||
@include u-font-size("heading", "xl"); | ||
font-weight: font-weight("bold"); | ||
} | ||
|
||
.ut-testimonial__footer { | ||
@include u-display("flex"); | ||
@include u-flex("row"); | ||
} | ||
|
||
.ut-testimonial img { | ||
@include u-circle(10); | ||
} | ||
|
||
.ut-testimonial__profile { | ||
@include u-margin-left(2); | ||
} | ||
|
||
.ut-testimonial__profile-name { | ||
@include u-text("indigo-10v"); | ||
} | ||
|
||
.ut-testimonial__profile-title { | ||
@include u-margin-top(0); | ||
font-size: font-size("body", 5); | ||
} |
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