From 4d642e312ed728ad51c454d1e2a0b7bb350fc174 Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Sun, 6 Dec 2020 23:49:13 +0100 Subject: first creator page --- client/src/admin/jsx/creator/Creator.jsx | 18 +++++++++ client/src/admin/jsx/creator/Step1.jsx | 67 ++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 client/src/admin/jsx/creator/Creator.jsx create mode 100644 client/src/admin/jsx/creator/Step1.jsx (limited to 'client/src/admin/jsx/creator') diff --git a/client/src/admin/jsx/creator/Creator.jsx b/client/src/admin/jsx/creator/Creator.jsx new file mode 100644 index 0000000..896235e --- /dev/null +++ b/client/src/admin/jsx/creator/Creator.jsx @@ -0,0 +1,18 @@ +import React, { useState } from 'react'; +import Step1 from './Step1'; +import { t, goTo } from '../../hocs'; + +const Creator = ({projects}) => { + const [step, setStep] = useState('step1'); + + switch(step) { + case 'step1': + return ; + case 'step2': + return null; + default: + return null; + } +}; + +export default Creator; diff --git a/client/src/admin/jsx/creator/Step1.jsx b/client/src/admin/jsx/creator/Step1.jsx new file mode 100644 index 0000000..647661e --- /dev/null +++ b/client/src/admin/jsx/creator/Step1.jsx @@ -0,0 +1,67 @@ +import React, { useState } from 'react'; +import { WithHover, t, goTo } from '../../hocs'; + +const Step1 = () => { + const [websiteTitle, setWebsiteTitle] = useState(''); + const [websiteDescription, setWebsiteDescription] = useState(''); + const isNextActive = websiteTitle.length > 2 && websiteDescription.length > 2 ? 'active' : ''; + + return ( +
+
{ t('main-information') }
+
+ +
+ setWebsiteTitle(e.target.value)} + placeholder={t('website-title')} + id="website-title" + name="website-title" + type="text" + className="text-input-field" + value={websiteTitle} + /> + +
+
+
+
+ +
+ + +
+
+
+
+
+ +
+
+
+ + {t('upload-favicon')} + +
+
+
+ +
+ {t('cancel')} +
+
+ +
+ {t('next')} +
+
+
+
+ ) +}; + +export default Step1; -- cgit v1.2.3