|
@@ -49,14 +49,9 @@ export const HomeView: React.FC = () => {
|
|
<VideoHero />
|
|
<VideoHero />
|
|
<Container className={transitions.names.slide}>
|
|
<Container className={transitions.names.slide}>
|
|
{!followedLoading && followedChannelsVideosCount ? (
|
|
{!followedLoading && followedChannelsVideosCount ? (
|
|
- <StyledInfiniteVideoGrid
|
|
|
|
- title="Followed channels"
|
|
|
|
- channelIdIn={channelIdIn}
|
|
|
|
- ready={!followedLoading}
|
|
|
|
- onDemand
|
|
|
|
- />
|
|
|
|
|
|
+ <InfiniteVideoGrid title="Followed channels" channelIdIn={channelIdIn} ready={!followedLoading} onDemand />
|
|
) : null}
|
|
) : null}
|
|
- <StyledInfiniteVideoGrid
|
|
|
|
|
|
+ <InfiniteVideoGrid
|
|
title="Popular on Joystream"
|
|
title="Popular on Joystream"
|
|
idIn={mostViewedVideosIds}
|
|
idIn={mostViewedVideosIds}
|
|
ready={!mostViewedVideosLoading}
|
|
ready={!mostViewedVideosLoading}
|
|
@@ -64,7 +59,7 @@ export const HomeView: React.FC = () => {
|
|
/>
|
|
/>
|
|
<OfficialJoystreamUpdate />
|
|
<OfficialJoystreamUpdate />
|
|
<TopTenThisWeek />
|
|
<TopTenThisWeek />
|
|
- <StyledInfiniteVideoGrid title="All content" onDemand />
|
|
|
|
|
|
+ <InfiniteVideoGrid title="All content" onDemand />
|
|
<CallToActionWrapper>
|
|
<CallToActionWrapper>
|
|
<CallToActionButton
|
|
<CallToActionButton
|
|
label="Popular on Joystream"
|
|
label="Popular on Joystream"
|
|
@@ -92,17 +87,11 @@ export const HomeView: React.FC = () => {
|
|
|
|
|
|
const Container = styled.div`
|
|
const Container = styled.div`
|
|
position: relative;
|
|
position: relative;
|
|
|
|
+ padding-bottom: ${sizes(16)};
|
|
|
|
|
|
- & > * {
|
|
|
|
- margin-bottom: 3rem;
|
|
|
|
- }
|
|
|
|
-`
|
|
|
|
-
|
|
|
|
-const StyledInfiniteVideoGrid = styled(InfiniteVideoGrid)`
|
|
|
|
- margin: 0;
|
|
|
|
- padding-bottom: 4rem;
|
|
|
|
-
|
|
|
|
- :not(:first-of-type) {
|
|
|
|
- margin-top: ${sizes(36)};
|
|
|
|
|
|
+ > section {
|
|
|
|
+ :not(:first-of-type) {
|
|
|
|
+ margin-top: ${sizes(32)};
|
|
|
|
+ }
|
|
}
|
|
}
|
|
`
|
|
`
|