Skip to content

Commit

Permalink
improve tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
romanbutora committed Sep 3, 2023
1 parent 4c751c0 commit 8271af2
Show file tree
Hide file tree
Showing 19 changed files with 433 additions and 104 deletions.
Binary file added public/pictures/tutorial/add_article_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pictures/tutorial/add_article_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pictures/tutorial/add_article_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pictures/tutorial/add_claim_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pictures/tutorial/add_claim_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pictures/tutorial/add_review_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pictures/tutorial/add_review_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pictures/tutorial/add_review_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions src/components/AddReview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,20 @@ const AddReview: React.FC<AddReviewProps> = ({ claim, closeModal, reviewsNum })
}}
>
<Col span={24}>
<Paragraph style={{ color: 'white' }}>
{claim.text}
<Paragraph style={{ color: 'white', fontWeight: 'bold' }}>
<p style={{
display: 'inline', color: 'white', fontStyle: 'italic', fontSize: '1.0em',
}}
>
{claim.text}
</p>
</Paragraph>
</Col>
</Row>
<Divider style={{ backgroundColor: 'white', width: '5%' }} />
<Title level={5} className="defaultForm" style={{ color: 'white', whiteSpace: 'pre-line', textDecoration: 'none' }}>My review :</Title>
<Title level={5} className="defaultForm" style={{ color: '#d86e3d', whiteSpace: 'pre-line', textDecoration: 'none' }}>{t('my_review')}</Title>
<Form
form={claimForm}
name="basic"
Expand Down
22 changes: 22 additions & 0 deletions src/components/TabExample/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React, { ReactNode } from 'react';

interface Props {
element: ReactNode,
}

const TabExample: React.FC<Props> = ({ element }) => (
<div className="osx-window tutorial">
<div className="osx-title-bar">
<div className="osx-buttons">
<div className="osx-button osx-close" />
<div className="osx-button osx-minimize" />
<div className="osx-button osx-maximize" />
</div>
</div>
<div className="osx-content">
{element}
</div>
</div>
);

export default TabExample;
49 changes: 49 additions & 0 deletions src/components/Tutorial/addarticle.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/* eslint-disable max-len */
import React from 'react';
import {
Carousel,
} from 'antd';

const contentStyle: React.CSSProperties = {
color: '#fff',
lineHeight: '160px',
textAlign: 'center',
background: '#364d79',
};

const CreateArticleTutorial: React.FC = () => (
<Carousel dotPosition="bottom" autoplay>
<div>
<div style={contentStyle}>
<img
alt=""
src={`${process.env.PUBLIC_URL}/pictures/tutorial/add_article_1.png`}
width="100%"
height="fit-content"
/>
</div>
</div>
<div>
<div style={contentStyle}>
<img
alt=""
src={`${process.env.PUBLIC_URL}/pictures/tutorial/add_article_2.png`}
width="100%"
height="fit-content"
/>
</div>
</div>
<div>
<div style={contentStyle}>
<img
alt=""
src={`${process.env.PUBLIC_URL}/pictures/tutorial/add_article_3.png`}
width="100%"
height="fit-content"
/>
</div>
</div>
</Carousel>
);

export default CreateArticleTutorial;
48 changes: 48 additions & 0 deletions src/components/Tutorial/addclaim.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React from 'react';
import {
Carousel,
} from 'antd';

const contentStyle: React.CSSProperties = {
color: '#fff',
lineHeight: '160px',
textAlign: 'center',
background: '#364d79',
};

const CreateClaimTutorial : React.FC = () => (
<Carousel dotPosition="bottom" autoplay>
<div>
<div style={contentStyle}>
<img
alt=""
src={`${process.env.PUBLIC_URL}/pictures/tutorial/add_article_3.png`}
width="100%"
height="fit-content"
/>
</div>
</div>
<div>
<div style={contentStyle}>
<img
alt=""
src={`${process.env.PUBLIC_URL}/pictures/tutorial/add_claim_1.png`}
width="100%"
height="fit-content"
/>
</div>
</div>
<div>
<div style={contentStyle}>
<img
alt=""
src={`${process.env.PUBLIC_URL}/pictures/tutorial/add_claim_2.png`}
width="100%"
height="fit-content"
/>
</div>
</div>
</Carousel>
);

export default CreateClaimTutorial;
49 changes: 49 additions & 0 deletions src/components/Tutorial/addreview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import React, { } from 'react';
import {
Carousel,
} from 'antd';

const contentStyle: React.CSSProperties = {
color: '#fff',
lineHeight: '160px',
textAlign: 'center',
background: '#364d79',
};

const AddReviewTutorial: React.FC = () => (
<Carousel dotPosition="bottom" autoplay>
<div>
<div style={contentStyle}>
<img
alt=""
src={`${process.env.PUBLIC_URL}/pictures/tutorial/add_review_1.png`}
width="100%"
height="fit-content"
/>
</div>
</div>
<div>
<div style={contentStyle}>
<img
alt=""
src={`${process.env.PUBLIC_URL}/pictures/tutorial/add_review_2.png`}
width="100%"
height="fit-content"
/>
</div>
</div>
<div>
<div style={contentStyle}>
<img
alt=""
src={`${process.env.PUBLIC_URL}/pictures/tutorial/add_review_3.png`}
width="100%"
height="fit-content"
/>
</div>
</div>
</Carousel>
);

export default AddReviewTutorial;
Loading

0 comments on commit 8271af2

Please sign in to comment.