Skip to content

Commit

Permalink
wip: test transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored May 11, 2024
1 parent cc8cfa6 commit 73e2c71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Banner } from '../components/common/Banner';
import { getWebsiteConfig } from '../config';
import 'react-toastify/dist/ReactToastify.css';
import { navigationItems } from '../routes/navigationItems';

Check failure on line 10 in website/src/layouts/BaseLayout.astro

View workflow job for this annotation

GitHub Actions / Check format and types

There should be at least one empty line between import groups
import { ViewTransitions } from 'astro:transitions';

Check failure on line 11 in website/src/layouts/BaseLayout.astro

View workflow job for this annotation

GitHub Actions / Check format and types

`astro:transitions` import should occur before import of `react-toastify`
const websiteConfig = getWebsiteConfig();
const { name: websiteName, logo, bannerMessage, additionalHeadHTML } = websiteConfig;
Expand All @@ -22,6 +23,7 @@ const { title, implicitOrganism } = Astro.props;

<html lang='en'>
<head>
<ViewTransitions />
<meta charset='utf-8' />
<link rel='icon' type='image/svg+xml' href='/favicon.svg' />
<link rel='preload' as='image' href='/favicon.svg' />
Expand All @@ -31,6 +33,7 @@ const { title, implicitOrganism } = Astro.props;
<Fragment set:html={additionalHeadHTML} />
</head>
<body>

<Banner message={bannerMessage} />
<div class='flex flex-col min-h-screen w-11/12 mx-auto'>
<ToastContainer client:load />
Expand Down

0 comments on commit 73e2c71

Please sign in to comment.