Skip to content

Commit 696bccd

Browse files
authored
Adjust footer with initial Jaspr callout (#6888)
Adds a "Built with Jaspr" text and link to the footer. This is temporary until there's an agreed upon, provided badge for inclusion on sites using Jaspr. **Preview:** <img width="256" alt="Screenshot of hovering over the Built with Jaspr mention" src="https://github.com/user-attachments/assets/42c8723d-5104-4785-b4c3-cdb7b611ca80" /> Contributes to #6853
1 parent 5cfc651 commit 696bccd

File tree

2 files changed

+36
-18
lines changed

2 files changed

+36
-18
lines changed

site/lib/_sass/components/_footer.scss

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,31 @@
7676
}
7777
}
7878

79-
ul {
80-
list-style-type: none;
81-
margin: 12px 0 0;
82-
padding: 0;
79+
.footer-utility-links {
80+
@media (min-width: 768px) {
81+
text-align: right;
82+
}
8383

84-
li {
85-
display: inline;
86-
margin-left: 16px;
84+
ul {
85+
list-style-type: none;
86+
margin: 12px 0 0;
87+
padding: 0;
8788

88-
&:first-child {
89-
margin-left: 0;
89+
li {
90+
display: inline;
91+
margin-left: 16px;
92+
93+
&:first-child {
94+
margin-left: 0;
95+
}
9096
}
91-
}
9297

93-
@media (min-width: 768px) {
94-
margin-top: 0;
98+
@media (min-width: 768px) {
99+
margin-top: 0;
95100

96-
li:first-child {
97-
margin-left: 16px;
101+
li:first-child {
102+
margin-left: 16px;
103+
}
98104
}
99105
}
100106
}

site/lib/src/components/footer.dart

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,12 @@ final class DashFooter extends StatelessComponent {
104104
div(classes: 'footer-licenses', [
105105
text('Except as otherwise noted, this site is licensed under a '),
106106
a(href: 'https://creativecommons.org/licenses/by/4.0/', [
107-
text('Creative Commons Attribution 4.0 International License'),
107+
text('Creative Commons Attribution 4.0 International License,'),
108108
]),
109-
text(', and code samples are licensed under the '),
109+
text(' and code samples are licensed under the '),
110110
a(href: 'https://opensource.org/licenses/BSD-3-Clause', [
111-
text('3-Clause BSD License'),
111+
text('3-Clause BSD License.'),
112112
]),
113-
text('.'),
114113
]),
115114
div(classes: 'footer-utility-links', [
116115
ul([
@@ -137,6 +136,19 @@ final class DashFooter extends StatelessComponent {
137136
),
138137
]),
139138
]),
139+
div(classes: 'footer-technology', [
140+
a(
141+
href: 'https://jaspr.site',
142+
target: Target.blank,
143+
attributes: {
144+
'rel': 'noopener',
145+
'title':
146+
'This site is built with the '
147+
'Jaspr web framework for Dart.',
148+
},
149+
[text('Built with Jaspr')],
150+
),
151+
]),
140152
]),
141153
]),
142154
],

0 commit comments

Comments
 (0)