diff --git a/app/web/config/tailwind.config.js b/app/web/config/tailwind.config.js
index 7031fa3..90382d8 100644
--- a/app/web/config/tailwind.config.js
+++ b/app/web/config/tailwind.config.js
@@ -22,6 +22,7 @@ module.exports = {
800: '#1A1A1D',
750: '#222222',
760: '#232532',
+ 710: '#2B303C', // TODO: Use HSL so I stop adding grays to fix the warm/cool problem
700: '#2A3038',
600: '#3B3E4B',
550: '#63636A',
diff --git a/app/web/src/components/IdeHeader/IdeHeader.tsx b/app/web/src/components/IdeHeader/IdeHeader.tsx
index 43ac8f3..b9a34ca 100644
--- a/app/web/src/components/IdeHeader/IdeHeader.tsx
+++ b/app/web/src/components/IdeHeader/IdeHeader.tsx
@@ -11,6 +11,7 @@ import ProfileSlashLogin from 'src/components/ProfileSlashLogin'
import Gravatar from 'src/components/Gravatar/Gravatar'
import EditableProjectTitle from 'src/components/EditableProjecTitle/EditableProjecTitle'
import CaptureButton from 'src/components/CaptureButton/CaptureButton'
+import { ReactNode } from 'react'
const TopButton = ({
onClick,
@@ -44,6 +45,7 @@ interface IdeHeaderProps {
projectOwnerId?: string
projectOwnerImage?: string
projectId?: string
+ children?: ReactNode
}
const IdeHeader = ({
@@ -53,6 +55,7 @@ const IdeHeader = ({
projectOwnerImage,
projectId,
projectOwnerId,
+ children,
}: IdeHeaderProps) => {
const { currentUser } = useAuth()
const { project } = useIdeContext()
@@ -92,87 +95,16 @@ const IdeHeader = ({
)}
- {canEdit && !projectTitle && (
-
(
-
-
-
- )}
/>
- )}
- {!projectTitle && (
-
-
-
- )}
- {projectTitle && (
-
- navigate(routes.ide({ userName: _projectOwner, projectTitle }))
- }
- name="Editor"
- >
-
-
- )}
-
-
- {({ open }) => {
- return (
- <>
-
-
-
-
-
- {open && (
-
-
-
-
-
-
-
-
-
-
- encoded script
- external script
-
-
-
- )}
- >
- )
- }}
-
+ : children
+ }
{/* Fork */}
@@ -184,3 +116,89 @@ const IdeHeader = ({
}
export default IdeHeader
+
+
+function DefaultTopButtons({ project, projectTitle, _projectOwner, handleRender, canEdit }) {
+ return (<>
+ {canEdit && !projectTitle && (
+
(
+
+
+
+ )}
+ />
+ )}
+ {!projectTitle && (
+
+
+
+ )}
+ {projectTitle && (
+
+ navigate(routes.ide({ userName: _projectOwner, projectTitle }))
+ }
+ name="Editor"
+ >
+
+
+ )}
+
+ {({ open }) => {
+ return (
+ <>
+
+
+
+
+
+ {open && (
+
+
+
+
+
+
+
+
+
+
+ encoded script
+ external script
+
+
+
+ )}
+ >
+ )
+ }}
+
+ >)
+}
\ No newline at end of file
diff --git a/app/web/src/components/ImageUploader/ImageUploader.js b/app/web/src/components/ImageUploader/ImageUploader.js
index aa757cd..a121d80 100644
--- a/app/web/src/components/ImageUploader/ImageUploader.js
+++ b/app/web/src/components/ImageUploader/ImageUploader.js
@@ -11,13 +11,13 @@ import Svg from 'src/components/Svg'
const CLOUDINARY_UPLOAD_PRESET = 'CadHub_project_images'
const CLOUDINARY_UPLOAD_URL = 'https://api.cloudinary.com/v1_1/irevdev/upload'
-export function ImageFallback({ width = 100, cloudinaryId = 'CadHub/eia1kwru54g2kf02s2xx', className = '' }) {
+export function ImageFallback({ width = 100, imageId = 'CadHub/eia1kwru54g2kf02s2xx', className = '' }) {
return (
@@ -78,20 +78,19 @@ export default function ImageUploader({
}
style={{ paddingBottom: `${(1 / aspectRatio) * 100}%` }}
>
-
+
{cloudinaryId && isEditable && (
-