mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed semantic markup
This commit is contained in:
parent
746e323baf
commit
4e5a6d727a
5 changed files with 20 additions and 17 deletions
|
@ -5,10 +5,10 @@ import styles from './styles.module.scss';
|
||||||
interface IProps {}
|
interface IProps {}
|
||||||
|
|
||||||
const Footer: FC<IProps> = memo(() => (
|
const Footer: FC<IProps> = memo(() => (
|
||||||
<div className={styles.footer}>
|
<footer className={styles.footer}>
|
||||||
<div className={styles.slogan}>Уделяй больше времени тишине. Спасибо</div>
|
<div className={styles.slogan}>Уделяй больше времени тишине. Спасибо</div>
|
||||||
<div className={styles.copy}>2009 - {new Date().getFullYear()}</div>
|
<div className={styles.copy}>2009 - {new Date().getFullYear()}</div>
|
||||||
</div>
|
</footer>
|
||||||
));
|
));
|
||||||
|
|
||||||
export { Footer };
|
export { Footer };
|
||||||
|
|
|
@ -64,13 +64,13 @@ const NodeTitle: VFC<IProps> = memo(
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!!username && (
|
{!!username && (
|
||||||
<div className={styles.name}>
|
<aside className={styles.name}>
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<Placeholder width="100px" />
|
<Placeholder width="100px" />
|
||||||
) : (
|
) : (
|
||||||
`~${username.toLocaleLowerCase()}, ${getPrettyDate(createdAt)}`
|
`~${username.toLocaleLowerCase()}, ${getPrettyDate(createdAt)}`
|
||||||
)}
|
)}
|
||||||
</div>
|
</aside>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ const Header: FC<HeaderProps> = observer(() => {
|
||||||
}, [top]);
|
}, [top]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames(styles.wrap, { [styles.is_scrolled]: isScrolled })}>
|
<header className={classNames(styles.wrap, { [styles.is_scrolled]: isScrolled })}>
|
||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
<div className={styles.logo_wrapper}>
|
<div className={styles.logo_wrapper}>
|
||||||
<Logo />
|
<Logo />
|
||||||
|
@ -68,7 +68,7 @@ const Header: FC<HeaderProps> = observer(() => {
|
||||||
|
|
||||||
<Filler className={styles.filler} />
|
<Filler className={styles.filler} />
|
||||||
|
|
||||||
<div className={styles.plugs}>
|
<nav className={styles.plugs}>
|
||||||
<Authorized>
|
<Authorized>
|
||||||
<Anchor
|
<Anchor
|
||||||
className={classNames(styles.item, {
|
className={classNames(styles.item, {
|
||||||
|
@ -97,7 +97,7 @@ const Header: FC<HeaderProps> = observer(() => {
|
||||||
БОРИС
|
БОРИС
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Authorized>
|
</Authorized>
|
||||||
</div>
|
</nav>
|
||||||
|
|
||||||
{isUser && <UserButton user={user} onLogout={logout} authOpenProfile={openProfile} />}
|
{isUser && <UserButton user={user} onLogout={logout} authOpenProfile={openProfile} />}
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ const Header: FC<HeaderProps> = observer(() => {
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</header>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -42,18 +42,20 @@ const NodeBottomBlock: FC<IProps> = ({ commentsOrder }) => {
|
||||||
<Group className={styles.comments}>
|
<Group className={styles.comments}>
|
||||||
{inline && <div className={styles.inline}>{inline}</div>}
|
{inline && <div className={styles.inline}>{inline}</div>}
|
||||||
|
|
||||||
|
<article>
|
||||||
{isLoading || isLoadingComments || (!comments.length && !inline) ? (
|
{isLoading || isLoadingComments || (!comments.length && !inline) ? (
|
||||||
<NodeNoComments is_loading={isLoadingComments || isLoading} />
|
<NodeNoComments is_loading={isLoadingComments || isLoading} />
|
||||||
) : (
|
) : (
|
||||||
<NodeComments order={commentsOrder} />
|
<NodeComments order={commentsOrder} />
|
||||||
)}
|
)}
|
||||||
|
</article>
|
||||||
|
|
||||||
{isUser && !isLoading && (
|
{isUser && !isLoading && (
|
||||||
<NodeCommentForm nodeId={node.id} saveComment={onSaveComment} user={user} />
|
<NodeCommentForm nodeId={node.id} saveComment={onSaveComment} user={user} />
|
||||||
)}
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<div className={styles.panel}>
|
<aside className={styles.panel}>
|
||||||
<div className={styles.left}>
|
<div className={styles.left}>
|
||||||
<Sticky>
|
<Sticky>
|
||||||
<div className={styles.left_item}>
|
<div className={styles.left_item}>
|
||||||
|
@ -68,7 +70,7 @@ const NodeBottomBlock: FC<IProps> = ({ commentsOrder }) => {
|
||||||
</div>
|
</div>
|
||||||
</Sticky>
|
</Sticky>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</aside>
|
||||||
</Group>
|
</Group>
|
||||||
</Padder>
|
</Padder>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
|
@ -16,7 +16,6 @@ import { useNodeContext } from '~/utils/context/NodeContextProvider';
|
||||||
|
|
||||||
import styles from './styles.module.scss';
|
import styles from './styles.module.scss';
|
||||||
|
|
||||||
|
|
||||||
type IProps = {};
|
type IProps = {};
|
||||||
|
|
||||||
const NodeLayout: FC<IProps> = () => {
|
const NodeLayout: FC<IProps> = () => {
|
||||||
|
@ -56,7 +55,9 @@ const NodeLayout: FC<IProps> = () => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<section>
|
||||||
<NodeBottomBlock commentsOrder="DESC" />
|
<NodeBottomBlock commentsOrder="DESC" />
|
||||||
|
</section>
|
||||||
|
|
||||||
<Footer />
|
<Footer />
|
||||||
</Card>
|
</Card>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue