Skip to content

Commit b1dd779

Browse files
committed
Add a footer
1 parent 8b0e6d0 commit b1dd779

7 files changed

Lines changed: 44 additions & 0 deletions

File tree

demo/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ <h3 class="card-title">
173173
</a>
174174
</div>
175175
</main>
176+
<footer class="demo-footer">
177+
<p>Built by <a href="https://www.bram.us/">Bramus</a>, Chrome Developer Relations Engineer at Google.<br>
178+
Source Code available <a href="https://github.com/googlechromelabs/view-transitions-toolkit">on GitHub</a><a href="https://www.apache.org/licenses/LICENSE-2.0.txt">Apache License, Version 2.0</a></p>
179+
</footer>
176180
<script>
177181
document.addEventListener('DOMContentLoaded', () => {
178182
const currentTheme = localStorage.getItem('theme') || 'system';

demo/measure/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ <h3>Functions Used</h3>
6969
const boxGroupAnimation = getAnimations(t, "box", ViewTransitionPart.Group)[0];
7070
const boxGroupGeometry = extractGeometry(boxGroupAnimation);</code></pre>
7171
</div>
72+
<footer class="shell-footer">
73+
<p>Built by <a href="https://www.bram.us/">Bramus</a>, Chrome Developer Relations Engineer at Google.<br>
74+
Source Code available <a href="https://github.com/googlechromelabs/view-transitions-toolkit">on GitHub</a><a href="https://www.apache.org/licenses/LICENSE-2.0.txt">Apache License, Version 2.0</a></p>
75+
</footer>
7276
</aside>
7377

7478
<!-- Theme Switcher Logic -->

demo/navigation-types/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ <h3>Functions Used</h3>
7777

7878
useAutoTypes(routeMap);</code></pre>
7979
</div>
80+
<footer class="shell-footer">
81+
<p>Built by <a href="https://www.bram.us/">Bramus</a>, Chrome Developer Relations Engineer at Google.<br>
82+
Source Code available <a href="https://github.com/googlechromelabs/view-transitions-toolkit">on GitHub</a><a href="https://www.apache.org/licenses/LICENSE-2.0.txt">Apache License, Version 2.0</a></p>
83+
</footer>
8084
</aside>
8185

8286
<script>

demo/optimize/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ <h3>Functions Used</h3>
6666
optimizeGroupAnimations(t, "*"); // All groups
6767
optimizeGroupAnimations(t, "box-flip", OPTIMIZATION_STRATEGY.SLIDE); // Specific group</code></pre>
6868
</div>
69+
<footer class="shell-footer">
70+
<p>Built by <a href="https://www.bram.us/">Bramus</a>, Chrome Developer Relations Engineer at Google.<br>
71+
Source Code available <a href="https://github.com/googlechromelabs/view-transitions-toolkit">on GitHub</a><a href="https://www.apache.org/licenses/LICENSE-2.0.txt">Apache License, Version 2.0</a></p>
72+
</footer>
6973
</aside>
7074

7175
<script>

demo/playback-control/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ <h3>Functions Used</h3>
7171
resume(t); // Resumes all VT animations
7272
scrub(t, position); // Sets animations to 50% playback</code></pre>
7373
</div>
74+
<footer class="shell-footer">
75+
<p>Built by <a href="https://www.bram.us/">Bramus</a>, Chrome Developer Relations Engineer at Google.<br>
76+
Source Code available <a href="https://github.com/googlechromelabs/view-transitions-toolkit">on GitHub</a><a href="https://www.apache.org/licenses/LICENSE-2.0.txt">Apache License, Version 2.0</a></p>
77+
</footer>
7478
</aside>
7579

7680
<script>

demo/scroll-driven-view-transition/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ <h3>Functions Used</h3>
7272
pause(document.activeViewTransition);
7373
scrub(document.activeViewTransition, scrollProgress);</code></pre>
7474
</div>
75+
<footer class="shell-footer">
76+
<p>Built by <a href="https://www.bram.us/">Bramus</a>, Chrome Developer Relations Engineer at Google.<br>
77+
Source Code available <a href="https://github.com/googlechromelabs/view-transitions-toolkit">on GitHub</a><a href="https://www.apache.org/licenses/LICENSE-2.0.txt">Apache License, Version 2.0</a></p>
78+
</footer>
7579
</aside>
7680

7781
<script>

demo/styles.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,26 @@ code {
599599
margin: 1.5rem 0;
600600
}
601601

602+
.demo-footer, .shell-footer {
603+
margin-top: 5rem;
604+
padding: 2rem 0;
605+
text-align: center;
606+
font-size: 0.9rem;
607+
color: var(--text-secondary);
608+
font-style: italic;
609+
opacity: 0.7;
610+
}
611+
612+
.demo-footer a, .shell-footer a {
613+
color: var(--accent-color);
614+
text-decoration: none;
615+
font-weight: 600;
616+
}
617+
618+
.demo-footer a:hover, .shell-footer a:hover {
619+
text-decoration: underline;
620+
}
621+
602622
/* Responsive Layout for Demo Shells (Viewport < 1130px) */
603623
@media (max-width: 1129px) {
604624
.shell-container {

0 commit comments

Comments
 (0)