Skip to content

Commit

Permalink
Updated UI, integrated i18n, added Russian language for the template,…
Browse files Browse the repository at this point in the history
… added language switcher, and more.
  • Loading branch information
vratskyi committed Feb 29, 2024
1 parent a729b77 commit 22f4698
Show file tree
Hide file tree
Showing 64 changed files with 2,588 additions and 856 deletions.
40 changes: 28 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,41 @@
# Personal Blog & Portfolio
Introducing a versatile and free template designed for use with the latest Astro version. This template boasts frequent updates,
a user-friendly interface, and compatibility with various purposes. Ideal for showcasing your portfolio, crafting blog articles,
and sharing your personal narrative. Unlock the potential to express yourself effortlessly with this template.

# Personal Blog & Portfolio

Introducing a versatile and free template designed for use with the latest Astro version. This template boasts frequent updates, a user-friendly interface, and compatibility with various purposes. Ideal for showcasing your portfolio, crafting blog articles, and sharing your personal narrative. Unlock the potential to express yourself effortlessly with this template.

------------------------------------------------------------------------------
![ov-template](https://i.ibb.co/1GXGRL6/ov-main.png)
![blog page](https://i.ibb.co/THK3vg9/ov-template-1.png)
![portflio](https://i.ibb.co/GFPL2Mq/ov-template-blog.png)
![portflio](https://i.ibb.co/3vPm3hS/ov-template-blog-article.png)
![article page](https://i.ibb.co/XFZ7wM9/ov-template-about.png)
![portflio](https://i.ibb.co/RYbKwCL/ov-template-portflio.png)

## 🧞 Commands
![ov-template](https://i.ibb.co/4WMYGDq/ov-template-main.png)

## ☝️Plans for future updates

1. Pagination for blog
2. Remake menu
3. Integration with one of the headless
CMS (I will choose later)

This roadmap will be updated.

## 🖥️ Commands

All commands are run from the root of the project, from a terminal:
### Instalation



| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run css` | Starts `TailwindCSS` |
------------------------------------------------------------------------------

### Deploy

| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `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 |
------------------------------------------------------------------------------
------------------------------------------------------------------------------
18 changes: 16 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
import { defineConfig } from 'astro/config';
import mdx from "@astrojs/mdx";
import compress from "astro-compress";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
// i18n settings
i18n: {
defaultLocale: "en",
locales: ["en", "ru", {
path: "ru",
codes: ["ru", "ru-RU"]
}],
routing: {
prefixDefaultLocale: true
},
fallback: {
ru: "en"
}
},
output: "hybrid",
integrations: [mdx(), compress({
CSS: true,
HTML: false,
Image: true,
JavaScript: true,
SVG: false
}), tailwind()],
site: 'https://vratskyi.github.io',
site: 'http://localhost:4321',
prefetch: {
prefetchAll: true,
defaultStrategy: 'viewport'
Expand Down
16 changes: 11 additions & 5 deletions favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 15 additions & 6 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ov-template",
"type": "module",
"version": "0.7.2",
"version": "0.8.0",
"repository": {
"type": "git",
"url": "https://github.com/vratskyi/vratskyi.github.io"
Expand All @@ -18,8 +18,9 @@
"@astrojs/mdx": "^2.0.4",
"@astrojs/tailwind": "^5.1.0",
"@tailwindcss/typography": "^0.5.10",
"astro": "^4.4.2",
"astro": "^4.4.4",
"astro-compress": "^2.2.10",
"atropos": "^2.0.2",
"autoprefixer": "^10.4.17",
"cssnano": "^6.0.3"
},
Expand Down
16 changes: 11 additions & 5 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/font/inter/Inter-Black.woff2
Binary file not shown.
Binary file removed public/font/inter/Inter-Bold.woff2
Binary file not shown.
Binary file removed public/font/inter/Inter-ExtraBold.woff2
Binary file not shown.
Binary file removed public/font/inter/Inter-ExtraLight.woff2
Binary file not shown.
Binary file removed public/font/inter/Inter-Light.woff2
Binary file not shown.
Binary file removed public/font/inter/Inter-Medium.woff2
Binary file not shown.
Binary file removed public/font/inter/Inter-Regular.woff2
Binary file not shown.
Binary file removed public/font/inter/Inter-SemiBold.woff2
Binary file not shown.
Binary file removed public/font/inter/Inter-Thin.woff2
Binary file not shown.
13 changes: 13 additions & 0 deletions public/styles/atropos.min.css

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

2 changes: 1 addition & 1 deletion public/styles/global.css

Large diffs are not rendered by default.

Binary file added src/assets/img/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 22f4698

Please sign in to comment.