diff --git a/packages/frontend/src/components/DeployStep.tsx b/packages/frontend/src/components/DeployStep.tsx index 6848cf0b..a0aacc83 100644 --- a/packages/frontend/src/components/DeployStep.tsx +++ b/packages/frontend/src/components/DeployStep.tsx @@ -3,8 +3,11 @@ import React, { useState } from 'react'; import { Stopwatch, setStopWatchOffset } from './StopWatch'; import FormatMillisecond from './FormatMilliSecond'; -const PROCESS_LOG = - "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."; +const PROCESS_LOGS = [ + 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', + 'Lorem Ipsum has been the industrys standard dummy text ever since the 1500s.', + 'When an unknown printer took a galley of type and scrambled it to make a type specimen book.', +]; enum DeployStatus { PROCESSING = 'progress', @@ -58,7 +61,9 @@ const DeployStep = ({ )}
- {PROCESS_LOG} + {PROCESS_LOGS.map((log, key) => { + return

{log}

; + })}
); diff --git a/packages/frontend/src/components/FormatMilliSecond.tsx b/packages/frontend/src/components/FormatMilliSecond.tsx index ead654bf..047a5479 100644 --- a/packages/frontend/src/components/FormatMilliSecond.tsx +++ b/packages/frontend/src/components/FormatMilliSecond.tsx @@ -5,6 +5,7 @@ const FormatMillisecond = ({ time }: { time: number }) => { const formatTime = Duration.fromMillis(time) .shiftTo('days', 'hours', 'minutes', 'seconds') .toObject(); + return (
{formatTime.days !== 0 && {formatTime.days}d } diff --git a/packages/frontend/src/pages/projects/create/Success.tsx b/packages/frontend/src/pages/projects/create/Success.tsx new file mode 100644 index 00000000..9873ceb8 --- /dev/null +++ b/packages/frontend/src/pages/projects/create/Success.tsx @@ -0,0 +1,70 @@ +import React from 'react'; +import { Button } from '@material-tailwind/react'; +import { Link } from 'react-router-dom'; + +const Success = () => { + return ( +
+
+
^
+
+
+

Project deployed successfully.

+
+
+ + Your project has been deployed at{' '} + + + ^www.iglootools.snowballtools.xyz + + + +
+
+ +
+
+ ^? 
Wondering what’s next?
+
+
+
+
1
+
+
Add a custom domain
+

+ Make it easy for your visitors to remember your URL with a + custom domain. +

+
+ +
+
+
+
+
+ +
+
+ + + +
+
+ + + +
+
+
+
+ ); +}; + +export default Success; diff --git a/packages/frontend/src/pages/projects/create/routes.tsx b/packages/frontend/src/pages/projects/create/routes.tsx index ce3d245d..214450a2 100644 --- a/packages/frontend/src/pages/projects/create/routes.tsx +++ b/packages/frontend/src/pages/projects/create/routes.tsx @@ -3,6 +3,7 @@ import React from 'react'; import NewProject from './index'; import CreateWithTemplate from './Template'; import { templateRoutes } from './template/routes'; +import Success from './Success'; export const createProjectRoutes = [ { @@ -14,4 +15,8 @@ export const createProjectRoutes = [ element: , children: templateRoutes, }, + { + path: 'success', + element: , + }, ];