@extends('layouts.app')

@section('content')

<div class="content">
    <div id="rowCarrousel"class="row justify-content-center">
        <div class="col-sm-12">
            <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
                <ol class="carousel-indicators">
                  <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
                  <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
                  <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
                </ol>
                <div class="carousel-inner">
                  <div class="carousel-item active">
                      <img class="d-block w-100" src="{{asset('img/colorscheme.png')}}" alt="First slide">
                      <div class="carousel-caption d-none d-md-block">
                        {{-- Jumbotron Explicando resumidamente o Módulo --}}
                        <div class="jumbotron" style="background:none">
                            <h1 class="display-4">Primeiro Módulo</h1>
                            <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
                            <p class="lead">
                              <a class="btn btn-outline-light btn-lg"  id="modulo1" href="#" role="button">Saber mais</a>
                            </p>
                        </div>{{-- End Jumbotron--}}
                      </div>
                  </div>
                  <div class="carousel-item">
                    <img class="d-block w-100" src="{{asset('img/colorscheme.png')}}" alt="Second slide">
                    <div class="carousel-caption d-none d-md-block">
                        {{-- Jumbotron Explicando resumidamente o Módulo --}}
                        <div class="jumbotron" style="background:none">
                            <h1 class="display-4">Segundo Módulo</h1>
                            <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
                            <p class="lead">
                              <a class="btn btn-outline-light btn-lg" id="modulo2" href="#" role="button">Saber mais</a>
                            </p>
                        </div>{{-- End Jumbotron--}}
                      </div>
                  </div>
                  <div class="carousel-item">
                    <img class="d-block w-100" src="{{asset('img/colorscheme.png')}}" alt="Third slide">
                    <div class="carousel-caption d-none d-md-block">
                        {{-- Jumbotron Explicando resumidamente o Módulo --}}
                        <div class="jumbotron" style="background:none">
                            <h1 class="display-4">Terceiro Módulo</h1>
                            <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
                            <p class="lead">
                              <a class="btn btn-outline-light btn-lg" id="modulo3" href="#" role="button">Saber mais</a>
                            </p>
                        </div>{{-- End Jumbotron--}}
                      </div>
                  </div>
                </div>
                <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
                  <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                  <span class="sr-only">Previous</span>
                </a>
                <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
                  <span class="carousel-control-next-icon" aria-hidden="true"></span>
                  <span class="sr-only">Next</span>
                </a>
              </div>
        </div>
    </div>
    {{-- Descrição Geral do Sistema --}}
    <div class="row justify-content-center">
      <div id="descSistema" class="col-sm-12">
        <div class="texto">
          <h1>Nome do sistema</h1>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
            Sed facilisis nisl non lorem tincidunt ultricies. 
            Maecenas ullamcorper, justo at egestas congue,
             magna est egestas elit, id sollicitudin ipsum lacus non nibh.
              Mauris eu dui elit. Mauris eget enim tempor, ullamcorper sem sed, 
              porttitor turpis. Phasellus ut sem mi. Aliquam dignissim ligula sit 
              amet dui dapibus posuere. Maecenas in lorem sem.</p>

        </div>
      </div>
    </div>

    {{-- Descrição Módulo 1 --}}
    <div class="row justify-content">
        <div id="divModulo1" class="col-sm-12">
            <div class="row justify-content-center rowModulo">
              <div class="col-sm-4 imagemModulo">
                <div class="row justify-content-center">
                  <div class="imagem">
                    <img src="" alt="">
                  </div>
                </div>
              </div>
              <div class="col-sm-8 textoModulo">
                <div class="row justify-content-center">

                  <h1>Módulo 1</h1>
                  <p>
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
                    Sed facilisis nisl non lorem tincidunt ultricies. 
                    Maecenas ullamcorper, justo at egestas congue,
                    magna est egestas elit, id sollicitudin ipsum lacus non nibh.
                    Mauris eu dui elit. Mauris eget enim tempor, ullamcorper sem sed, 
                    porttitor turpis. Phasellus ut sem mi. Aliquam dignissim ligula sit 
                    amet dui dapibus posuere. Maecenas in lorem sem.
                  </p>
                </div>
              </div>
            </div>
        </div>
    </div>

    {{-- Descrição Módulo 2 --}}
    <div class="row justify-content-center">
      <div id="divModulo2" class="col-sm-12">
        <div class="row justify-content-center rowModulo">
            
          {{-- imagem --}}
          <div class="col-sm-4 imagemModuloCelular">
            <div class="row justify-content-center">
              <div class="imagemCelular">
                <img src="" alt="">
              </div>
            </div>
          </div>
          
          {{-- Texto --}}
          <div class="col-sm-8 textoModuloR">
            <div class="row justify-content-center">

              <h1>Módulo 2</h1>
              <p>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
                Sed facilisis nisl non lorem tincidunt ultricies. 
                Maecenas ullamcorper, justo at egestas congue,
                magna est egestas elit, id sollicitudin ipsum lacus non nibh.
                Mauris eu dui elit. Mauris eget enim tempor, ullamcorper sem sed, 
                porttitor turpis. Phasellus ut sem mi. Aliquam dignissim ligula sit 
                amet dui dapibus posuere. Maecenas in lorem sem.
              </p>
            </div>
          </div>

          {{-- imagem --}}
          <div id="none" class="col-sm-4 imagemModulo">
            <div class="row justify-content-center">
              <div class="imagem">
                <img src="" alt="">
              </div>
            </div>
          </div>

            
        </div>
      </div>
    </div>

  {{-- Descrição Módulo 3 --}}
  <div class="row justify-content-center">
    <div id="divModulo3" class="col-sm-12">
      <div class="row justify-content-center rowModulo">
          <div class="col-sm-4 imagemModulo">
            <div class="row justify-content-center">
              <div class="imagem">
                <img src="" alt="">
              </div>
            </div>
          </div>
          <div class="col-sm-8 textoModulo">
            <div class="row justify-content-center">

              <h1>Módulo 3</h1>
              <p>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
                Sed facilisis nisl non lorem tincidunt ultricies. 
                Maecenas ullamcorper, justo at egestas congue,
                magna est egestas elit, id sollicitudin ipsum lacus non nibh.
                Mauris eu dui elit. Mauris eget enim tempor, ullamcorper sem sed, 
                porttitor turpis. Phasellus ut sem mi. Aliquam dignissim ligula sit 
                amet dui dapibus posuere. Maecenas in lorem sem.
              </p>
            </div>
          </div>
        </div>
    </div>
</div>
    
        
</div>

@endsection

@section('javascript')
<script type="application/javascript">
  
 
  
  $(function(){

    // Função que leva para div específica ao clicar no botão
    autoScroll();
    
  });


  function autoScroll(){
    $("#modulo1").click(function(){
      $('html,body').animate({
        scrollTop: $('#divModulo1').offset().top},
        'slow');
    });

    $("#modulo2").click(function(){
      $('html,body').animate({
        scrollTop: $('#divModulo2').offset().top},
        'slow');
    });

    $("#modulo3").click(function(){
      $('html,body').animate({
        scrollTop: $('#divModulo3').offset().top},
        'slow');
    });
  }


</script>

@endsection