{{#if layout.isSocialColumnEnabled}}
  {{top-nav}}
{{/if}}

<div id="front_page_body" class="pos-relative {{if layout.isSocialColumnEnabled 'has-sc'}}">
  {{#if layout.isSocialColumnEnabled}}
    {{front-page/announcement-header-loader}}
  {{else}}
    {{front-page/header-bar}}
  {{/if}}

  <div id="mantle_skin">
    {{#if ads.enabled}}
      {{display-ad slotName="Twitch_FPopaBanner"
                   slotId="Twitch_FPopaBanner_holder"
                   slotClass="fp_ad fp_opa_pushdown dfp"
                   slotDimensions=AD_DIMENSIONS.pushDown}}

      {{display-ad slotName="Twitch_FPTakeoverSkinv2"
                   slotId="Twitch_FPTakeoverSkinv2_holder"
                   slotClass="fp_ad fp_custom_header fp_expand_large"
                   slotDimensions=AD_DIMENSIONS.siteSkin}}
    {{/if}}

    <div id="carousel_and_background">
      <div id="carousel">
        {{front-page/carousel-player selectedStream=selectedStream}}

        {{! NOTE: (action (mut selectedStream)) means "create an action that sets
            the value of `selectedStream`" }}
        {{front-page/carousel-menu
            featuredStreams=featuredStreams
            selectedIndex=selectedStream.index
            selectStream=(action (mut selectedStream))}}

        <div id="carousel_background">
          <img alt="{{i18n 'Carousel Background'}}" src="{{backgroundArtHost}}/404_backgroundart.jpg">
        </div>
      </div>
    </div>

    <div class="fullwidth_main front_page">
      {{#if ads.enabled}}
        {{display-ad slotName="sizzle_strip"
                     slotId="sizzle_strip"
                     slotAdUnit="sizzle_strip"
                     slotDimensions=AD_DIMENSIONS.sizzleStrip}}
      {{/if}}

      {{front-page/games-list}}
      {{front-page/announcement-loader}}

      {{front-page/stream-list streams=liveStreams type='live'}}
      {{front-page/stream-list streams=psFourStreams type='psFour'}}
      {{front-page/stream-list streams=xboxStreams type='xbox'}}
    </div>

    {{#if ads.enabled}}
      {{display-ad slotName="Twitch_FP970Bottom"
                   slotId="Twitch_FP970Bottom_holder"
                   slotClass="leader dfp"
                   slotDimensions=AD_DIMENSIONS.leaderBoard
                   class="advertisement"}}
    {{/if}}
  </div>

  {{site-footer class='site-footer'}}
</div>
