Skip to content

Commit

Permalink
Merge pull request #433 from aimementoring/feat/imagine-updates
Browse files Browse the repository at this point in the history
Imagine page updates
  • Loading branch information
lulen11 authored May 8, 2020
2 parents f5f61c9 + 7612607 commit 63b47ae
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 497 deletions.
159 changes: 44 additions & 115 deletions pages/imagine/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import WavyDonateSection from '../../components/wavyDonateSection';
import TypeformModal from '../../components/typeformModal';
import IntercomChat from '../../components/intercom';
import scrollToComponent from '../../utils/scrollToComponent';
import useDonate from '../../hooks/useDonate';

import styles from './style.scss';

const DoubleCurvedLine = dynamic(() => import('../../components/imaginationTv/doubleCurvedLine'));
Expand All @@ -23,11 +25,11 @@ const ImagiNationTV = (props) => {
const [showModal, setModal] = useState(false);
const toggleModal = () => setModal(!showModal);
const scrollToPanel = () => scrollToComponent(scrollToThisRef);
const { scrollHandler } = props;
const [modalVisible, toggleDonateModal] = useDonate();

return (
<Layout>
<div className={styles.heroBannerImagiTV}>
<div className={styles.heroBannerImagine}>
<div className={styles.bannerWrapper}>
<div className={`${styles.bannerContent} ${styles.bannerItem}`} >
<Title className={styles.welcomeTitle} type="headingLockup" theme={process.env.REACT_APP_THEME}>
Expand All @@ -44,130 +46,57 @@ const ImagiNationTV = (props) => {
a live YouTube TV show, an open Google Doc and a hoodie?
<br /><br />
<strong><mark>&nbsp;A feature film, of course.&nbsp;</mark></strong>
<br /><br />
{`Live on IMAGI-NATION{TV} from May 11, we will share a Google Doc with the
world with the title ‘IMAGINE’, and those in and outside of the AIME orbit
will be able to come together and write a feature film script. Guests on IN{TV}
over the four weeks will have the chance to engage in the writing experience.
So will kids AIME mentors across 6 countries.`}
</Paragraph>
<div className="triBtnSet">
<Button
theme={process.env.REACT_APP_THEME}
className={`${styles.triBtn} ${styles.watchBtn}`}
url="https://docs.google.com/document/d/1MyE1Xv8OSsFnJLEL2WNhLL0DbsKJfMtmcrrUUa7BOh8/edit"
target="_blank"
type="link"
>
Write
</Button>
<Button
type="link"
text="Film"
theme={process.env.REACT_APP_THEME}
className={`${styles.triBtn} ${styles.imagiDonate}`}
url="/positions/rec9lXBVd7ju08wtf/Intern-Production-Coordinator"
/>
<Button
type="link"
text="Fund"
className={`${styles.triBtn} ${styles.imagiHoodieBtn}`}
theme={process.env.REACT_APP_THEME}
onClickFunction={toggleDonateModal}

<Button
theme={process.env.REACT_APP_THEME}
className={`${styles.watchBtn}`}
target="_blank"
type="link"
scrollHandler={scrollToPanel}
onClickFunction={scrollHandler}
>
Get Involved
</Button>
</div>

<div className={`${styles.bannerMediaFeature} ${styles.bannerItem} ${styles.welcomeVideoWrapper}`}>
<img
src={`${ASSETS_URL}/assets/images/illustrations/imagi-splosion.png`}
alt="IMAGI-SPLOSION"
className={styles.videoCoverArt}
/>
</div>

</div>
</div>

<section className={styles.aboutImagineSection}>
<div className={styles.aboutInTVWrapper}>
<div className={styles.aboutParagraphColumn}>
<Title type="h3Title" className={styles.aboutInTVTitle}>
Welcome to the latest initiative from AIME
</Title>
<Paragraph>
{`
Live on IMAGI-NATION{TV} from May 11, we will share a Google Doc
with the world with the title ‘IMAGINE’, and those in and outside
of the AIME orbit will be able to come together and write a feature
film script. Guests on IN{TV} over the four weeks will have the
chance to engage in the writing experience. So will kids AIME mentors
across 6 countries.
`}
</Paragraph>
<Paragraph>
{`
Also launching on May 11 will be over 500 creator grants in the shape
of a hoodie. Those who want to create a scene for the film ‘IMAGINE’
will be able to apply at aimementoring.com to secure themselves an official
“This Hoodie is a Film” hoodie. This will be their key to submitting a creation into ‘IMAGINE’.
`}
</Paragraph>
</div>
<div className={styles.aboutCyclopsColumn}>
<div className={styles.cyclopsSpeechBubble}>
<div>
<Title type="h5Title" className={styles.speechButtonContent}>
Let's create together!
</Title>
</div>
<img
src={`${ASSETS_URL}/assets/images/illustrations/kyle-cyclops@2x.png`}
alt="Kyle the Cyclops"
className={styles.cyclopsImage}
/>
</div>
<Paragraph>
Or if you have any questions,&nbsp;
<IntercomChat label="chat with us" />
</Paragraph>
</div>
</div>
</section>
<div className={styles.inTVContentWrapper}>
<section className={styles.inTVEpisodesWrapper}>
<ImagineCarousel ref={scrollToThisRef} />
</section>

<section ref={scrollToThisRef} className={styles.chattyPuppetsSection}>
<div className={styles.puppetsChatWrapper}>
<TypeformModal visible={showModal} toggleModal={toggleModal} />
<div className={styles.puppetChat}>
<div className={styles.puppetWrap}>
<img
src={`${ASSETS_URL}/assets/images/illustrations/robo_red@2x.png`}
alt="Robo Red"
className={styles.puppetTalking}
/>
</div>
<div className={styles.puppetWords}>
<Title type="h4Title">Hey hey hey, are you up for it? </Title>
<Paragraph>
This is an experiment that requires ultimate imagination.
It will be one of the films that captures the essence of
isolation and creation in 2020.
</Paragraph>
<div className={styles.becomeAPartnerBtn}>
<IntercomChat label="Chat with us" />
</div>
</div>
</div>
<div className={styles.puppetChatSmaller}>
<div>
<Button
type="text"
className={`${styles.typeformAction} ${styles.puppetTitle}`}
>
Your contribution would be truly spectacular
</Button>

</div>
<div className={`${styles.bannerMediaFeature} ${styles.bannerItem} ${styles.welcomeVideoWrapper}`}>
<div className={styles.bannerImageRotate}>
<img
src={`${ASSETS_URL}/assets/images/illustrations/queen_lizzy@2x.png`}
alt="Queen Lizzy"
className={styles.smlPuppetTalking}
src={`${ASSETS_URL}/assets/images/banner/partnering.webp`}
alt="Write it, Film it, Fund it"
/>
</div>
</div>
</section>
<WavyDonateSection />
<section className={styles.featuredProductWrapper}>
<FeaturedProduct
imageUrl={`${ASSETS_URL}/assets/images/apparel/hoodie_imagine@2x.jpg`}
pretitle="Check it out …"
title="Imagine Hoodie"
text={'Support the making of this film, checkout the Imagine Hoodie for sale over at our apparel shop. Every sale from this hoodie will help bring people together from all walks of life to co-create something wonderful!'}
linkUrl={`${SHOP_PRODUCT_LINK}/imagi-nation-hoodie`}
linkText="Buy a Hoodie"
/>
</section>

</div>
</div>

</Layout>
);
};
Expand Down
Loading

2 comments on commit 63b47ae

@vercel
Copy link

@vercel vercel bot commented on 63b47ae May 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aime-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Size Checks (0 failures)

Size Checks

Label Value Threshold Success
out/favicon.ico 2.09 KB 4 KB
out/index.html 59.56 KB 80 KB
out/service-worker.js 3.49 KB 8 KB
out 12.57 MB 60 MB
.next/service-worker.js 3.49 KB 5 KB

Axe Audits (1 failure)

Axe Audits

Label Value Threshold Success
aria-allowed-attr critical
aria-allowed-role none
aria-hidden-body none
aria-required-attr none
aria-required-children none
aria-required-parent none
aria-roles none
aria-valid-attr-value none
aria-valid-attr none
avoid-inline-spacing none
button-name none
bypass none
color-contrast serious
document-title none
duplicate-id-active none
duplicate-id none
empty-heading none
form-field-multiple-labels none
heading-order moderate moderate
html-has-lang none
html-lang-valid none
image-alt none
image-redundant-alt none
label-title-only none
landmark-banner-is-top-level none
landmark-contentinfo-is-top-level none
landmark-main-is-top-level none
landmark-no-duplicate-banner none
landmark-no-duplicate-contentinfo none
landmark-one-main moderate
landmark-unique moderate moderate
link-name serious
list serious serious
listitem serious none
meta-viewport-large none
meta-viewport critical
page-has-heading-one moderate
heading-order moderate moderate
label critical critical
landmark-unique moderate moderate
list serious serious
listitem serious none x
region moderate moderate

Unused Source Checks (3 failures)

Unused Source Checks

Label Value Threshold Success
http://localhost:3000/ 97.06% 65% x
... website/_next/static/css/styles.d14164d1.chunk.css NaN% 35% x
... ite/_next/static/chunks/83.af59a0b0d3fc7f43e0fa.js 97.06% 70% x

Heap Snapshot Checks (0 failures)

Heap Snapshot Checks

Label Value Threshold Success
Documents 3 11
Frames 1 5
JSHeapTotalSize 3657728 21889024
JSHeapUsedSize 2201256 13685832
LayoutCount 2 25
Nodes 684 1196
RecalcStyleCount 3 129

Lighthouse Audits (0 failures)

Lighthouse Audits

Label Value Threshold Success
Performance 91 40
Accessibility 88 80
Best Practices 92 80
SEO 95 85
Progressive Web App 72 52

Please sign in to comment.