diff --git a/remix/app/Providers/Chakra/space.tsx b/remix/app/Providers/Chakra/space.tsx
index c74e26f..f9f4b34 100644
--- a/remix/app/Providers/Chakra/space.tsx
+++ b/remix/app/Providers/Chakra/space.tsx
@@ -5,6 +5,7 @@ const end = 9999;
for (let i = start; i <= end; i++) {
spaceObj[i] = `${i * 0.25}rem`;
+ // spaceObj[i] = `${i}px`;
}
spaceObj['container'] = '700px';
diff --git a/remix/app/components/Branding/Branding.tsx b/remix/app/components/Branding/Branding.tsx
index 46795b0..eeb6b83 100644
--- a/remix/app/components/Branding/Branding.tsx
+++ b/remix/app/components/Branding/Branding.tsx
@@ -5,6 +5,7 @@ export const Branding = () => {
return (
Branding
+ ello
);
diff --git a/remix/app/components/Branding/Logo.tsx b/remix/app/components/Branding/Logo.tsx
index b6251fb..53f44de 100644
--- a/remix/app/components/Branding/Logo.tsx
+++ b/remix/app/components/Branding/Logo.tsx
@@ -1,7 +1,7 @@
-import { Box, Center, Flex, Slider, SliderFilledTrack, SliderThumb, SliderTrack } from '@chakra-ui/react';
+import { Box, Center, Flex, Heading, Slider, SliderFilledTrack, SliderThumb, SliderTrack } from '@chakra-ui/react';
import React, { useMemo, useState } from 'react';
-export const Logo = () => {
+export const Logo = (props) => {
// a completely dynamic and interactive logo
// uses borders, border radius, and colour themes to create a simple timeless beautiful logo
@@ -16,16 +16,16 @@ export const Logo = () => {
const [squares, setSquares] = useState(9);
- const [width, setWidth] = useState(250);
-
- const [height, setHeight] = useState(250);
+ const [width, setWidth] = useState(props?.width || 300);
// logo is a T/plus shape made of two intersecting squares
// you can toggle border sides on both squares to create different shapes
const [borderWidth, setBorderWidth] = useState(18);
- const [borderRadius, setBorderRadius] = useState(12);
+ const [borderRadius, setBorderRadius] = useState(0);
+
+ const [padding, setPadding] = useState(0);
const squaresArray = Array.from({ length: squares }, (_, index) => index);
@@ -38,48 +38,56 @@ export const Logo = () => {
const [divisions, setDivisions] = useState(3);
- const [divisionHeight, setDivisionHeight] = useState(100 / divisions);
-
- const [divisionWidth, setDivisionWidth] = useState(100 / divisions);
+ const [boxWidth, setBoxWidth] = useState(100 / divisions + '%');
const uuid = useMemo(() => {
return Math.random().toString(36).substring(2) + Date.now().toString(36);
}, []);
+ const boxStyles = {
+ padding: `${padding}px`
+ };
+
+ const innerBox = ;
+
+ const Square = (props: any = {}) => (
+
+ {innerBox}
+
+ );
+
return (
<>
{/* these are the controls */}
{/* border radius use chakra slider */}
-
-
+
+
+ Logo Controls
+
+
+ Border Radius
+
+
🟡
-
-
- {squaresArray.map((_, idx) => {
- // technically not even in programming terms cause it starts at 0 😂
+
+ Padding
+
+
+
+
+
+ 🟡
+
+
+
+ {squaresArray.map((_, index) => {
+ const odd = index % 2 === 0;
- const humanIdx = idx + 1;
-
- const even = humanIdx % 2 === 0;
-
- const colourIndex = Math.round(idx / 2);
-
- // log the colourIndex
- console.debug('tt.colourIndex', colourIndex);
-
- return (
-
- );
+ ;
})}
>