My personal site. theclashfruit.me
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: view transtitions

+11 -1
+5 -1
app/(main)/layout.tsx
··· 3 3 import Footer from '@/components/Footer'; 4 4 import Container from '@/components/Container'; 5 5 6 + import { ViewTransition } from 'react'; 7 + 6 8 import styles from '@/styles/layout/Main.module.scss'; 7 9 8 10 export default function MarketLayout({ ··· 17 19 <Container as="main" className={styles.main}> 18 20 <NavBar /> 19 21 20 - <div>{children}</div> 22 + <ViewTransition> 23 + <div>{children}</div> 24 + </ViewTransition> 21 25 </Container> 22 26 23 27 <Footer />
+3
next.config.ts
··· 11 11 as: '*.js' 12 12 } 13 13 } 14 + }, 15 + experimental: { 16 + viewTransition: true 14 17 } 15 18 }; 16 19
+3
styles/globals.scss
··· 44 44 text-decoration-thickness: 3px; 45 45 } 46 46 } 47 + 48 + // View Transition 49 + // TODO: Add some fancy anim