This commit is contained in:
Artem 2023-03-05 14:54:27 +01:00
commit d16495d098
23 changed files with 3689 additions and 0 deletions

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"
}
]
}

55
README.md Normal file
View File

@ -0,0 +1,55 @@
# Astro Starter Kit: Basics
```
npm create astro@latest -- --template basics
```
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
![basics](https://user-images.githubusercontent.com/4677417/186188965-73453154-fdec-4d6b-9c34-cb35c248ae5b.png)
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```
/
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ └── Card.astro
│ ├── layouts/
│ │ └── Layout.astro
│ └── 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:3000` |
| `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).

9
astro.config.mjs Normal file
View File

@ -0,0 +1,9 @@
import { defineConfig } from 'astro/config';
// https://astro.build/config
import tailwind from "@astrojs/tailwind";
// https://astro.build/config
export default defineConfig({
integrations: [tailwind()]
});

1
deploy.sh Normal file
View File

@ -0,0 +1 @@
rsync -avzh --delete dist/ artem@shironeko:~/arti3.dev/public/

19
package.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "portfolio",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"deploy": "yarn build && wsl ./deploy.sh"
},
"dependencies": {
"@astrojs/tailwind": "^3.0.1",
"astro": "^2.0.4",
"astro-icon": "^0.8.0",
"tailwindcss": "^3.0.24"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

9
public/browserconfig.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#603cba</TileColor>
</tile>
</msapplication>
</browserconfig>

BIN
public/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
public/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
public/mstile-150x150.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -0,0 +1,43 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="500.000000pt" height="500.000000pt" viewBox="0 0 500.000000 500.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M3538 4245 c-2 -2 -38 -6 -80 -9 -191 -16 -411 -69 -563 -135 -124
-54 -345 -180 -345 -196 0 -3 15 -29 34 -58 31 -48 210 -336 300 -483 l38 -62
122 63 c108 55 235 105 307 121 134 29 293 36 387 15 156 -33 234 -120 233
-257 -1 -105 -54 -196 -148 -250 -54 -32 -168 -71 -231 -80 -26 -3 -68 -9 -93
-13 -25 -4 -131 -9 -235 -10 -104 -1 -191 -5 -194 -7 -6 -7 -6 -674 0 -675 3
-1 75 -2 160 -4 356 -5 521 -35 645 -117 83 -55 115 -130 112 -263 -3 -102
-23 -154 -84 -213 -36 -36 -136 -85 -193 -96 -19 -3 -46 -9 -60 -12 -54 -14
-375 -13 -465 2 -197 31 -399 90 -560 164 l-82 38 -1 -378 0 -378 57 -20 c132
-47 181 -62 271 -86 52 -13 117 -27 144 -30 27 -4 52 -9 55 -11 4 -2 38 -6 76
-10 39 -4 81 -9 95 -12 14 -2 131 -6 260 -8 399 -6 677 45 924 170 253 129
419 315 494 555 11 34 16 58 31 153 11 63 5 250 -8 312 -51 227 -160 372 -366
484 -77 43 -234 94 -355 116 -52 10 -98 21 -103 24 -4 4 26 18 65 30 318 103
551 314 633 574 14 43 28 101 32 130 13 88 7 257 -11 327 -19 76 -74 192 -111
235 -15 17 -30 35 -33 40 -13 19 -117 108 -157 133 -207 131 -460 190 -817
190 -98 -1 -179 -2 -180 -3z"/>
<path d="M1218 3475 c-2 -1 -39 -6 -83 -9 -44 -4 -91 -8 -105 -10 -14 -2 -50
-7 -80 -10 -30 -4 -75 -12 -100 -18 -25 -5 -56 -12 -70 -14 -14 -3 -43 -10
-65 -16 -22 -5 -48 -12 -58 -14 -76 -14 -357 -128 -357 -145 0 -8 38 -99 125
-294 31 -71 65 -148 74 -170 10 -22 26 -59 36 -82 10 -24 20 -43 22 -43 2 0
32 12 66 26 167 71 378 136 492 152 28 4 102 7 165 7 98 0 122 -3 164 -23 95
-43 145 -126 153 -254 l5 -78 -33 -1 c-198 -4 -518 -18 -549 -23 -20 -4 -113
-16 -155 -20 -72 -9 -225 -48 -305 -78 -287 -109 -446 -274 -507 -526 -21 -87
-25 -313 -8 -407 8 -38 13 -70 13 -70 0 0 3 -13 7 -30 11 -52 25 -88 68 -175
85 -172 281 -322 463 -354 16 -3 52 -10 80 -15 73 -14 271 -11 383 5 236 35
360 99 534 275 54 54 101 99 106 99 4 0 46 -75 93 -167 l85 -168 314 -3 314
-2 -1 907 c0 500 -4 933 -8 963 -42 317 -220 566 -490 685 -60 26 -208 72
-261 81 -16 2 -46 7 -65 10 -35 6 -456 14 -462 9z m387 -1627 c-2 -73 -6 -146
-10 -162 -7 -34 -48 -113 -73 -142 -68 -79 -194 -134 -309 -134 -98 0 -151 17
-197 64 -49 49 -66 103 -60 193 6 113 58 194 153 242 72 37 119 50 206 57 39
4 71 7 72 8 1 1 51 3 111 4 l109 3 -2 -133z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

19
public/site.webmanifest Normal file
View File

@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-384x384.png",
"sizes": "384x384",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

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

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

33
src/layouts/Layout.astro Normal file
View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#603cba">
<meta name="theme-color" content="#F472B6" />
<meta name="description" content="A laid-back software tinkerer." />
<meta property="og:site_name" content="artie" />
<meta property="og:image" content="https://arti3.dev/apple-touch-icon.png" />
<title>artie</title>
</head>
<body>
<slot />
</body>
</html>
<style is:global>
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@700&display=swap');
html {
font-family: "Open Sans", sans-serif;
background-color: #f6f6f6;
}
code {
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New,
monospace;
}
</style>

47
src/pages/index.astro Normal file
View File

@ -0,0 +1,47 @@
---
import Layout from "../layouts/Layout.astro";
---
<Layout>
<main class="bg-zinc-900 h-screen text-white flex justify-center items-center">
<div class="artie fixed top-4 left-6 text-xl font-bold text-slate-300">
&gt; arti<span class="text-pink-400">3</span>
</div>
<div>
<p class="font-bold dark:text-white text-5xl">
Hiya! I'm <span class="text-transparent bg-clip-text from-pink-400 to-purple-600 bg-gradient-to-r">Artur</span> 👋
</p>
</div>
</main>
</Layout>
<style>
.artie {
font-family: "JetBrains Mono", monospace;
}
.artie::after {
content: "";
position: absolute;
top: 2.4px;
right: -8px;
display: inline-block;
background-color: #606060;
vertical-align: top;
width: 6px;
height: 22px;
animation: blink 1s step-end infinite;
}
@keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>

8
tailwind.config.cjs Normal file
View File

@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
plugins: [],
}

3
tsconfig.json Normal file
View File

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

3406
yarn.lock Normal file

File diff suppressed because it is too large Load Diff