Skip to content

Commit

Permalink
Rewrite site to english language
Browse files Browse the repository at this point in the history
  • Loading branch information
cofob committed Mar 7, 2024
1 parent 0167691 commit 0aaca6e
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="ru">
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<footer class="text-center my-4">
<p>(c) <BlueLine>cofob</BlueLine> 2021--{new Date().getFullYear()}</p>
<p><a href="https://github.com/cofob/cofob.dev">Исходный код сайта</a></p>
<p><a href="https://github.com/cofob/cofob.dev">Website source code</a></p>
</footer>

<style lang="postcss">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Meta.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<!-- Meta - запрещённая в России организация -->
<meta content="#7dd3fc" name="theme-color" />
<meta content="Russian" name="language" />
<meta content="ru_RU" name="og:locale" />
<meta content="en_US" name="og:locale" />
<meta content="cofob.dev" property="og:site_name" />
<meta
content="cofob,cofob.dev,персональный сайт,personal website,кофоб,егор терновой,portfolio,портфолио"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="flex gap-x-3">
<a href="/pgp">PGP</a>
<a href="/portfolio">Портфолио</a>
<a href="/portfolio">Portfolio</a>
</div>
</div>
</nav>
Expand Down
6 changes: 3 additions & 3 deletions src/routes/+error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
import { page } from "$app/stores";
</script>

<Meta title={$page.status.toString()} description="Ошибка {$page.status}" noindex />
<Meta title={$page.status.toString()} description="Error {$page.status}" noindex />

<Section>
<div class="text-center">
<Heading level={1}>
<BlueLine animate>{$page.status}.</BlueLine>
</Heading>
{#if $page.status == 404}
<p>Страница не найдена</p>
<p>Page not found</p>
{/if}
<p>{$page.error?.message}</p>
<a href="/" class="link">На главную -></a>
<a href="/" class="link">Home -></a>
</div>
</Section>
6 changes: 1 addition & 5 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@

<svelte:head>
<link rel="preconnect" href={import.meta.env.VITE_IPFS_ENDPOINT} />
<link
rel="icon"
type="image/x-icon"
href="/static/favicon.ico"
/>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico" />
</svelte:head>

<div>
Expand Down
8 changes: 4 additions & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import { Meta, BlueLine, Section, Heading } from "$lib/components";
</script>

<Meta title="Главная" description="Персональный сайт кофоба" />
<Meta title="Home" description="cofob's personal website" />

<Section>
<div class="text-center py-20 sm:py-32">
<Heading level={1}>
Привет! Я <BlueLine animate>cofob</BlueLine>.
Hi! I'm <BlueLine animate>cofob</BlueLine>.
</Heading>
<p>Разработчик Python, Web приложений.</p>
<p>Python developer.</p>
<a href="/portfolio">
<button class="mt-2 font-semibold text-md rounded-lg border-2 border-zinc-800 p-1"> Портфолио -> </button>
<button class="mt-2 font-semibold text-md rounded-lg border-2 border-zinc-800 p-1"> Portfolio -> </button>
</a>
</div>
</Section>
29 changes: 12 additions & 17 deletions src/routes/portfolio/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,35 @@
import Card from "./Card.svelte";
</script>

<Meta title="Портфолио" description="Список проектов кофоба" />
<Meta title="Portfolio" description="cofob portfolio" />

<Section>
<div class="text-center">
<Heading level={1}>Портфолио</Heading>
<Heading level={1}>Portfolio</Heading>
</div>

<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-2 mt-4">
<Card source="https://github.com/nix-community/mineflake" name="Mineflake">
Утилита для декларативного создания майнкрафт серверов. Написана при помощи Rust и Nix.
A utility for declarative creation of minecraft servers. Written with the help of Rust and Nix.
</Card>
<Card source="https://github.com/cofob/cofob.dev" name="Этот сайт">
Сайт на SvelteKit и TailwindCSS. Сделан для того, чтобы показать свои проекты и немного рассказать о себе.
<Card source="https://github.com/cofob/cofob.dev" name="This site">
Site on SvelteKit and TailwindCSS. Made to show my projects and tell a little about myself.
</Card>
<Card source="https://github.com/fire-square" name="firesquare.ru">
Майнкрафт сервер с богатой историей. Под него разработана своя система деплоя через NixOS (mineflake), свои
плагины, в процессе лаунчер и сайт. Работает более года.
</Card>
<Card source="https://github.com/fire-square/firesquare" name="firesquare launcher">
Майнкрафт лаунчер и API на Rust + Tauri + Yew + Axum. Разработан для firesquare.ru.
</Card>
<Card source="https://github.com/cofob/AlfisViewer/" name="AlfisViewer">
Alfis блокчейн обозреватель на Django.
Minecraft server with a rich history. Under it developed its own system deploy through NixOS (mineflake), its own
plugins. Worked for 2 years.
</Card>
<Card source="https://github.com/cofob/AlfisViewer/" name="AlfisViewer">Alfis blockchain observer on Django.</Card>
<Card source="https://github.com/cofob/DiscordRPC" name="DiscordRPC">
Python программа для собственного статуса Discord Rich Presence.
Python program for Discord Rich Presence's own Discord status.
</Card>
<Card source="https://github.com/cofob/Emercoin.py" name="Emercoin.py">Python API для Emercoin блокчейна.</Card>
<Card source="https://github.com/cofob/Emercoin.py" name="Emercoin.py">Python API for Emercoin blockchain.</Card>
<Card source="https://github.com/cofob/EmerVPN" name="EmerVPN"
>Proof-of-concept реализация анонимного full-mesh wireguard пиринга на блокчейне Emercoin.</Card
>Proof-of-concept implementation of anonymous full-mesh wireguard peering on the Emercoin blockchain.</Card
>
<div class="rounded-lg border-2">
<div class="m-2">
Больше проектов на моём <a href="https://github.com/cofob/" class="link" target="_blank">GitHub</a>.
More projects on my <a href="https://github.com/cofob/" class="link" target="_blank">GitHub</a>.
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/portfolio/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<p class="font-medium text-center">{name}</p>
<p class="mt-1 mx-1" style="flex: 1"><slot /></p>
<a href={source} target="_blank" class="mb-4">
<button>Исходный код</button>
<button>Source code</button>
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/sitemap.xml/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export async function GET() {
<loc>/</loc>
<changefreq>weekly</changefreq>
<priority>1</priority>
<lastmod>2023-11-16</lastmod>
<lastmod>2024-03-07</lastmod>
</url>
<url>
<loc>/portfolio/</loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
<lastmod>2023-11-16</lastmod>
<lastmod>2024-03-07</lastmod>
</url>
</urlset>`,
{ headers: headers },
Expand Down

0 comments on commit 0aaca6e

Please sign in to comment.