<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>analog film space - random</title>
  <meta name="description" content="Get inspired and try out a random film stock">

  <meta property="og:type" content="website">
  <meta property="og:url" content="https://analogfilm.space/random">
  <meta property="og:title" content="analog film space - random">
  <meta property="og:description" content="Get inspired and try out a random film stock">
  <meta property="og:image" content="https://analogfilm.space/preview.png">
  <meta property="og:image:secure_url" content="https://analogfilm.space/preview.png">
  <meta property="og:image:width" content="640"> 
  <meta property="og:image:height" content="320">

  <meta property="twitter:card" content="summary_large_image">
  <meta property="twitter:url" content="https://analogfilm.space/random">
  <meta property="twitter:title" content="analog film space - random">
  <meta property="twitter:description" content="Get inspired and try out a random film stock">
  <meta property="twitter:image" content="https://analogfilm.space/preview.png">

  <link href="manifest.webmanifest" rel="manifest">
  <link href="favicon.svg" rel="icon">
  <link href="favicon.svg" rel="shortcut icon">
  <link href="css/style.css" rel="stylesheet">
  <link href="fonts/ek-mukta-400-latin.woff2" rel="preload" as="font" type="font/woff2" crossorigin>
  <link href="fonts/ek-mukta-700-latin.woff2" rel="preload" as="font" type="font/woff2" crossorigin>
</head>
<body>
  <div id="random">
    <header>
      <h1><a href="/">analog film<span>.space</span></a></h1>
      <p>a database of currently available 35mm, 110 and medium format film stocks</p>
      <p><a href="/">overview</a> / <a href="/faq">frequently asked questions</a> / <a href="/guide">film guide</a> / <a href="/random" class="active">random film</a></p>
    </header>
    <main v-if="show">
      <ul v-cloak>
        <li v-for="film in films">
          <img :src="'images/small/' + film.image" :srcset="'images/small/' + film.image + ' 1x, images/' + film.image + ' 2x'" :alt="film.name" loading="lazy">
          <h2>{{film.name}}</h2>
          <p>
            <span v-if="film.description">{{film.description}}</span>
            <span>
              <a v-if="film.flickr" :href="film.flickr" target="_blank" rel="noopener">flickr</a>
              <a v-if="film.lomography" :href="film.lomography" target="_blank" rel="noopener">lomography</a>
              <a v-if="film.datasheet" :href="film.datasheet" target="_blank" rel="noopener">datasheet</a>
            </span>
          </p>
          <aside>
            <div title="film type">{{film.color}} {{film.type}}</div>
            <div title="film format">{{film.format}}</div>
            <div title="film launched/updated" v-if="film.launched">{{film.launched}}</div>
            <div title="price range">{{formatPrice(film.price)}}</div>
          </aside>
        </li>
      </ul>
    </main>
    <main v-else>
      <ul>
        <li>
          <img src="images/random.png" alt="random">
          <h2>Need some inspiration?</h2>
          <p>Do you have no idea what film to shoot next? Do you want to get out of your comfort zone? Press the button below and try your luck!</p>
          <aside>
            <div><a href="" v-on:click.prevent="shuffle">surprise me!</a></div>
          </aside>
        </li>
      </ul>
    </main>
  </div>
  <script src="js/current-films.js"></script>
  <script src="js/vue.min.js"></script>
  <script src="js/script-random.js"></script>
</body>
</html>