Added view trasitions

Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
This commit is contained in:
Louis Hollingworth 2023-09-21 10:56:48 +01:00
parent 7ba84dd020
commit 5a115374b4
Signed by: lucxjo
GPG key ID: A11415CB3DC7809B
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View file

@ -18,3 +18,4 @@ pnpm-debug.log*
# macOS-specific files # macOS-specific files
.DS_Store .DS_Store
dist

View file

@ -14,11 +14,13 @@ export interface Props {
} }
const { title, navLinks } = Astro.props; const { title, navLinks } = Astro.props;
import { ViewTransitions } from 'astro:transitions';
--- ---
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<ViewTransitions />
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" />