<!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</title>
  <meta name="description" content="A database of currently available 35mm, 110 and medium format film stocks">

  <meta property="og:type" content="website">
  <meta property="og:url" content="https://analogfilm.space/">
  <meta property="og:title" content="analog film space">
  <meta property="og:description" content="A database of currently available 35mm, 110 and medium format film stocks">
  <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/">
  <meta property="twitter:title" content="analog film space">
  <meta property="twitter:description" content="A database of currently available 35mm, 110 and medium format film stocks">
  <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="app">
    <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="/" class="active">overview</a> / <a href="/faq">frequently asked questions</a> / <a href="/guide">film guide</a> / <a href="/random">random film</a></p>
    </header>
    <main>
      <aside>
        <section>
          <input placeholder="search" v-model="search" aria-label="search" />
          <select v-model="type" aria-label="film type">
            <option value="all">all types</option> 
            <option value="black & white">black & white</option>
            <option value="colornegative">color negative</option>
            <option value="colorslide">color slide</option>
          </select>
          <select v-model="format" aria-label="film format">
            <option value="all">all formats</option> 
            <option value="110">110 - pocket film</option>
            <option value="120">120 - medium format</option>
            <option value="135">135 - 35mm film</option>
          </select>
        </section>
        <section>
          <label>sort by</label> 
          <button v-on:click="sort" v-bind:class="[ sortBy === 'popularity' ? 'active' : '', sortBy === 'popularity' ? sortDir : '' ]">popularity</button>
          <button v-on:click="sort" v-bind:class="[ sortBy === 'name' ? 'active' : '', sortBy === 'name' ? sortDir : '' ]">name</button>
          <button v-on:click="sort" v-bind:class="[ sortBy === 'price' ? 'active' : '', sortBy === 'price' ? sortDir : '' ]">price</button>
          <button v-on:click="sort" v-bind:class="[ sortBy === 'date' ? 'active' : '', sortBy === 'date' ? sortDir : '' ]">date</button>
          <button v-on:click="sort" v-bind:class="[ sortBy === 'iso' ? 'active' : '', sortBy === 'iso' ? sortDir : '' ]">ISO</button>
        </section>
      </aside>
      <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>
      <h2 v-if="films.length === 0">nothing here :(</h2>
    </main>
  </div>
  <script src="js/current-films.js"></script>
  <script src="js/vue.min.js"></script>
  <script src="js/script-index.js"></script>
</body>
</html>