Merge pull request #211 from puremana/fix-svg-across-res

Fix svg waves across resolutions
This commit is contained in:
Jean-Philippe Sirois
2020-01-25 11:45:29 -05:00
committed by GitHub
3 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const waves = css`
export const StyledWavesTop = styled(WavesTop)` export const StyledWavesTop = styled(WavesTop)`
${waves}; ${waves};
top: 0; top: 0;
left: 0; height: 87vh;
` `
export const StyledWavesBottom = styled(WavesBottom)` export const StyledWavesBottom = styled(WavesBottom)`
+1 -6
View File
@@ -1,4 +1,4 @@
<svg fill="none" viewBox="0 0 1825 862" preserveAspectRatio="xMaxYmax slice"> <svg fill="none" viewBox="0 0 1825 862" preserveAspectRatio="xMaxYMax slice">
<mask id="#bot_mask" width="1825" height="862" x="0" y="0" maskUnits="userSpaceOnUse"> <mask id="#bot_mask" width="1825" height="862" x="0" y="0" maskUnits="userSpaceOnUse">
<path fill="#C4C4C4" d="M0 0h1825v862H0z"/> <path fill="#C4C4C4" d="M0 0h1825v862H0z"/>
</mask> </mask>
@@ -30,10 +30,5 @@
<stop offset=".51" stop-color="#FF70A5"/> <stop offset=".51" stop-color="#FF70A5"/>
<stop offset="1" stop-color="#FEAF6D"/> <stop offset="1" stop-color="#FEAF6D"/>
</linearGradient> </linearGradient>
<linearGradient id="bot_gradient5" x1="1822.96" x2="1382.5" y1="1171.81" y2="-194.38" gradientUnits="userSpaceOnUse">
<stop stop-color="#9423FC"/>
<stop offset=".51" stop-color="#FF70A5"/>
<stop offset="1" stop-color="#FEAF6D"/>
</linearGradient>
</defs> </defs>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

+1 -1
View File
@@ -1,4 +1,4 @@
<svg fill="none" viewBox="0 0 1825 859" width="1825" height="859" preserveAspectRatio="xMinYMin meet"> <svg fill="none" viewBox="0 0 1825 859" width="1825" height="859" preserveAspectRatio="xMaxYMin meet">
<mask id="top_mask" width="1825" height="859" x="0" y="0" maskUnits="userSpaceOnUse"> <mask id="top_mask" width="1825" height="859" x="0" y="0" maskUnits="userSpaceOnUse">
<path fill="#C4C4C4" d="M0 0h1825v859H0z"/> <path fill="#C4C4C4" d="M0 0h1825v859H0z"/>
</mask> </mask>

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB