Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion content/pages/home.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ blocks:
_template: actions
- label: $ npx create-tina-app
_template: codeButton
media: /uploads/TinaDocs Design System.png
media: /uploads/TinaDoc UI Foreground.png
mediaBackground: /uploads/TinaDoc IDE Background.png
informationBlock1:
title: 'Visual Editing '
desc: >
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@
"tw-animate-css": "^1.3.5",
"usehooks-ts": "^3.1.1"
}
}

}
Binary file added public/uploads/TinaDoc IDE Background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/uploads/TinaDoc UI Foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/components/blocks/Hero/Hero.template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ export const HeroBlockSchema: Template = {
type: "image",
label: "Media",
},
{
name: "mediaBackground",
type: "image",
label: "Media Background",
},
{
name: "informationBlock1",
type: "object",
Expand Down
32 changes: 24 additions & 8 deletions src/components/blocks/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default function Hero({ data }: { data?: PageBlocksHero }) {
{/* Boxes underneath */}
<motion.div
style={{ x: boxesX, y: boxesY, opacity: boxesOpacity }}
className="absolute left-1/2 -translate-x-1/2 flex flex-col gap-4 z-0"
className="absolute left-1/2 -translate-x-1/2 flex flex-col gap-12 z-0"
>
<InformationBlock
title={data?.informationBlock1?.title || "Undefined Title"}
Expand All @@ -224,13 +224,29 @@ export default function Hero({ data }: { data?: PageBlocksHero }) {
className="mt-16 flex justify-center relative z-10"
style={{ y, x, scale }}
>
<Image
src={data.media}
alt={data.title || ""}
width={1000}
height={1000}
className="border-10 border-[#252934] rounded-lg shadow-xl"
/>
<div className="relative inline-block">
{/* Main image - top layer (base position) */}
<Image
src={data.media}
alt={data.title || ""}
width={2400}
height={1350}
quality={100}
className="border-[0.5px] border-[#252934] rounded-lg shadow-[#182449] shadow-md relative w-3xl left-24 z-10"
/>

{/* Background image - bottom layer, positioned down and to the left */}
{data?.mediaBackground && (
<Image
src={data.mediaBackground || ""}
alt={data.title || ""}
width={2400}
height={1350}
quality={100}
className="absolute top-20 -left-24 border-[0.5px] border-[#252934] rounded-lg shadow-[#182449] shadow-md z-0"
/>
)}
</div>
</motion.div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion tina/tina-lock.json

Large diffs are not rendered by default.