This commit is contained in:
Ondřej 2023-09-14 12:35:05 +02:00
commit 1acba35f52
13 changed files with 371 additions and 0 deletions

1
.codesandbox/Dockerfile Normal file
View file

@ -0,0 +1 @@
FROM node:18-bullseye

21
.gitignore vendored Normal file
View file

@ -0,0 +1,21 @@
# build output
dist/
# generated types
.astro/
# dependencies
node_modules/
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
.env
.env.production
# macOS-specific files
.DS_Store

4
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}

11
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}

47
README.md Normal file
View file

@ -0,0 +1,47 @@
# Astro Starter Kit: Minimal
```sh
npm create astro@latest -- --template minimal
```
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json)
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```text
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

4
astro.config.mjs Normal file
View file

@ -0,0 +1,4 @@
import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({});

BIN
bun.lockb Executable file

Binary file not shown.

16
package.json Normal file
View file

@ -0,0 +1,16 @@
{
"name": "@example/minimal",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"astro": "^3.0.13"
}
}

9
public/favicon.svg Normal file
View file

@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 128 128">
<path d="M50.4 78.5a75.1 75.1 0 0 0-28.5 6.9l24.2-65.7c.7-2 1.9-3.2 3.4-3.2h29c1.5 0 2.7 1.2 3.4 3.2l24.2 65.7s-11.6-7-28.5-7L67 45.5c-.4-1.7-1.6-2.8-2.9-2.8-1.3 0-2.5 1.1-2.9 2.7L50.4 78.5Zm-1.1 28.2Zm-4.2-20.2c-2 6.6-.6 15.8 4.2 20.2a17.5 17.5 0 0 1 .2-.7 5.5 5.5 0 0 1 5.7-4.5c2.8.1 4.3 1.5 4.7 4.7.2 1.1.2 2.3.2 3.5v.4c0 2.7.7 5.2 2.2 7.4a13 13 0 0 0 5.7 4.9v-.3l-.2-.3c-1.8-5.6-.5-9.5 4.4-12.8l1.5-1a73 73 0 0 0 3.2-2.2 16 16 0 0 0 6.8-11.4c.3-2 .1-4-.6-6l-.8.6-1.6 1a37 37 0 0 1-22.4 2.7c-5-.7-9.7-2-13.2-6.2Z" />
<style>
path { fill: #000; }
@media (prefers-color-scheme: dark) {
path { fill: #FFF; }
}
</style>
</svg>

After

Width:  |  Height:  |  Size: 749 B

1
src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

178
src/layouts/Layout.astro Normal file
View file

@ -0,0 +1,178 @@
---
export interface Props {
title: string;
}
const { title } = Astro.props;
---
<!doctype html>
<html lang="cs">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{title}</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=EB+Garamond:ital@0;1&family=Ysabeau:ital,wght@0,400;0,600;0,700;1,400;1,700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=EB+Garamond:ital@0;1&family=Ysabeau:ital,wght@0,400;0,600;0,700;1,400&display=swap&text=↗"
rel="stylesheet"
/>
</head>
<body>
<slot />
</body>
</html>
<style is:global>
:root {
/* Radix colors see https://www.radix-ui.com/colors */
--gray-1: hsl(0, 0%, 99.0%);
--gray-2: hsl(0, 0%, 97.5%);
--gray-3: hsl(0, 0%, 94.6%);
--gray-4: hsl(0, 0%, 92.0%);
--gray-5: hsl(0, 0%, 89.5%);
--gray-6: hsl(0, 0%, 86.8%);
--gray-7: hsl(0, 0%, 83.0%);
--gray-8: hsl(0, 0%, 73.2%);
--gray-9: hsl(0, 0%, 55.2%);
--gray-10: hsl(0, 0%, 50.3%);
--gray-11: hsl(0, 0%, 39.3%);
--gray-12: hsl(0, 0%, 12.5%);
--accent-1: hsl(359, 100%, 99.4%);
--accent-2: hsl(0, 100%, 98.4%);
--accent-3: hsl(360, 100%, 96.8%);
--accent-4: hsl(360, 97.9%, 94.8%);
--accent-5: hsl(360, 90.2%, 91.9%);
--accent-6: hsl(360, 81.7%, 87.8%);
--accent-7: hsl(359, 74.2%, 81.7%);
--accent-8: hsl(359, 69.5%, 74.3%);
--accent-9: hsl(358, 75.0%, 59.0%);
--accent-10: hsl(358, 67.4%, 54.6%);
--accent-11: hsl(358, 65.0%, 47.0%);
--accent-12: hsl(350, 63.0%, 24.0%);
}
@media (prefers-color-scheme: dark) {
:root {
--gray-1: hsl(0, 0%, 9.5%);
--gray-2: hsl(0, 0%, 10.5%);
--gray-3: hsl(0, 0%, 15.8%);
--gray-4: hsl(0, 0%, 18.9%);
--gray-5: hsl(0, 0%, 21.7%);
--gray-6: hsl(0, 0%, 24.7%);
--gray-7: hsl(0, 0%, 29.1%);
--gray-8: hsl(0, 0%, 37.5%);
--gray-9: hsl(0, 0%, 43.0%);
--gray-10: hsl(0, 0%, 50.7%);
--gray-11: hsl(0, 0%, 69.5%);
--gray-12: hsl(0, 0%, 93.5%);
--accent-1: hsl(353, 23.0%, 9.8%);
--accent-2: hsl(354, 30.2%, 12.4%);
--accent-3: hsl(353, 40.8%, 16.4%);
--accent-4: hsl(353, 46.3%, 19.2%);
--accent-5: hsl(353, 51.2%, 22.1%);
--accent-6: hsl(353, 57.3%, 26.2%);
--accent-7: hsl(354, 65.7%, 33.2%);
--accent-8: hsl(358, 75.0%, 47.1%);
--accent-9: hsl(358, 75.0%, 59.0%);
--accent-10: hsl(359, 84.8%, 67.6%);
--accent-11: hsl(358, 100%, 76.0%);
--accent-12: hsl(350, 100%, 91.0%);
}
}
html {
box-sizing: border-box;
}
body {
font-size: clamp(1.5rem, 4vw, 2rem);
font-family: "Ysabeau", sans-serif;
line-height: 1.4;
background-color: var(--gray-1);
color: var(--gray-12);
}
@media screen and (min-width: 800px) {
/* body {
font-size: 2rem;
} */
}
*,
*:before,
*:after {
margin: 0;
box-sizing: inherit;
}
img {
max-width: 100%;
height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font: inherit;
}
ol,
ul {
list-style: none;
padding: 0;
}
p {
word-wrap: break-word;
}
a {
font: inherit;
color: inherit;
text-decoration: none;
}
.link {
font-weight: 600;
padding-bottom: 0em;
transition: color 200ms;
color: var(--accent-12);
}
.link[href^="http://"]::after, .link[href^="https://"]::after
{
content: "↗";
margin-left: 0.25em;
font-size: 0.5em;
font-weight: 600;
position: relative;
top: -0.5em;
}
.link:hover {
color: var(--accent-11);
}
.separator-after::after {
content: "•";
margin-left: 0.25em;
margin-right: 0.5em;
opacity: 0.25;
}
</style>

76
src/pages/index.astro Normal file
View file

@ -0,0 +1,76 @@
---
import Layout from "../layouts/Layout.astro";
---
<Layout title="Ondřej Nývlt">
<main class="container">
<hgroup class="header">
<h1>
Im <em>Ondřej Nývlt</em>,
</h1>
<p>
a designer, software engineer, and&nbsp;student of social & cultural anthtropology.
</p>
</hgroup>
<p class="about par-space">
I do mainly web development. While I do so, I try to stay as close to the web platform as possible,
without the heavy tooling and hype of JavaScript frameworks.
Im an advocate of <a class="link" href="https://hypermedia.systems/">hypermedia-driven applications</a>.
I like a good typography. I experiment with computational typesetting and <a class="link" href="https://docs.racket-lang.org/pollen">Pollen</a> for my school theses.
I contribute to open-source projects at <a class="link" href="https://nolog.cz">nolog.cz</a>, activist IT collective
which provides privacy-focused infrastructure to social movements (You should consider <a class="link" href="https://nolog.cz/support/">donating to them</a>).
</section>
<nav class="nav par-space">
<h2>My software projects are to be found at</h2>
<ul>
<li><a class="link" href="https://github.com/onvlt">github</a>,
<li><a class="link" href="https://git.nolog.cz/uwundrej">git.nolog.cz</a>
</ul>.
</nav>
<nav class="nav">
<h2>I'm at</h2>
<ul>
<li><a class="link" href="https://twitter.com/uwundrej">twitter</a>,
<li><a class="link" href="https://witter.cz/@uwundrej">mastodon</a>,
<li><a class="link" href="mailto:ondrej@nyv.lt">e-mail</a>
</ul>.
</nav>
</main>
</Layout>
<style>
.container {
max-width: 50rem;
padding: 1rem;
margin: 4rem auto 0;
}
.header {
font-weight: 700;
margin-bottom: 1.5rem;
* {
display: inline;
}
}
.nav h2 {
display: inline;
margin-right: 0.75rem;
}
.nav ul {
display: inline;
}
.nav li {
display: inline;
}
.par-space {
margin-bottom: 1.25em;
}
</style>

3
tsconfig.json Normal file
View file

@ -0,0 +1,3 @@
{
"extends": "astro/tsconfigs/strictest"
}