mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
made simple full-width image container
This commit is contained in:
parent
677dce9721
commit
c58bf1a379
4 changed files with 23 additions and 1 deletions
8
src/components/node/NodeImageTinySlider/index.tsx
Normal file
8
src/components/node/NodeImageTinySlider/index.tsx
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import React, { FC } from 'react';
|
||||||
|
import styles from './styles.module.scss';
|
||||||
|
|
||||||
|
interface IProps {}
|
||||||
|
|
||||||
|
const NodeImageTinySlider: FC<IProps> = () => <div className={styles.wrap}>Slider :3</div>;
|
||||||
|
|
||||||
|
export { NodeImageTinySlider };
|
11
src/components/node/NodeImageTinySlider/styles.module.scss
Normal file
11
src/components/node/NodeImageTinySlider/styles.module.scss
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
.wrap {
|
||||||
|
//padding-bottom: $radius;
|
||||||
|
background-color: $red;
|
||||||
|
|
||||||
|
width: 100vw;
|
||||||
|
position: relative;
|
||||||
|
left: 50%;
|
||||||
|
right: 50%;
|
||||||
|
margin-left: -50vw;
|
||||||
|
margin-right: -50vw;
|
||||||
|
}
|
|
@ -25,6 +25,7 @@ const Component: FC<IProps> = ({ modal: { is_shown } }) => {
|
||||||
<div>
|
<div>
|
||||||
<BlurWrapper is_blurred={is_shown}>
|
<BlurWrapper is_blurred={is_shown}>
|
||||||
<PageCover />
|
<PageCover />
|
||||||
|
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
<Modal />
|
<Modal />
|
||||||
<Sprites />
|
<Sprites />
|
||||||
|
|
|
@ -16,6 +16,7 @@ import { Filler } from '~/components/containers/Filler';
|
||||||
import { modalShowPhotoswipe } from '../modal/actions';
|
import { modalShowPhotoswipe } from '../modal/actions';
|
||||||
import { IEditorComponentProps } from '~/redux/node/types';
|
import { IEditorComponentProps } from '~/redux/node/types';
|
||||||
import { EditorFiller } from '~/components/editors/EditorFiller';
|
import { EditorFiller } from '~/components/editors/EditorFiller';
|
||||||
|
import { NodeImageTinySlider } from '~/components/node/NodeImageTinySlider';
|
||||||
|
|
||||||
const prefix = 'NODE.';
|
const prefix = 'NODE.';
|
||||||
export const NODE_ACTIONS = {
|
export const NODE_ACTIONS = {
|
||||||
|
@ -90,7 +91,8 @@ export type INodeComponentProps = {
|
||||||
export type INodeComponents = Record<ValueOf<typeof NODE_TYPES>, FC<INodeComponentProps>>;
|
export type INodeComponents = Record<ValueOf<typeof NODE_TYPES>, FC<INodeComponentProps>>;
|
||||||
|
|
||||||
export const NODE_HEADS: INodeComponents = {
|
export const NODE_HEADS: INodeComponents = {
|
||||||
[NODE_TYPES.IMAGE]: NodeImageSlideBlock,
|
// [NODE_TYPES.IMAGE]: NodeImageSlideBlock,
|
||||||
|
[NODE_TYPES.IMAGE]: NodeImageTinySlider,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const NODE_COMPONENTS: INodeComponents = {
|
export const NODE_COMPONENTS: INodeComponents = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue