Skip to content

Commit d41ce4d

Browse files
committed
add dependency tab
1 parent 3b8f1d1 commit d41ce4d

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

src/landing/ScriptSection.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,23 @@ const newTabs = [
6969
{
7070
title: 'Autogenerated UI',
7171
description:
72-
'Share your app with non-technical users without spending time building the UI. Its automatically generated from script parameters, and customizable.',
72+
'Share your app with non-technical users without spending time building the UI. It\'s automatically generated from script parameters, and customizable.',
7373
icon: FormInputIcon,
7474
caption:
7575
'Adding a new parameter to your script will automatically add a new field to the UI.',
7676
video: {
7777
videoSrc: '/videos/autogenerated-ui.mp4',
7878
videoLength: '26'
7979
}
80+
},
81+
{
82+
title: 'Automatic Dependency Management',
83+
description:
84+
'Windmill automatically infers your dependencies and generate lockfiles to guarantee reproducible execution. Dependencies are cached for instant executions.',
85+
icon: FormInputIcon,
86+
svg: '/images/script-dependency.svg',
87+
height: '600px',
88+
caption: 'Infer dependencies from your imports'
8089
}
8190
]
8291
},

src/landing/tabs/TabContent.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ export default function TabContent({ data, color }) {
4141
<img
4242
className="border-2 rounded-xl object-cover w-full h-full"
4343
src={data[selectedIndex].imageSrc}
44-
/>
44+
style={{ maxHeight: data[selectedIndex].height }}
45+
46+
/>
4547
);
4648
} else if (data[selectedIndex].svg) {
4749
return (
4850
<img
49-
className="border-2 p-2 bg-white rounded-xl object-cover w-full h-full"
51+
className="border-2 p-2 bg-white rounded-xl object-cover w-full mx-auto h-full"
5052
src={data[selectedIndex].svg}
53+
style={{ maxHeight: data[selectedIndex].height }}
5154
/>
5255
);
5356
} else {

0 commit comments

Comments
 (0)