Skip to content

Commit

Permalink
feat: support s-form-page footer link with image (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Oct 3, 2023
1 parent 5368973 commit 8f56b9e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 18 deletions.
2 changes: 1 addition & 1 deletion dist/core-styles.portal.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/trumps/s-form-page.css

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

15 changes: 15 additions & 0 deletions src/lib/_imports/trumps/s-form-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
display: flex;
gap: 1.5em;
margin-top: var(--global-space--normal);
/* In case children are different height (e.g. one has or is an image) */
align-items: center;

font-family: var(--global-font-family--sans--cms);
font-size: var(--global-font-size--small);
Expand All @@ -46,3 +48,16 @@
color: var(--global-color-primary--x-dark);
font-weight: var(--bold);
}

/* To allow image inside link wiht a gap between it and text */
.s-form-page > footer a {
display: inline-flex;
align-items: center;
gap: 0.5em;
}

@media (min-width: 768px) {
.s-form-page>footer {
align-items: center;
}
}
13 changes: 13 additions & 0 deletions src/lib/_imports/trumps/s-form-page/_s-form-page--footer.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<footer>
<a href="https://tacc.utexas.edu/about/security-and-compliance/">
Security
</a>
<a href="https://tacc.utexas.edu/use-tacc/user-policies/">
Policies
</a>
<a href="https://www.nsf.gov/" target="_blank">
Funded by:
<img src="https://cep.tacc.utexas.edu/static/site_cms/img/org_logos/nsf-logo.svg"
alt="NSF" title="National Science Foundation" height="50px">
</a>
</footer>
9 changes: 1 addition & 8 deletions src/lib/_imports/trumps/s-form-page/s-form-page--login.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<div class="s-form-page">
{{ render '@s-form--login' }}
<footer>
<a href="https://tacc.utexas.edu/about/security-and-compliance/">
Security
</a>
<a href="https://tacc.utexas.edu/use-tacc/user-policies/">
Policies
</a>
</footer>
{{> @s-form-page--footer }}
</div>
9 changes: 1 addition & 8 deletions src/lib/_imports/trumps/s-form-page/s-form-page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,5 @@
<form>
[ form goes here ]
</form>
<footer>
<a href="https://tacc.utexas.edu/about/security-and-compliance/">
Security
</a>
<a href="https://tacc.utexas.edu/use-tacc/user-policies/">
Policies
</a>
</footer>
{{> @s-form-page--footer }}
</div>

0 comments on commit 8f56b9e

Please sign in to comment.