#teaser.grid-container
 .grid-x
  .large-4.medium-4.small-3.cell
    #biglogo
      // TODO: vary the logo depending on the virtual host
      img src="/images/logos/debian.svg" width="300" alt="Debian logo"
  .large-8.medium-8.small-9.cell
    h1 We have screenshots!
    p
      ' Have you ever wondered how a certain piece of software looks
      ' and works before spending time installing it?
    p
      ' This website lets you browse screenshots of
      => number_with_delimiter(@package_count)
      ' software packages coming with Debian and other Linux distributions.
      ' Enlarge the collection and upload a screenshot yourself. No registration needed.

    p
      = form_tag(packages_grid_path, method: 'GET')
        .input-group
          input.input-group-field type="search" name="search" placeholder="Looking for a special software? Try: game" autofocus="true"
          .input-group-button
              input.button.postfix type="submit" value="Search"

- if @newest_upload

  .grid-x.grid-padding-x
    .small-12.medium-4.cell
      h2.text-center Newest upload
      .pkgcard
        .image
          a href=package_path(@newest_upload.package.name)
            = small_img(@newest_upload)
        .text
          strong
            =@newest_upload.package.name
            ' :
          =@newest_upload.package.description


    .small-12.medium-4.cell
      h2.text-center Random pick
      .pkgcard
        .image
          - if @random_pick
            a href=package_path(@random_pick.name)
              = small_img(@random_pick.screenshots.publicly.first)
          - else
            'No uploaded screenshots yet.
        .text
          strong
            =@random_pick.name
            ' :
          =@random_pick.description

    .small-12.medium-4.cell
      h2.text-center Your help needed
      .pkgcard
        .image
          - if @most_wanted_package.name
            a href=upload_path(@most_wanted_package.name)
              img src="/images/dummy/no-screenshots-upload-one.svg" width="320"
          - else
            'No uploaded screenshots yet.
        .text
          ' We lack a screenshot for the
          strong =>@most_wanted_package.name
          ' package. Can you
          a href=upload_path(@most_wanted_package.name) provide one
          ' ?
