);
};
diff --git a/packages/frontend/src/index.css b/packages/frontend/src/index.css
index 60291de7..502904a5 100644
--- a/packages/frontend/src/index.css
+++ b/packages/frontend/src/index.css
@@ -153,12 +153,4 @@
.focus-ring {
@apply focus-visible:ring-[3px] focus-visible:ring-snowball-200 focus-visible:ring-offset-1 focus-visible:ring-offset-snowball-500 focus-visible:outline-none;
}
-
- .wave {
- background-image: url('../public/wave-border.svg');
- background-repeat: repeat-x;
- background-position: top;
- background-size: cover;
- @apply w-full h-1;
- }
}
diff --git a/packages/frontend/src/pages/OrgSlug.tsx b/packages/frontend/src/pages/OrgSlug.tsx
deleted file mode 100644
index 834bb15d..00000000
--- a/packages/frontend/src/pages/OrgSlug.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import React from 'react';
-import { Outlet } from 'react-router-dom';
-
-import { OctokitProvider } from 'context/OctokitContext';
-import { Sidebar } from 'components/shared/Sidebar';
-
-const OrgSlug = () => {
- return (
-
- );
-};
-
-export default OrgSlug;
diff --git a/packages/frontend/src/pages/org-slug/layout.tsx b/packages/frontend/src/pages/org-slug/layout.tsx
new file mode 100644
index 00000000..c1be6b8c
--- /dev/null
+++ b/packages/frontend/src/pages/org-slug/layout.tsx
@@ -0,0 +1,31 @@
+import { Sidebar } from 'components/shared/Sidebar';
+import { OctokitProvider } from 'context/OctokitContext';
+import React, { ComponentPropsWithoutRef } from 'react';
+import { Outlet } from 'react-router-dom';
+import { cn } from 'utils/classnames';
+
+export interface DashboardLayoutProps
+ extends ComponentPropsWithoutRef<'section'> {}
+
+export const DashboardLayout = ({
+ className,
+ children,
+ ...props
+}: DashboardLayoutProps) => {
+ return (
+
+ );
+};
diff --git a/packages/frontend/src/pages/org-slug/projects/Create.tsx b/packages/frontend/src/pages/org-slug/projects/Create.tsx
deleted file mode 100644
index 2f12b981..00000000
--- a/packages/frontend/src/pages/org-slug/projects/Create.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import React from 'react';
-import { Outlet, Link, useParams } from 'react-router-dom';
-
-import { IconButton } from '@material-tailwind/react';
-
-import HorizontalLine from '../../../components/HorizontalLine';
-
-const CreateProject = () => {
- const { orgSlug } = useParams();
- return (
-
- );
-};
-
-export default CreateProject;
diff --git a/packages/frontend/src/pages/org-slug/projects/create/index.tsx b/packages/frontend/src/pages/org-slug/projects/create/index.tsx
index 6d2598f4..1c86ee3b 100644
--- a/packages/frontend/src/pages/org-slug/projects/create/index.tsx
+++ b/packages/frontend/src/pages/org-slug/projects/create/index.tsx
@@ -1,29 +1,36 @@
import React from 'react';
-import templates from '../../../../assets/templates';
-import TemplateCard from '../../../../components/projects/create/TemplateCard';
-import RepositoryList from '../../../../components/projects/create/RepositoryList';
-import ConnectAccount from '../../../../components/projects/create/ConnectAccount';
-import { useOctokit } from '../../../../context/OctokitContext';
+import templates from 'assets/templates';
+import RepositoryList from 'components/projects/create/RepositoryList';
+import ConnectAccount from 'components/projects/create/ConnectAccount';
+import { useOctokit } from 'context/OctokitContext';
+import { Heading } from 'components/shared/Heading';
+import { TemplateCard } from 'components/projects/create/TemplateCard';
const NewProject = () => {
const { octokit, updateAuth, isAuth } = useOctokit();
return isAuth ? (
<>
-
- {templates.map((template) => {
- return (
-
- );
- })}
+
+
+ Start with template
+
+
+ {templates.map((template) => {
+ return (
+
+ );
+ })}
+
-
Import a repository
+
+ Import a repository
+
>
) : (
diff --git a/packages/frontend/src/pages/org-slug/projects/create/layout.tsx b/packages/frontend/src/pages/org-slug/projects/create/layout.tsx
new file mode 100644
index 00000000..3dad337a
--- /dev/null
+++ b/packages/frontend/src/pages/org-slug/projects/create/layout.tsx
@@ -0,0 +1,39 @@
+import React, { ComponentPropsWithoutRef } from 'react';
+import { Link, Outlet, useParams } from 'react-router-dom';
+
+import { Heading } from 'components/shared/Heading';
+import { WavyBorder } from 'components/shared/WavyBorder';
+import { Button } from 'components/shared/Button';
+import { CrossIcon } from 'components/shared/CustomIcon';
+import { cn } from 'utils/classnames';
+
+export interface CreateProjectLayoutProps
+ extends ComponentPropsWithoutRef<'section'> {}
+
+export const CreateProjectLayout = ({
+ className,
+ ...props
+}: CreateProjectLayoutProps) => {
+ const { orgSlug } = useParams();
+
+ return (
+
+
+
+
+ Create new project
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/packages/frontend/src/pages/org-slug/projects/routes.tsx b/packages/frontend/src/pages/org-slug/projects/routes.tsx
index 993e22b3..e4dd5756 100644
--- a/packages/frontend/src/pages/org-slug/projects/routes.tsx
+++ b/packages/frontend/src/pages/org-slug/projects/routes.tsx
@@ -1,16 +1,16 @@
import React from 'react';
-import CreateProject from './Create';
import Id from './Id';
import AddDomain from './id/settings/domains/add';
import { createProjectRoutes } from './create/routes';
import { projectTabRoutes } from './id/routes';
import { addDomainRoutes } from './id/settings/domains/add/routes';
+import { CreateProjectLayout } from './create/layout';
export const projectsRoutesWithoutSearch = [
{
path: 'create',
- element:
,
+ element:
,
children: createProjectRoutes,
},
{
diff --git a/packages/frontend/tailwind.config.js b/packages/frontend/tailwind.config.js
index 3b39ddf5..c362e898 100644
--- a/packages/frontend/tailwind.config.js
+++ b/packages/frontend/tailwind.config.js
@@ -152,12 +152,13 @@ export default withMT({
},
boxShadow: {
button:
- 'inset 0px 0px 4px rgba(255, 255, 255, 0.25), inset 0px -2px 0px rgba(0, 0, 0, 0.04)',
+ '0px -2px 0px 0px rgba(0, 0, 0, 0.04) inset, 0px 0px 4px 0px rgba(255, 255, 255, 0.25) inset',
dropdown:
'0px 3px 20px rgba(8, 47, 86, 0.1), 0px 0px 4px rgba(8, 47, 86, 0.14)',
field: '0px 1px 2px rgba(0, 0, 0, 0.04)',
inset: 'inset 0px 1px 0px rgba(8, 47, 86, 0.06)',
card: '0px 0px 0px 1px #E8F0F7, 0px 2px 4px rgba(8, 47, 86, 0.04)',
+ 'card-sm': '0px 1px 2px -1px rgba(4, 25, 47, 0.08)',
},
spacing: {
2.5: '0.625rem',