Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cb4c741a90 | |||
| bba38affae | |||
| 9468793d91 | |||
| 44224e23ff | |||
| 5b926300ae | |||
| 9125730d2b | |||
| 00baa0b9bf | |||
| f5018bc6b7 | |||
| 59d9eb3df9 | |||
| 8f78011800 | |||
| 3c3f70fd3f | |||
| 4f62410e6d | |||
| b8c65ee091 |
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
.custom-bg {
|
.custom-bg {
|
||||||
background-image: url('./assets/bg/bg_1.jpg') !important;
|
background-image: url('./assets/bg/bg_2.jpg') !important;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ import SocketIOContextProvider from './component/context/SocketIOContext';
|
|||||||
import CSignupPage from './views/CSignupPage';
|
import CSignupPage from './views/CSignupPage';
|
||||||
import HelpPage from './views/HelpPage';
|
import HelpPage from './views/HelpPage';
|
||||||
import SubscriptionPage from './views/SubscriptionPage';
|
import SubscriptionPage from './views/SubscriptionPage';
|
||||||
|
import OnboardPage from "./views/OnboardPage";
|
||||||
|
import AccPWDResetPage from './views/AccPWDResetPage';
|
||||||
|
|
||||||
|
|
||||||
function AppRouters() {
|
function AppRouters() {
|
||||||
@@ -34,6 +36,7 @@ function AppRouters() {
|
|||||||
<Route path={siteLinks.signup} element={<SignupPage />} />
|
<Route path={siteLinks.signup} element={<SignupPage />} />
|
||||||
<Route path={siteLinks.forgetpwd} element={<ForgetpwdPage />} />
|
<Route path={siteLinks.forgetpwd} element={<ForgetpwdPage />} />
|
||||||
<Route path={siteLinks.csignup} element={<CSignupPage />} />
|
<Route path={siteLinks.csignup} element={<CSignupPage />} />
|
||||||
|
<Route path={siteLinks.accreset} element={<AccPWDResetPage />} />
|
||||||
<Route path={siteLinks.error} element={<LoginPage />} />
|
<Route path={siteLinks.error} element={<LoginPage />} />
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
@@ -47,6 +50,7 @@ function AppRouters() {
|
|||||||
<Route path={siteLinks.contacts} element={<ContactsPage />} />
|
<Route path={siteLinks.contacts} element={<ContactsPage />} />
|
||||||
<Route path={siteLinks.user} element={<UserPage />} />
|
<Route path={siteLinks.user} element={<UserPage />} />
|
||||||
<Route path={siteLinks.subscription} element={<SubscriptionPage />} />
|
<Route path={siteLinks.subscription} element={<SubscriptionPage />} />
|
||||||
|
<Route path={siteLinks.onboard} element={<OnboardPage />} />
|
||||||
<Route path={siteLinks.calendar} element={<CalendarPage />} />
|
<Route path={siteLinks.calendar} element={<CalendarPage />} />
|
||||||
<Route path={siteLinks.settings} element={<SettingsPage />} />
|
<Route path={siteLinks.settings} element={<SettingsPage />} />
|
||||||
<Route path={siteLinks.help} element={<HelpPage />} />
|
<Route path={siteLinks.help} element={<HelpPage />} />
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 390 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
@@ -0,0 +1,221 @@
|
|||||||
|
import React, { useEffect, useState } from 'react'
|
||||||
|
import { Form, Formik } from "formik";
|
||||||
|
import * as Yup from "yup";
|
||||||
|
import { useDispatch } from 'react-redux'
|
||||||
|
|
||||||
|
import { Link, useNavigate, useParams } from 'react-router-dom'
|
||||||
|
import siteLinks from '../../links/siteLinks'
|
||||||
|
import { useMutation } from '@tanstack/react-query';
|
||||||
|
import { completePWDReset, verifyResetToken } from '../../services/services';
|
||||||
|
import { updateUserDetails } from '../../store/UserDetails'
|
||||||
|
|
||||||
|
import { IoMdArrowDropdown } from "react-icons/io";
|
||||||
|
import getImage from '../../utils/getImage';
|
||||||
|
|
||||||
|
const validationSchema = Yup.object().shape({
|
||||||
|
password: Yup.string().required("Password is required"),
|
||||||
|
confirmpassword: Yup.string().required("Confirm Password is required").oneOf([Yup.ref('password')], 'Passwords must match')
|
||||||
|
})
|
||||||
|
|
||||||
|
const initialValues = {
|
||||||
|
password: '',
|
||||||
|
confirmpassword: '',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function AccPWDReset() {
|
||||||
|
|
||||||
|
const {token} = useParams()
|
||||||
|
|
||||||
|
const dispatch = useDispatch()
|
||||||
|
|
||||||
|
const navigate = useNavigate()
|
||||||
|
|
||||||
|
const [user, setUser] = useState(null)
|
||||||
|
|
||||||
|
// API to verify email link
|
||||||
|
const verifyLink = useMutation({
|
||||||
|
mutationFn: (fields) => {
|
||||||
|
return verifyResetToken(fields)
|
||||||
|
},
|
||||||
|
onSuccess: (res) => {
|
||||||
|
// console.log('res', res)
|
||||||
|
if(res.data.resultCode != '0'){
|
||||||
|
throw({message: res?.data?.resultDescription})
|
||||||
|
}
|
||||||
|
// setUser({user:'testaccount', ...res.data})
|
||||||
|
setUser(res.data)
|
||||||
|
},
|
||||||
|
// onError: (err) => {
|
||||||
|
// console.log('err', err)
|
||||||
|
// }
|
||||||
|
})
|
||||||
|
|
||||||
|
const resetPWD = useMutation({
|
||||||
|
mutationFn: (fields) => {
|
||||||
|
return completePWDReset(fields)
|
||||||
|
},
|
||||||
|
onSuccess: (res) => {
|
||||||
|
if(res?.data?.resultCode != '0'){
|
||||||
|
throw({message: res?.data?.resultDescription})
|
||||||
|
}
|
||||||
|
// const {token, room, uid} = res?.data
|
||||||
|
// if(!token || !room){
|
||||||
|
// throw({message: 'something went wrong, try again!'})
|
||||||
|
// }
|
||||||
|
// localStorage.setItem('token', token)
|
||||||
|
// localStorage.setItem('room', room)
|
||||||
|
// localStorage.setItem('uid', uid)
|
||||||
|
// dispatch(updateUserDetails({ ...res?.data }));
|
||||||
|
// navigate('/dash') // later add redux to dispatch state
|
||||||
|
},
|
||||||
|
// onError: (err) => {
|
||||||
|
// console.log('err', err)
|
||||||
|
// }
|
||||||
|
})
|
||||||
|
|
||||||
|
const handleCompletePWDReset = (values) => {
|
||||||
|
let reqData = {
|
||||||
|
reset_token: token,
|
||||||
|
// reset_uid: "4733e96b-7031-4684-bec3-f63da4417707",
|
||||||
|
reset_uid: "",
|
||||||
|
new_password: values.password,
|
||||||
|
}
|
||||||
|
resetPWD.mutate(reqData)
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(()=>{
|
||||||
|
if(!token){
|
||||||
|
return navigate(siteLinks.login, {replace: true})
|
||||||
|
}
|
||||||
|
verifyLink.mutate({reset_token: token})
|
||||||
|
}, [])
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="app">
|
||||||
|
<div className="app-wrap">
|
||||||
|
<div className="app-contant">
|
||||||
|
<div className="vh-100 bg-white custom-bg">
|
||||||
|
<div className="container-fluid p-0">
|
||||||
|
<div className="row no-gutters justify-content-center">
|
||||||
|
<div className="col-11 col-sm-6 col-lg-5 col-xxl-4 align-self-center order-2 order-sm-1" style={{maxWidth: '520px'}}>
|
||||||
|
<div className="mt-5 d-flex">
|
||||||
|
<div className="bg-white register p-5">
|
||||||
|
<h1 className="mb-2">MERMS Panel</h1>
|
||||||
|
{(verifyLink.isSuccess && !resetPWD.isSuccess) && <p>Complete your password reset</p>}
|
||||||
|
<div
|
||||||
|
>
|
||||||
|
<div className='mt-2'>
|
||||||
|
<div className="row">
|
||||||
|
{resetPWD.isSuccess ?
|
||||||
|
<>
|
||||||
|
<div className='col-12'>
|
||||||
|
<div className="rounded-2 d-flex flex-column justify-content-between align-items-center" style={{backgroundColor: '#F2FAF7'}}>
|
||||||
|
<h4 className='p-4 text-black'>Your password reset is completed</h4>
|
||||||
|
<img className='' style={{width: '150px'}} src={getImage('reset-password.png')} alt='reset-icon' />
|
||||||
|
<Link to={siteLinks.login} className='p-2 text-primary' style={{color: '#6FCAEF'}}>Home</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="col-12 mt-3">
|
||||||
|
<p>Go <Link to={siteLinks.home}> Back</Link></p>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
:
|
||||||
|
<>
|
||||||
|
{verifyLink.isPending ?
|
||||||
|
<div className='col-12'>
|
||||||
|
<div className="rounded-2 d-flex flex-column justify-content-center align-items-center" style={{height: '200px', backgroundColor: '#F2FAF7'}}>
|
||||||
|
<div className="col-12 d-flex flex-column justify-content-center align-items-center">
|
||||||
|
<p className='text-black'>loading...</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
: verifyLink.isSuccess ?
|
||||||
|
<div className='col-12'>
|
||||||
|
<Formik
|
||||||
|
initialValues={initialValues}
|
||||||
|
validationSchema={validationSchema}
|
||||||
|
onSubmit={handleCompletePWDReset}
|
||||||
|
>
|
||||||
|
{(props) => {
|
||||||
|
return (
|
||||||
|
<Form className='mt-2'>
|
||||||
|
<div className="row">
|
||||||
|
<>
|
||||||
|
<div className="col-12">
|
||||||
|
<div className="form-group">
|
||||||
|
<label className={`text-black fw-bold control-label`}>Username: {user?.user}</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="col-12">
|
||||||
|
<div className="form-group">
|
||||||
|
<label className={`text-black fw-bold control-label ${(props.errors.password && props.touched.password) && 'text-danger'}`}>Password*</label>
|
||||||
|
<input type="password" name='password' className="form-control" placeholder="password" value={props.values.password} onChange={props.handleChange} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="col-12">
|
||||||
|
<div className="form-group">
|
||||||
|
<label className={`text-black fw-bold control-label`}>Confirm Password* <span className={`${(props.errors.confirmpassword && props.touched.confirmpassword) && 'text-danger'}`}>{(props.errors.confirmpassword && props.touched.confirmpassword) && props.errors.confirmpassword}</span></label>
|
||||||
|
<input type="password" name='confirmpassword' className="form-control" placeholder="confirmpassword" value={props.values.confirmpassword} onChange={props.handleChange} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{resetPWD.error &&
|
||||||
|
<>
|
||||||
|
<div className="col-12">
|
||||||
|
<p className='text-danger'>{resetPWD.error.message}</p>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
|
||||||
|
<div className="col-12 mt-3 text-end">
|
||||||
|
<button type='submit' className="btn btn-primary text-uppercase">{resetPWD.isPending ? 'loading...' : 'reset password'}</button>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
</div>
|
||||||
|
</Form>
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
</Formik>
|
||||||
|
</div>
|
||||||
|
: verifyLink.error ?
|
||||||
|
<>
|
||||||
|
<div className='col-12'>
|
||||||
|
<div className="rounded-2 d-flex flex-column justify-content-between align-items-center" style={{backgroundColor: '#E9D0DD'}}>
|
||||||
|
<h4 className='p-4 text-black'>Unable to continue password reset. Please start again</h4>
|
||||||
|
<img className='' style={{width: '150px'}} src={getImage('reset-password.png')} alt='reset-icon' />
|
||||||
|
<Link to={siteLinks.login} className='p-2 text-primary' style={{color: '#6FCAEF'}}>Home</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="col-12 mt-3">
|
||||||
|
<p>Go <Link to={siteLinks.home}> Back</Link></p>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
:
|
||||||
|
null
|
||||||
|
}
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/* <div className="custom-bg col-sm-6 col-xxl-9 col-lg-7 b-gradient o-hidden order-1 order-sm-2">
|
||||||
|
<div className="row align-items-center h-100">
|
||||||
|
<div className="col-7 mx-auto ">
|
||||||
|
<img className="img-fluid" src={LoginImg} alt="" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> */}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -42,11 +42,11 @@ export default function Products() {
|
|||||||
:
|
:
|
||||||
<div className="row m-b-20">
|
<div className="row m-b-20">
|
||||||
{products && products.map((product, index) => (
|
{products && products.map((product, index) => (
|
||||||
<div key={product.uid+index} className="col-xxs-6 col-xl-4 col-xxl-6 mb-2 mb-xxl-0 ">
|
<div key={product.uid+index} className={`col-xxs-6 col-xl-4 col-xxl-6 mb-2 mb-xxl-0`}>
|
||||||
<Link to={productPath(product?.product_id)} >
|
<Link to={productPath(product?.product_id)} >
|
||||||
<div className="d-flex align-items-center extraProductCard">
|
<div className={`d-flex align-items-center extraProductCard ${product?.icon_style}`} >
|
||||||
<div className="icon-container img-icon m-r-20 bg-light-gray rounded">
|
<div className="icon-container img-icon m-r-20 bg-light-gray rounded">
|
||||||
<i className="fa fa-cart-plus text-primary"></i>
|
<i className={`fa ${product?.product_icon} text-primary`}></i>
|
||||||
</div>
|
</div>
|
||||||
<div className="report-details">
|
<div className="report-details">
|
||||||
<p>{product?.status_text}</p>
|
<p>{product?.status_text}</p>
|
||||||
|
|||||||
@@ -90,8 +90,8 @@ export default function UserHeader(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="p-4">
|
<div className="p-4">
|
||||||
<Link className="dropdown-item d-flex nav-link" to={siteLinks.user}>
|
<Link className="dropdown-item d-flex nav-link" to={siteLinks.subscription}>
|
||||||
<i className="fa fa-user pr-2 text-success"></i> Users</Link>
|
<i className="fa fa-user pr-2 text-success"></i> Subscription</Link>
|
||||||
<Link className="dropdown-item d-flex nav-link" to={siteLinks.contacts}>
|
<Link className="dropdown-item d-flex nav-link" to={siteLinks.contacts}>
|
||||||
<i className="fa fa-envelope pr-2 text-primary"></i> Contacts
|
<i className="fa fa-envelope pr-2 text-primary"></i> Contacts
|
||||||
<span className="badge badge-primary ml-auto">6</span>
|
<span className="badge badge-primary ml-auto">6</span>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default function UserMenu() {
|
|||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
<ul id="collapseTwo" className="collapse" aria-labelledby="headingTwo" data-bs-parent="#sidebarNav">
|
<ul id="collapseTwo" className="collapse" aria-labelledby="headingTwo" data-bs-parent="#sidebarNav">
|
||||||
<li className={`${pathname == siteLinks.user ? 'active' : ''}`}><Link to={siteLinks.user}>Users</Link></li>
|
<li className={`${pathname == siteLinks.subscription ? 'active' : ''}`}><Link to={siteLinks.subscription}>Subscription</Link></li>
|
||||||
<li className={`${pathname == siteLinks.settings ? 'active' : ''}`}><Link to={siteLinks.settings}>Settings</Link></li>
|
<li className={`${pathname == siteLinks.settings ? 'active' : ''}`}><Link to={siteLinks.settings}>Settings</Link></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import BreadcrumbComBS from "../breadcrumb/BreadcrumbComBS";
|
||||||
|
import getImage from "../../utils/getImage";
|
||||||
|
|
||||||
|
export default function Onboard() {
|
||||||
|
|
||||||
|
const pricingFields ={
|
||||||
|
starter: { name: 'Starter', price: 5.99, active: true },
|
||||||
|
basic: { name: 'Basic', price: 12.99, active: true },
|
||||||
|
premium: { name: 'Premium', price: 20.00, active: true },
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<BreadcrumbComBS title='Subscription' paths={['Dashboard', 'Subscription']} />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div className="row">
|
||||||
|
<div className="col-xl-3 col-md-6">
|
||||||
|
<div className="card card-statistics text-center py-3">
|
||||||
|
<div className="card-body pricing-content">
|
||||||
|
<div className="pricing-content-card">
|
||||||
|
<h5>Current Subscription(s)</h5>
|
||||||
|
<h2 className="text-primary pt-3">Basic</h2>
|
||||||
|
{/*<p className="text-primary pb-3">/ Monthly</p>*/}
|
||||||
|
{/*<ul className="py-2">*/}
|
||||||
|
{/* <li>post jobs</li>*/}
|
||||||
|
{/* <li>advanced instructors search</li>*/}
|
||||||
|
{/* <li>invite candidates</li>*/}
|
||||||
|
{/* <li>post events</li>*/}
|
||||||
|
{/* <li>cancel any time</li>*/}
|
||||||
|
{/*</ul>*/}
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<>
|
||||||
|
{Object.entries(pricingFields)?.map(([key, value]) => (
|
||||||
|
|
||||||
|
<div key={key} className="col-xl-3 col-md-6">
|
||||||
|
<div className="card card-statistics text-center py-3">
|
||||||
|
<div className="card-body pricing-content">
|
||||||
|
<div className="pricing-content-card">
|
||||||
|
<h5>{value.name}</h5>
|
||||||
|
<h2 className="text-primary pt-3">${value.price}</h2>
|
||||||
|
<p className="text-primary pb-3">/ Monthly</p>
|
||||||
|
<ul className="py-2">
|
||||||
|
<li>post jobs</li>
|
||||||
|
<li>advanced instructors search</li>
|
||||||
|
<li>invite candidates</li>
|
||||||
|
<li>post events</li>
|
||||||
|
<li>cancel any time</li>
|
||||||
|
</ul>
|
||||||
|
<div className="pt-2"><a href="javascript:void(0)" className="btn btn-inverse-secondary btn-round btn-sm">go {value.name}</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
))}
|
||||||
|
</>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -97,7 +97,9 @@ export default function ProductActive({productData}){
|
|||||||
<div className="card-header">
|
<div className="card-header">
|
||||||
<div className="card-heading d-flex justify-content-between">
|
<div className="card-heading d-flex justify-content-between">
|
||||||
<h4 className="card-title">{externalUrl}</h4>
|
<h4 className="card-title">{externalUrl}</h4>
|
||||||
<button type="button" onClick={()=>iframe.current.src += ''} className="btn btn-primary">IC</button>
|
<button type="button" onClick={()=>iframe.current.src += ''} className="btn">
|
||||||
|
<img src={getImage('refresh.png')} style={{width: '30px', height: 'auto'}} alt='refresh page' />
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
|
|||||||
@@ -1,10 +1,18 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import BreadcrumbComBS from "../breadcrumb/BreadcrumbComBS";
|
import BreadcrumbComBS from "../breadcrumb/BreadcrumbComBS";
|
||||||
|
import getImage from "../../utils/getImage";
|
||||||
|
|
||||||
export default function Subscription() {
|
export default function Subscription() {
|
||||||
|
|
||||||
|
const pricingFields ={
|
||||||
|
starter: { name: 'Starter', price: 5.99, active: true },
|
||||||
|
basic: { name: 'Basic', price: 12.99, active: true },
|
||||||
|
premium: { name: 'Premium', price: 20.00, active: true },
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<BreadcrumbComBS title='Home' paths={['Dashboard', 'Subscription']} />
|
<BreadcrumbComBS title='Subscription' paths={['Dashboard', 'Subscription']} />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -13,7 +21,16 @@ export default function Subscription() {
|
|||||||
<div className="card card-statistics text-center py-3">
|
<div className="card card-statistics text-center py-3">
|
||||||
<div className="card-body pricing-content">
|
<div className="card-body pricing-content">
|
||||||
<div className="pricing-content-card">
|
<div className="pricing-content-card">
|
||||||
|
<h5>Current Subscription(s)</h5>
|
||||||
|
<h2 className="text-primary pt-3">Basic</h2>
|
||||||
|
{/*<p className="text-primary pb-3">/ Monthly</p>*/}
|
||||||
|
{/*<ul className="py-2">*/}
|
||||||
|
{/* <li>post jobs</li>*/}
|
||||||
|
{/* <li>advanced instructors search</li>*/}
|
||||||
|
{/* <li>invite candidates</li>*/}
|
||||||
|
{/* <li>post events</li>*/}
|
||||||
|
{/* <li>cancel any time</li>*/}
|
||||||
|
{/*</ul>*/}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -21,66 +38,31 @@ export default function Subscription() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="col-xl-3 col-md-6">
|
<>
|
||||||
<div className="card card-statistics text-center py-3">
|
{Object.entries(pricingFields)?.map(([key, value]) => (
|
||||||
<div className="card-body pricing-content">
|
|
||||||
<div className="pricing-content-card">
|
<div key={key} className="col-xl-3 col-md-6">
|
||||||
<h5>Premium</h5>
|
<div className="card card-statistics text-center py-3">
|
||||||
<h2 className="text-primary pt-3">$150</h2>
|
<div className="card-body pricing-content">
|
||||||
<p className="text-primary pb-3">/ Monthly</p>
|
<div className="pricing-content-card">
|
||||||
<ul className="py-2">
|
<h5>{value.name}</h5>
|
||||||
<li>post jobs</li>
|
<h2 className="text-primary pt-3">${value.price}</h2>
|
||||||
<li>advanced instructors search</li>
|
<p className="text-primary pb-3">/ Monthly</p>
|
||||||
<li>invite candidates</li>
|
<ul className="py-2">
|
||||||
<li>post events</li>
|
<li>post jobs</li>
|
||||||
<li>cancel any time</li>
|
<li>advanced instructors search</li>
|
||||||
</ul>
|
<li>invite candidates</li>
|
||||||
<div className="pt-2"><a href="javascript:void(0)" className="btn btn-primary btn-round btn-sm">go premium</a></div>
|
<li>post events</li>
|
||||||
|
<li>cancel any time</li>
|
||||||
|
</ul>
|
||||||
|
<div className="pt-2"><a href="javascript:void(0)" className="btn btn-inverse-secondary btn-round btn-sm">go {value.name}</a></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="col-xl-3 col-md-6">
|
|
||||||
<div className="card card-statistics text-center py-3">
|
|
||||||
<div className="card-body pricing-content">
|
|
||||||
<div className="pricing-content-card">
|
|
||||||
<h5>basic</h5>
|
|
||||||
<h2 className="text-primary pt-3">$130</h2>
|
|
||||||
<p className="text-primary pb-3">/ Monthly</p>
|
|
||||||
<ul className="py-2">
|
|
||||||
<li>post jobs</li>
|
|
||||||
<li>advanced instructors search</li>
|
|
||||||
<li>invite candidates</li>
|
|
||||||
<li>post events</li>
|
|
||||||
<li>cancel any time</li>
|
|
||||||
</ul>
|
|
||||||
<div className="pt-2"><a href="javascript:void(0)" className="btn btn-inverse-secondary btn-round btn-sm">go premium</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="col-xl-3 col-md-6">
|
|
||||||
<div className="card card-statistics text-center py-3">
|
|
||||||
<div className="card-body pricing-content">
|
|
||||||
<div className="pricing-content-card">
|
|
||||||
<h5>starter</h5>
|
|
||||||
<h2 className="text-primary pt-3">$100</h2>
|
|
||||||
<p className="text-primary pb-3">/ Monthly</p>
|
|
||||||
<ul className="py-2">
|
|
||||||
<li>post jobs</li>
|
|
||||||
<li>advanced instructors search</li>
|
|
||||||
<li>invite candidates</li>
|
|
||||||
<li>post events</li>
|
|
||||||
<li>cancel any time</li>
|
|
||||||
</ul>
|
|
||||||
<div className="pt-2"><a href="javascript:void(0)" className="btn btn-inverse-secondary btn-round btn-sm">go premium</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
))}
|
||||||
|
</>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
+8
-1
@@ -90,7 +90,14 @@ $today-highlight-bg: #fcf8e3;
|
|||||||
$btn-bg: #8e54e9;
|
$btn-bg: #8e54e9;
|
||||||
$btn-border: #8e54e9;
|
$btn-border: #8e54e9;
|
||||||
$event-padding: 10px;
|
$event-padding: 10px;
|
||||||
|
.manage{
|
||||||
|
background-color:lightgreen !important;
|
||||||
|
border-radius: 5px !important;
|
||||||
|
}
|
||||||
|
.creating{
|
||||||
|
background-color: lightyellow !important;
|
||||||
|
border-radius: 5px !important;
|
||||||
|
}
|
||||||
.billing{
|
.billing{
|
||||||
background-color: darkgoldenrod;
|
background-color: darkgoldenrod;
|
||||||
color: white;
|
color: white;
|
||||||
|
|||||||
@@ -8,13 +8,15 @@ const siteLinks = {
|
|||||||
comments: '/comments',
|
comments: '/comments',
|
||||||
reports: '/reports',
|
reports: '/reports',
|
||||||
subscription: '/subscription',
|
subscription: '/subscription',
|
||||||
|
onboard: '/subscription',
|
||||||
user: '/user',
|
user: '/user',
|
||||||
calendar: '/calendar',
|
calendar: '/calendar',
|
||||||
settings: '/settings',
|
settings: '/settings',
|
||||||
login: '/auth/login',
|
login: '/auth/login',
|
||||||
signup: '/auth/signup',
|
signup: '/auth/signup',
|
||||||
forgetpwd: '/auth/forgetpwd',
|
forgetpwd: '/auth/forgetpwd',
|
||||||
csignup: '/csignup/:jwt'
|
csignup: '/csignup/:jwt',
|
||||||
|
accreset: '/accreset/:token'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default siteLinks
|
export default siteLinks
|
||||||
@@ -134,9 +134,21 @@ export const recentActions = (reqData) => {
|
|||||||
return postAuxEnd(`/panel/account/actions`, postData, false)
|
return postAuxEnd(`/panel/account/actions`, postData, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FUNCTION TO VERIFY RESET TOKEN
|
||||||
|
export const verifyResetToken = (reqData) => {
|
||||||
|
let postData = {
|
||||||
|
...reqData
|
||||||
|
}
|
||||||
|
return postAuxEnd('/panel/auth/resetverify', postData, false)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FUNCTION TO COMPLETE PASSWORD RESET
|
||||||
|
export const completePWDReset = (reqData) => {
|
||||||
|
let postData = {
|
||||||
|
...reqData
|
||||||
|
}
|
||||||
|
return postAuxEnd('/panel/auth/resetcomplete', postData, false)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import AccPWDReset from '../component/auth/AccPWDReset'
|
||||||
|
|
||||||
|
export default function AccPWDResetPage() {
|
||||||
|
return (
|
||||||
|
<AccPWDReset />
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
import Onboard from '../component/onboard/Onboard';
|
||||||
|
|
||||||
|
|
||||||
|
export default function OnboardPage(){
|
||||||
|
return <Onboard />
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user