diff --git a/app/web/src/components/Hero/Hero.tsx b/app/web/src/components/Hero/Hero.tsx index 97fdc3a..1e3853c 100644 --- a/app/web/src/components/Hero/Hero.tsx +++ b/app/web/src/components/Hero/Hero.tsx @@ -13,7 +13,9 @@ import ProjectsCell from 'src/components/ProjectsCell' import OutBound from 'src/components/OutBound/OutBound' // dynamic import to enable pre-render iof the homepage -const AssetWithGooey = React.lazy(() => import('src/components/Hero/AssetWithGooey')) +const AssetWithGooey = React.lazy( + () => import('src/components/Hero/AssetWithGooey') +) const cqCode = `from cadquery import * d1 = 58.5 @@ -79,36 +81,59 @@ export const Hero = () => { return (
- + - - + +
- -
+
-              {cqCode.map((line, index) => 
{index+1}{line}
)} + {cqCode.map((line, index) => ( +
+ + {index + 1} + + {line} +
+ ))}
- - -
-
+
-
+
{
- -
+
-              {scadCode.map((line, index) => 
{index+1}{line}
)} + {scadCode.map((line, index) => ( +
+ + {index + 1} + + {line} +
+ ))}
-
@@ -193,14 +226,20 @@ export const Hero = () => {
-
+
-
+
-
+
<%= prerenderPlaceholder %>
diff --git a/app/web/src/layouts/MainLayout/Logo_2.jpg b/app/web/src/layouts/MainLayout/Logo_2.jpg deleted file mode 100644 index 47edfa3..0000000 Binary files a/app/web/src/layouts/MainLayout/Logo_2.jpg and /dev/null differ diff --git a/app/web/src/layouts/MainLayout/MainLayout.css b/app/web/src/layouts/MainLayout/MainLayout.css new file mode 100644 index 0000000..a599de1 --- /dev/null +++ b/app/web/src/layouts/MainLayout/MainLayout.css @@ -0,0 +1,3 @@ +.preserve-3d-for-children * { + transform-style: preserve-3d; +} diff --git a/app/web/src/layouts/MainLayout/MainLayout.js b/app/web/src/layouts/MainLayout/MainLayout.js index b56cfc8..a44b427 100644 --- a/app/web/src/layouts/MainLayout/MainLayout.js +++ b/app/web/src/layouts/MainLayout/MainLayout.js @@ -15,6 +15,7 @@ import { isBrowser } from '@redwoodjs/prerender/browserUtils' import Svg from 'src/components/Svg' import { ImageFallback } from 'src/components/ImageUploader' import useUser from 'src/helpers/hooks/useUser' +import './MainLayout.css' let previousSubmission = '' @@ -69,7 +70,10 @@ const MainLayout = ({ children, shouldRemoveFooterInIde }) => { } }, [hash, client]) return ( -
+