Skip to content
Open
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
32 changes: 9 additions & 23 deletions src/components/sections/DevTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,9 @@ import network from '~/images/screenshots/view-network-requests.png'
import { LandingPageFragment } from '~/lib/basehub-queries'

const images = {
testSteps: {
type: 'image',
src: testSteps
},
console: {
type: 'mux-video',
src: '9ERwx5ymPqmmqMeRIhVqCvnhyy009017y00mtdvISQF6fI'
},
react: {
type: 'image',
src: react
},
network: {
type: 'image',
src: network
}
testSteps,
react,
network
}

export function DevTools({ devTools }: LandingPageFragment) {
Expand Down Expand Up @@ -124,15 +111,15 @@ export function DevTools({ devTools }: LandingPageFragment) {
{feature.type === 'image' ? (
<Image
className="w-full"
src={featureImage.src}
src={featureImage}
alt=""
priority
sizes="(min-width: 1024px) 67.8125rem, (min-width: 640px) 100vw, 45rem"
/>
) : (
<MuxPlayer
streamType="on-demand"
playbackId={featureImage.src as string}
playbackId={feature.video as string}
primaryColor="#FFFFFF"
secondaryColor="#000000"
muted={true}
Expand Down Expand Up @@ -181,19 +168,18 @@ export function DevTools({ devTools }: LandingPageFragment) {
</div>
</h3>
<p className={clsx('mb-8 mt-2 text-sm')}>{feature.subTitle}</p>
{featureImage.type === 'image' && (
{feature.type === 'image' ? (
<Image
className="w-full"
src={featureImage.src}
src={featureImage}
alt=""
priority
sizes="(min-width: 1024px) 67.8125rem, (min-width: 500px) 100vw, 30rem"
/>
)}
{featureImage.type === 'mux-video' && (
) : (
<MuxPlayer
streamType="on-demand"
playbackId={featureImage.src as string}
playbackId={feature.video as string}
primaryColor="#FFFFFF"
secondaryColor="#ff00ff"
muted={true}
Expand Down