-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06dc009
commit c1c1523
Showing
12 changed files
with
770 additions
and
2,121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'next/babel', | ||
{ | ||
'preset-react': { | ||
runtime: 'automatic', | ||
importSource: '@emotion/react', | ||
}, | ||
}, | ||
], | ||
], | ||
plugins: ['@emotion/babel-plugin', 'babel-plugin-macros'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
'@tailwindcss/jit': {}, | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import tw, { css } from 'twin.macro' | ||
import PropTypes from 'prop-types' | ||
import Link from 'next/link' | ||
|
||
export const UpcomingEventsSection = ({title, children, ...props}) => ( | ||
<div tw="text-center all-child:my-8" {...props}> | ||
<h2 tw="uppercase font-bold flex-none w-full text-wixColor24" css={css` | ||
font-size: 35px; | ||
letter-spacing: 0.2em; | ||
text-shadow: rgba(0, 0, 0, 0.4) 0px 4px 5px; | ||
`}> | ||
{title} | ||
</h2> | ||
|
||
<UpcomingEvents> | ||
{children} | ||
</UpcomingEvents> | ||
</div> | ||
) | ||
UpcomingEventsSection.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
children: PropTypes.node | ||
} | ||
|
||
export const UpcomingEvents = tw.div`sm:(flex justify-center justify-items-center)` | ||
|
||
export const UpcomingEvent = ({href, title, children, ...props}) => ( | ||
<div tw="flex flex-col my-8 px-8 border-wixColor31 sm:border-l first:border-0" css={css` | ||
p { | ||
${tw`flex-1 my-4`} | ||
} | ||
`} {...props}> | ||
<h5 tw="font-bold leading-none text-wixColor24" css={css` | ||
font-size: 26px; | ||
letter-spacing: 0.2em; | ||
`}> | ||
<Link href={href} passHref> | ||
<a tw="underline">{title}</a> | ||
</Link> | ||
</h5> | ||
|
||
{children} | ||
|
||
<div> | ||
<Link href={href} passHref> | ||
<a tw="uppercase text-wixColor33 hover:text-wixColor25" css={css` | ||
font-size: 12px; | ||
transition: color 0.4s ease 0s; | ||
`}>more info »</a> | ||
</Link> | ||
</div> | ||
</div> | ||
) | ||
UpcomingEvent.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
href: PropTypes.string.isRequired, | ||
children: PropTypes.node | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import tw, { css, theme } from 'twin.macro' | ||
import Link from 'next/link' | ||
import ShadowImage from '@/components/shadow-image' | ||
|
||
export const WhatsNewsSection = ({title, children, ...props}) => ( | ||
<div tw="overflow-x-hidden text-center all-child:my-8" {...props}> | ||
<h2 tw="uppercase font-bold text-wixColor24" css={css` | ||
font-size: 35px; | ||
letter-spacing: 0.2em; | ||
text-shadow: rgba(0, 0, 0, 0.4) 0px 4px 5px; | ||
`}> | ||
{title} | ||
</h2> | ||
|
||
<WhatsNewsItems> | ||
{children} | ||
</WhatsNewsItems> | ||
</div> | ||
) | ||
WhatsNewsSection.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
children: PropTypes.node | ||
} | ||
|
||
export const WhatsNewsItems = tw.div`container text-center relative mx-auto px-4 md:(flex space-x-4)` | ||
|
||
export const WhatsNewsItem = ({title, image, href, children, ...props}) => ( | ||
<div tw="my-8 flex flex-col md:flex-1" css={css` | ||
.news-item-image { | ||
height: 192px; | ||
img { | ||
${tw`object-cover h-full w-full`} | ||
} | ||
} | ||
@media (min-width: ${theme`screens.sm`}) { | ||
.news-item-image { | ||
height: 24vw; | ||
} | ||
} | ||
`} {...props}> | ||
<ShadowImage className={'news-item-image'} src={image} /> | ||
|
||
<WhatsNewsContent> | ||
<h6 tw="font-bold leading-none uppercase font-serif text-wixColor25" css={css` | ||
font-size: 18px; | ||
letter-spacing: 0.2em; | ||
`}> | ||
{title} | ||
</h6> | ||
|
||
<hr tw="my-8 w-16 border mx-auto border-wixColor15" /> | ||
|
||
{children} | ||
|
||
<div tw="mt-8"> | ||
<Link href={href} passHref> | ||
<a tw="uppercase text-wixColor33 hover:text-wixColor25" css={css` | ||
font-size: 12px; | ||
transition: color 0.4s ease 0s; | ||
`}>read more »</a> | ||
</Link> | ||
</div> | ||
</WhatsNewsContent> | ||
</div> | ||
) | ||
WhatsNewsItem.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
image: PropTypes.string.isRequired, | ||
href: PropTypes.string.isRequired, | ||
children: PropTypes.node | ||
} | ||
|
||
export const WhatsNewsContent = props => ( | ||
<div tw="p-8 flex-1 flex flex-col bg-wixColor31 --tw-bg-opacity[0.19]" css={css` | ||
& > p { | ||
${tw`flex-1`} | ||
} | ||
`} {...props} /> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.