Skip to content

The open alternative to Salesforce, designed for AI.

feat(website): spotlight visual on top and uniform tile background (#21906)

Abdullah.a99d38017502
diff --git a/packages/twenty-website/src/sections/product-feature/ProductFeature.tsx b/packages/twenty-website/src/sections/product-feature/ProductFeature.tsx
index 398b8caaee6..550ef3b623d 100644
--- a/packages/twenty-website/src/sections/product-feature/ProductFeature.tsx
+++ b/packages/twenty-website/src/sections/product-feature/ProductFeature.tsx
@@ -16,9 +16,6 @@ import { ScrollEntrance } from './ScrollEntrance';
import { TileContent } from './TileContent';
import { TileVisual } from './TileVisual';
-/* Block flow, not grid: a grid would blockify the inline-flex eyebrow
- and stretch it off-center. text-align centers every child as one
- mechanism. */
const IntroMeasure = styled.div`
margin-inline: auto;
max-width: 688px;
@@ -29,11 +26,6 @@ const IntroMeasure = styled.div`
}
`;
-// The bento's authored column ratios (60/40 alternating across rows) and the
-// muted-surface depth pattern, indexed by tile (spotlight first).
-const CARD_SPANS = [60, 40, 40, 60, 60, 40];
-const TILE_MUTED = [true, false, true, true, false, false, true];
-
const Grid = styled.div`
border: 1px solid ${color('black-20')};
border-radius: ${radius(2)};
@@ -47,30 +39,24 @@ const Grid = styled.div`
`;
const SpotlightCell = styled.div`
+ background-color: ${color('neutral')};
border-bottom: 1px solid ${color('black-20')};
display: flex;
flex-direction: column;
min-width: 0;
- &[data-muted] {
- background-color: ${color('neutral')};
- }
-
${mediaUp('md')} {
grid-column: span 100;
}
`;
const GridCell = styled.div`
+ background-color: ${color('neutral')};
border-bottom: 1px solid ${color('black-20')};
display: flex;
flex-direction: column;
min-width: 0;
- &[data-muted] {
- background-color: ${color('neutral')};
- }
-
${mediaUp('md')} {
&[data-span='40'] {
grid-column: span 40;
@@ -135,6 +121,8 @@ const CardVisualFrame = styled.div`
}
`;
+const CARD_SPANS = [60, 40, 40, 60, 60, 40];
+
function padCounter(value: number): string {
return String(value).padStart(2, '0');
}
@@ -157,18 +145,15 @@ function Tiles({ tiles }: { tiles: FeatureTile[] }) {
if (tileNumber === 0) {
return (
- <SpotlightCell
- key={tileNumber}
- data-muted={TILE_MUTED[tileNumber] ? '' : undefined}
- >
+ <SpotlightCell key={tileNumber}>
<ScrollEntrance>
<SpotlightInner>
- <SpotlightContent>
- <TileContent counter={counter} spotlight tile={tile} />
- </SpotlightContent>
<SpotlightVisual>
<TileVisual visualKey={tile.visual} />
</SpotlightVisual>
+ <SpotlightContent>
+ <TileContent counter={counter} spotlight tile={tile} />
+ </SpotlightContent>
</SpotlightInner>
</ScrollEntrance>
</SpotlightCell>
@@ -176,11 +161,7 @@ function Tiles({ tiles }: { tiles: FeatureTile[] }) {
}
return (
- <GridCell
- key={tileNumber}
- data-muted={TILE_MUTED[tileNumber] ? '' : undefined}
- data-span={CARD_SPANS[tileNumber - 1]}
- >
+ <GridCell key={tileNumber} data-span={CARD_SPANS[tileNumber - 1]}>
<ScrollEntrance>
<CardInner>
<CardVisualFrame>