Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use autoimport for components in posts #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"svelte-check": "^2.9.0",
"svelte-preprocess": "^4.10.7",
"svelte-preprocess-import-assets": "^0.1.6",
"sveltekit-autoimport": "^1.6.9",
"vanilla-lazyload": "^17.8.3",
"vite": "^3.1.0",
"vite-imagetools": "^4.0.9"
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ categories: ''
tags: ''
---

<script>
import ExternalLink from '$lib/components/ExternalLink.svelte';
import Link from '$lib/components/Link.svelte';
</script>

## What is a Medium Format Camera?

If you are old enough to remember the analogue film camera era, chances are it is the 35&nbsp;mm canisters with the track cut down the side that first come to mind. Shots normally had a 3:2 aspect ratio measuring 36&times;24&nbsp;mm. Medium format film is a whole lot bigger. There is no single prevalent form factor, the film is 60mm across and depending on the camera you can shoot negative frames from 60&times;60 mm to 60 &times; 170 &nbsp;mm. That said 1:1 and roughly 4:5 (from 60 &times; 70 frames) are probably most common. With 35mm film you could nominally get 24 or 36 exposures onto a film. Medium format film is most common in the 120 variety, which lets you shoot 12 exposures. Double length 220 film is less common now. If you do find a roll, you might need to adjust your camera when you load it. Cameras ,like the Pentax 67 have a pressure plate to hold the film flat in the camera. Since 220 film does not have backing paper, it needs a different pressure setting.
Expand Down
4 changes: 0 additions & 4 deletions src/content/blog/folding-camera/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ categories: ''
tags: ''
---

<script>
import ExternalLink from '$lib/components/ExternalLink.svelte';
</script>

## What is a Folding Camera?

Folding cameras are a well kept secret. Typically the optics are amazing, in fact often better than modern mirrorless and high end DSLR lenses. This is related to the physics, put simply, it is easier to make a good small lens than a large one. On top they are compact, something like the Agfa Isolette can fit into a pocket (they are expensive and quite old cameras so a padded camera bag would be safer!). One drawback is that you cannot usually swap lenses. If you want a halfway-house, try the Mamiya 6. It has a wide angle, normal and telephoto lens, though it does not collapse to as flat a profile as the Isolette.
Expand Down
4 changes: 0 additions & 4 deletions src/content/blog/twin-lens-reflex-camera/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ categories: ''
tags: ''
---

<script>
import ExternalLink from '$lib/components/ExternalLink.svelte';
</script>

## What is a Twin Lens Reflex Camera?

Traditionally, the most common type of camera was a Single Lens Reflex camera. Today digital mirrorless cameras are becoming more prevalent. These cameras have an electronic viewfinder which lets you see exactly what will appear in the capture. Things weren't that easy with earlier film cameras. The image needs to be captured on light sensitive film, which must be kept in alight-sealed compartment until you press the shutter release. Since the lens is aligned for capturing your image on the film, you need another way to preview and line up your shot. Single Lens Reflex cameras have view finder, normally at the top of the camera. A mirror inside the camera reflects the image into the viewfinder, deflecting from the film, while you line up your shot. When you fire the shutter, the camera automatically lifts the mirror out of the way before opening the shutter, so that the image can be captured.
Expand Down
8 changes: 7 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { imagetools } from 'vite-imagetools';
import autoImport from 'sveltekit-autoimport';

const autoImportConfig = {
components: ['./src/lib/components'],
include: ['**/*.svelte', './src/content/blog/**/*.md'],
};

/** @type {import('vite').UserConfig} */
const config = {
define: {
'process.env.VITE_BUILD_TIME': JSON.stringify(new Date().toISOString()),
},
plugins: [imagetools(), sveltekit()],
plugins: [autoImport(autoImportConfig), imagetools(), sveltekit()],
server: {
port: 5173,
strictPort: false,
Expand Down