SimulationEditPage.tsx 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { Link } from 'react-router-dom'
  2. import { Helmet } from 'react-helmet-async'
  3. import { usePageContext } from '../../../shared/pageContext'
  4. import { DashboardLayout } from '../../../layouts/DashboardLayout'
  5. export function SimulationEditPage() {
  6. const { locale, path, copy } = usePageContext()
  7. const pageCopy = copy.simulationEditPage
  8. return (
  9. <DashboardLayout>
  10. <Helmet>
  11. <html lang={locale === 'ja' ? 'ja' : 'zh-CN'} />
  12. <title>{`Aitori Stylist | ${pageCopy.title}`}</title>
  13. <meta name="description" content={pageCopy.description} />
  14. </Helmet>
  15. <section className="stylist-workbench-top ipad-top-space-margin mb-2">
  16. <div className="container">
  17. <div className="d-flex align-items-center justify-content-between flex-wrap gap-3 mb-4">
  18. <Link
  19. to={path('/simulation')}
  20. className="btn btn-small btn-rounded btn-transparent-light-gray border border-1 border-color-dark-gray fw-700"
  21. >
  22. <i className="feather icon-feather-arrow-left me-6px"></i>
  23. {pageCopy.back}
  24. </Link>
  25. </div>
  26. <div className="workbench-panel bg-white border-radius-8px box-shadow-extra-large p-30px">
  27. <span className="bg-base-color d-inline-block mb-15px fw-600 text-white text-uppercase border-radius-30px ps-20px pe-20px fs-12">
  28. {pageCopy.badge}
  29. </span>
  30. <h1 className="fw-700 text-dark-gray ls-minus-1px mb-10px">{pageCopy.title}</h1>
  31. <p className="fs-18 lh-30 mb-0">{pageCopy.lead}</p>
  32. </div>
  33. </div>
  34. </section>
  35. <section className="pt-0">
  36. <div className="container">
  37. <div className="workbench-panel bg-white border-radius-8px box-shadow-extra-large p-30px">
  38. <h2 className="fw-700 text-dark-gray fs-26 mb-15px">{pageCopy.state.title}</h2>
  39. <p className="fs-18 lh-30 text-medium-gray mb-25px">{pageCopy.state.description}</p>
  40. <Link to={path('/simulation')} className="btn btn-large btn-rounded btn-base-color btn-box-shadow fw-700">
  41. {pageCopy.state.action}
  42. </Link>
  43. </div>
  44. </div>
  45. </section>
  46. </DashboardLayout>
  47. )
  48. }