refactor: move components by fsd
This commit is contained in:
@@ -3,6 +3,7 @@ import { ReactNode } from 'react';
|
||||
import { Montserrat, Roboto } from 'next/font/google';
|
||||
import '@core/styles/globals.scss';
|
||||
import '@core/styles/reset.scss';
|
||||
import { Footer, Header } from '@/widgets';
|
||||
|
||||
const roboto = Roboto({
|
||||
subsets: ['cyrillic'],
|
||||
@@ -28,7 +29,9 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang='en'>
|
||||
<body className={`${roboto.variable} ${montseratt.variable}`}>
|
||||
{children}
|
||||
<Header />
|
||||
<main>{children}</main>
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import { Home } from '@/views';
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<div>
|
||||
<Home />
|
||||
</div>
|
||||
);
|
||||
return <Home />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user