Skip to content

Commit

Permalink
Enable client side view transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonappah committed Jun 27, 2024
1 parent 6d4dc22 commit 46d741f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const hash = childProcess

<footer
style="display: flex; flex-direction: column; gap: 1rem; align-items: center; padding: 3rem 5rem; width: 100%; background-color: var(--text-dark); font-size:0.8rem;" class="font-unbounded"
transition:persist
>
<style>
.sponsor:hover {
Expand Down
2 changes: 1 addition & 1 deletion src/components/join.astro
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const options: {title: string, description: string, url: string}[] = [
boxShadow: '0px 4px 4px 0px rgba(0, 0, 0, 0.25)'
}}
>
<h3 class="font-unbounded">{title}</h3>
<h3 class="font-unbounded">{title} &rarr;</h3>
<span>
{description}
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { HOME_LINK, discordInvite, mainNavLinks, instagramURL } from '../data'
}
</style>

<div style={{ position: 'fixed', top: '0', left: '0', width: '100%',zIndex: 100, }}>
<div transition:persist style={{ position: 'fixed', top: '0', left: '0', width: '100%',zIndex: 100, }}>

<div
style={{
Expand Down
4 changes: 3 additions & 1 deletion src/layouts/base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ let ogImage = (url.origin + '/og' + (url.pathname === '/' ? '/index' : url.pathn
const site = 'Comet Robotics at UT Dallas'
const { title } = Astro.props
import { ViewTransitions } from 'astro:transitions';
---
<!DOCTYPE html>
<html lang="en">
<html lang="en" transition:animate="none">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand All @@ -38,6 +39,7 @@ const { title } = Astro.props
image={ogImage}
astroGenerator={true}
/>
<ViewTransitions />
</head>
<Navbar />
<main>
Expand Down

0 comments on commit 46d741f

Please sign in to comment.