Orri sekundarioak css modulesera pasatzen ditu (#14)
* refactor: extract component * refactor: extract component * refactor: use comonent * feat: Orrialde basikoa CSS modulesera pasatzen du * chore: erabiltzen ez den konponentea kentzen du * feat: Oina CSS modulesera pasatzen du * refactor: CSS variable * chore: erabiltzen ez den tema kentzen du * chore: erabiltzen ez den objektua kentzen du * chore: dependentziak kentzen ditu
This commit is contained in:
34
front/src/views/RegularPage/RegularPage.tsx
Normal file
34
front/src/views/RegularPage/RegularPage.tsx
Normal file
@@ -0,0 +1,34 @@
|
||||
import React from 'react';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
|
||||
import remarkGfm from 'remark-gfm';
|
||||
|
||||
import { Container } from '../../components/Container';
|
||||
import { Gainburua } from '../../components/Gainburua';
|
||||
import { Oina } from '../../components/Oina';
|
||||
import * as styles from './RegularPage.module.scss';
|
||||
import { RegularPageContent } from './RegularPageContent';
|
||||
|
||||
interface Props {
|
||||
content: RegularPageContent;
|
||||
}
|
||||
|
||||
export const RegularPage: React.FC<Props> = ({ content }) => {
|
||||
const { edukia } = content;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Gainburua />
|
||||
|
||||
<Container>
|
||||
<section className={styles.atala}>
|
||||
<ReactMarkdown remarkPlugins={[remarkGfm]} className={styles.edukia}>
|
||||
{edukia}
|
||||
</ReactMarkdown>
|
||||
</section>
|
||||
</Container>
|
||||
|
||||
<Oina />
|
||||
</>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user