feat: compressed link preview and svgs

updated link preview alt to be more descriptive, only show legend after canvas has loaded
This commit is contained in:
William Grant 2023-02-10 10:40:30 +11:00
parent 620c47a5e0
commit eec10e1683
6 changed files with 20 additions and 11815 deletions

View File

@ -79,7 +79,8 @@ const METADATA = {
URL: '/img/roadmap-preview.png', URL: '/img/roadmap-preview.png',
WIDTH: 1503, WIDTH: 1503,
HEIGHT: 755, HEIGHT: 755,
ALT: 'Progress tree preview', ALT:
'Blurred background of the Oxen roadmap with the words progress tree',
}, },
}, },
FAQ_PAGE: { FAQ_PAGE: {

View File

@ -109,14 +109,22 @@ export default function Roadmap() {
</div> </div>
)} )}
<RoadmapCanvas loaded={loaded} canScaleMore={!isMobile && !isTablet} /> <RoadmapCanvas loaded={loaded} canScaleMore={!isMobile && !isTablet} />
<div className="absolute right-5 bottom-8"> {loaded && (
<img <div
src={'/svgs/roadmap-key.svg'} className={classNames(
alt="Oxen Roadmap Legend" 'absolute right-4 bottom-4',
height={isMobile ? 180 : 242} 'desktop:right-6 desktop:bottom-6',
width={isMobile ? 150 : 200} )}
/> >
</div> {/* eslint-disable @next/next/no-img-element */}
<img
src={'/svgs/roadmap-key.svg'}
alt="Oxen Roadmap Legend"
height={isMobile ? 180 : 242}
width={isMobile ? 150 : 200}
/>
</div>
)}
</> </>
); );
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 12 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB