diff --git a/apps/warp-protocol-landing/src/animated-display/AnimatedDisplay.module.sass b/apps/warp-protocol-landing/src/animated-display/AnimatedDisplay.module.sass index 3828b07a..bff070ad 100644 --- a/apps/warp-protocol-landing/src/animated-display/AnimatedDisplay.module.sass +++ b/apps/warp-protocol-landing/src/animated-display/AnimatedDisplay.module.sass @@ -4,3 +4,8 @@ align-items: center // height: 100vh padding: 50px + + +@media (max-width: 768px) + .container + padding: 20px diff --git a/apps/warp-protocol-landing/src/animated-display/AnimatedText.module.sass b/apps/warp-protocol-landing/src/animated-display/AnimatedText.module.sass index d3426f2d..5c6fde70 100644 --- a/apps/warp-protocol-landing/src/animated-display/AnimatedText.module.sass +++ b/apps/warp-protocol-landing/src/animated-display/AnimatedText.module.sass @@ -29,3 +29,18 @@ opacity: 1 100% opacity: 0 + +@media (max-width: 768px) + .container + width: 100% + height: 100% + + .label + font-size: 16px + + .heading + font-size: 20px + margin: 20px 0 + + .text + font-size: 14px diff --git a/apps/warp-protocol-landing/src/animated-display/WaveSlider.module.sass b/apps/warp-protocol-landing/src/animated-display/WaveSlider.module.sass index be2d4b62..81406045 100644 --- a/apps/warp-protocol-landing/src/animated-display/WaveSlider.module.sass +++ b/apps/warp-protocol-landing/src/animated-display/WaveSlider.module.sass @@ -19,3 +19,10 @@ height: 20px width: 24px transition: left 0.5s ease-in-out + +.disabled + opacity: 0.6 + +@media (max-width: 768px) + .tick + height: 120px diff --git a/apps/warp-protocol-landing/src/animated-display/WaveSlider.tsx b/apps/warp-protocol-landing/src/animated-display/WaveSlider.tsx index e48d3959..b12f87b3 100644 --- a/apps/warp-protocol-landing/src/animated-display/WaveSlider.tsx +++ b/apps/warp-protocol-landing/src/animated-display/WaveSlider.tsx @@ -19,7 +19,7 @@ const WaveSlider: React.FC = ({ currentTick, setCurrentTick }) => { key={idx} className={`${styles.tick} ${ idx === currentTick ? styles.active : '' - }`} + } ${idx > 2 ? styles.disabled : ''}`} > ))} diff --git a/apps/warp-protocol-landing/src/card-stack/CardStack.module.sass b/apps/warp-protocol-landing/src/card-stack/CardStack.module.sass index 03b00b7a..35fcfe22 100644 --- a/apps/warp-protocol-landing/src/card-stack/CardStack.module.sass +++ b/apps/warp-protocol-landing/src/card-stack/CardStack.module.sass @@ -1,9 +1,10 @@ .card-stack position: relative - width: 653px - height: 250px + width: 100% + height: 100% .card + width: 100% position: absolute z-index: 1 transform-origin: center bottom diff --git a/apps/warp-protocol-landing/src/card-stack/CardStack.tsx b/apps/warp-protocol-landing/src/card-stack/CardStack.tsx index 4a732444..4ab18a08 100644 --- a/apps/warp-protocol-landing/src/card-stack/CardStack.tsx +++ b/apps/warp-protocol-landing/src/card-stack/CardStack.tsx @@ -94,10 +94,11 @@ const CardStack: React.FC = (props) => { {/* Thirdmost card */} -
- +
+
); diff --git a/apps/warp-protocol-landing/src/frame/Frame.module.sass b/apps/warp-protocol-landing/src/frame/Frame.module.sass index cb3ce1d4..fb2e2560 100644 --- a/apps/warp-protocol-landing/src/frame/Frame.module.sass +++ b/apps/warp-protocol-landing/src/frame/Frame.module.sass @@ -6,7 +6,7 @@ flex-direction: column gap: 37px padding: 28px - width: 653px + width: 100% .flexRow display: flex @@ -77,4 +77,13 @@ // height: 14px // width: 14px +@media (max-width: 768px) + .textLarge + font-size: 20px + + .frame + gap: 24px + padding: 20px + .text + font-size: 14px diff --git a/apps/warp-protocol-landing/src/pages/home/Home.module.sass b/apps/warp-protocol-landing/src/pages/home/Home.module.sass index 492342d4..f2eea445 100644 --- a/apps/warp-protocol-landing/src/pages/home/Home.module.sass +++ b/apps/warp-protocol-landing/src/pages/home/Home.module.sass @@ -48,10 +48,41 @@ .card_stack margin: 72px auto + width: 653px !important + height: 250px !important .bold color: var(--text-color-primary) - .animated_display - margin: 200px 240px \ No newline at end of file + margin: 200px 240px + +@media (max-width: 768px) + .cards + margin-top: 140px + + .title + width: 100% + font-size: 32px !important + line-height: 40px !important + justify-content: center + + .description_top + width: 100% !important + padding: 0 20px !important + font-size: 14px !important + + .description_below + width: 100% !important + padding: 0 20px !important + font-size: 14px !important + + .card_stack + margin: 72px auto + width: 80% !important + height: 200px !important + + .animated_display + height: 400px + flex-direction: column + margin: 120px 20px !important diff --git a/apps/warp-protocol-landing/src/pages/home/features/MobileFeatures.module.sass b/apps/warp-protocol-landing/src/pages/home/features/MobileFeatures.module.sass index 1e6ad844..2135fadb 100644 --- a/apps/warp-protocol-landing/src/pages/home/features/MobileFeatures.module.sass +++ b/apps/warp-protocol-landing/src/pages/home/features/MobileFeatures.module.sass @@ -1,24 +1,23 @@ .root - // position: relative display: flex - height: auto flex-direction: column - justify-content: center - align-items: flex-start - padding-top: 100px - -.watch - margin-bottom: 32px + padding: 20px + width: 100% + align-items: center .feature background: rgba(47, 51, 57, 0.6) backdrop-filter: blur(50px) border-radius: 16px padding: 20px - width: 300px + width: 100% cursor: pointer + position: relative + transition: height 0.3s ease-out, padding 0.3s ease-in-out + overflow: hidden + height: 70px - &:not(&:last-child) + &:not(&:first-child) margin-top: 16px > .description @@ -32,41 +31,90 @@ margin-bottom: 8px .selected_feature + height: 160px background: #D1E3FB > .description color: #292C2E !important > .heading - color: #292C2E !important + color: rgba(41, 44, 46, 0.40) !important -.nav - margin-left: 32px + > .toggle + background: #B4C6DD + + .chevron + transform: rotate(180deg) + + path + fill: #292C2E !important .footer - margin-top: 40px - width: 300px + color: #292C2E + margin-top: 12px > .label margin-bottom: 8px > .description line-height: 20px - height: 100px display: flex flex-direction: column align-items: flex-end .slide - height: auto - margin-top: 20px - width: 600px - margin-left: 16px + height: 100% + width: 925px z-index: 1 !important .big_background position: absolute z-index: -1 top: 380px - height: 600px + height: 1000px left: 35% + +.toggle + height: 32px + width: 32px + position: absolute + right: 20px + top: 14px + display: flex + padding: 20px 32px + justify-content: center + align-items: center + border-radius: 72px + background: #40454D + + .chevron + width: 20px !important + height: 20px !important + + path + fill: #DFE2E1 !important + +.title + display: flex + font-weight: 600 + text-align: center + font-size: 28px + color: #DFE2E1 + +.description_title + font-size: 14px + margin-top: 32px + margin-bottom: 32px + width: 100% + text-align: center + color: rgba(223, 226, 225, 0.40) + +.bold + color: var(--text-color-primary) + +.sdk_link + color: rgba(41, 44, 46, 0.40) !important + +@media (max-width: 768px) + .slide + z-index: 0 !important diff --git a/apps/warp-protocol-landing/src/pages/home/features/MobileFeatures.tsx b/apps/warp-protocol-landing/src/pages/home/features/MobileFeatures.tsx index f7567361..6f9b0f68 100644 --- a/apps/warp-protocol-landing/src/pages/home/features/MobileFeatures.tsx +++ b/apps/warp-protocol-landing/src/pages/home/features/MobileFeatures.tsx @@ -3,6 +3,7 @@ import classNames from 'classnames'; import { UIElementProps } from '@terra-money/apps/components'; import React, { forwardRef, useState } from 'react'; import styles from './MobileFeatures.module.sass'; +import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import { Link } from '../../../link'; type Feature = { @@ -51,6 +52,7 @@ const features: Feature[] = [ a few minutes. { window.open('https://github.com/terra-money/warp-sdk'); }} @@ -67,49 +69,50 @@ type MobileFeaturesContentProps = UIElementProps & {}; export const MobileFeaturesContent = forwardRef( (props: MobileFeaturesContentProps, ref: React.Ref) => { const { className } = props; - const [selectedFeature, setSelectedFeature] = useState( - features[0] + const [expandedFeatureId, setExpandedFeatureId] = useState( + 0 ); + const isExpanded = (id: number) => id === expandedFeatureId; + return (
- -
- - Features to watch - - {features.map((feature) => ( -
setSelectedFeature(feature)} - > - - {feature.heading} - - - {feature.description} - +
Generic way of composing logic
+
+ Using Warp, developers (and their users) can queue{' '} + + any transaction to be executed automatically in the future + {' '} + based on any available on-chain data. +
+ {features.map((feature) => ( +
+ setExpandedFeatureId(isExpanded(feature.id) ? null : feature.id) + } + > +
+
- ))} -
- - {selectedFeature.description} + + + {feature.heading} - - {selectedFeature.footer} + + {feature.description} + {isExpanded(feature.id) && ( + + {feature.footer} + + )}
-
-
- -
+ ))}
); } diff --git a/apps/warp-protocol-landing/src/pages/home/top-content/TopContent.module.sass b/apps/warp-protocol-landing/src/pages/home/top-content/TopContent.module.sass index ce3e0309..a978b5d4 100644 --- a/apps/warp-protocol-landing/src/pages/home/top-content/TopContent.module.sass +++ b/apps/warp-protocol-landing/src/pages/home/top-content/TopContent.module.sass @@ -47,31 +47,32 @@ .frames margin: auto - width: 1400px + width: 100% + height: 500px position: relative margin-top: 200px + padding: 0 200px display: flex align-items: center justify-content: center .frame1 - margin-left: -100px z-index: 1 - height: 400px - width: 532px + height: 80% + width: 40% margin-right: auto .frame2 - margin-right: -100px z-index: 1 - height: 400px - width: 532px + height: 80% + width: 40% .frame3 + margin: auto position: absolute z-index: 2 - height: 500px - width: 665px + height: 100% + width: 40% @media (max-width: 768px) .title @@ -81,3 +82,23 @@ .description width: 100% + font-size: 14px !important + + .big_background + position: absolute + z-index: -1 + top: -177.33px + right: -140px + height: 400px + + .frames + width: 100% + padding: 0 !important + height: 200px + margin-top: 140px + + > * + width: 60% + + .left + margin-left: 20px