Astro migration
156
.idea/workspace.xml
Normal file
|
|
@ -0,0 +1,156 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="AutoImportSettings">
|
||||||
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
|
</component>
|
||||||
|
<component name="BackgroundAgentGlobalSettings">
|
||||||
|
<option name="selectedModelId" value="auto" />
|
||||||
|
</component>
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="01345e21-67ff-441a-b47b-439ace178327" name="Changes" comment="Add captcha verification to contact form and improve error handling" />
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="CopilotPersistence">
|
||||||
|
<persistenceIdMap>
|
||||||
|
<entry key="_/Users/sergejskozinecs/MIDCreative/Landing" value="2yH86MRbQxz5i3OVEdtNpqyPg19" />
|
||||||
|
</persistenceIdMap>
|
||||||
|
</component>
|
||||||
|
<component name="FileTemplateManagerImpl">
|
||||||
|
<option name="RECENT_TEMPLATES">
|
||||||
|
<list>
|
||||||
|
<option value="Astro Component" />
|
||||||
|
<option value="CSS File" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||||
|
<map>
|
||||||
|
<entry key="$PROJECT_DIR$" value="main" />
|
||||||
|
</map>
|
||||||
|
</option>
|
||||||
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectColorInfo">{
|
||||||
|
"associatedIndex": 7
|
||||||
|
}</component>
|
||||||
|
<component name="ProjectId" id="2yH86MRbQxz5i3OVEdtNpqyPg19" />
|
||||||
|
<component name="ProjectSessionTemplates">
|
||||||
|
<option name="panelTemplate">
|
||||||
|
<template>
|
||||||
|
<option name="modeId" value="Ask" />
|
||||||
|
<option name="model">
|
||||||
|
<model>
|
||||||
|
<option name="modelType" value="builtin_id" />
|
||||||
|
<option name="modelValue" value="auto" />
|
||||||
|
</model>
|
||||||
|
</option>
|
||||||
|
<option name="targetType" value="BACKGROUND" />
|
||||||
|
<option name="worktreeMode" value="WORKSPACE" />
|
||||||
|
</template>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="ProjectViewState">
|
||||||
|
<option name="autoscrollFromSource" value="true" />
|
||||||
|
<option name="autoscrollToSource" value="true" />
|
||||||
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
|
<option name="showLibraryContents" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PropertiesComponent"><![CDATA[{
|
||||||
|
"keyToString": {
|
||||||
|
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
||||||
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
|
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
||||||
|
"RunOnceActivity.git.unshallow": "true",
|
||||||
|
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
||||||
|
"codeWithMe.voiceChat.enabledByDefault": "false",
|
||||||
|
"copilot.chat.legacySessionMetadata.migrated": "true",
|
||||||
|
"javascript.preferred.runtime.type.id": "node",
|
||||||
|
"js.debugger.nextJs.config.created.client": "true",
|
||||||
|
"js.debugger.nextJs.config.created.server": "true",
|
||||||
|
"junie.onboarding.icon.badge.shown": "true",
|
||||||
|
"last_opened_file_path": "/Users/sergejskozinecs/MIDCreative/Landing/AstroLanding/src",
|
||||||
|
"list.type.of.created.stylesheet": "CSS",
|
||||||
|
"node.js.detected.package.eslint": "true",
|
||||||
|
"node.js.detected.package.jshint": "true",
|
||||||
|
"node.js.detected.package.tslint": "true",
|
||||||
|
"node.js.selected.package.eslint": "(autodetect)",
|
||||||
|
"node.js.selected.package.jshint": "",
|
||||||
|
"node.js.selected.package.tslint": "(autodetect)",
|
||||||
|
"nodejs_package_manager_path": "yarn",
|
||||||
|
"settings.editor.selected.configurable": "vcs.Git",
|
||||||
|
"ts.external.directory.path": "/Users/sergejskozinecs/Applications/WebStorm.app/Contents/plugins/javascript-plugin/jsLanguageServicesImpl/external",
|
||||||
|
"vue.rearranger.settings.migration": "true"
|
||||||
|
}
|
||||||
|
}]]></component>
|
||||||
|
<component name="RecentsManager">
|
||||||
|
<key name="CopyFile.RECENT_KEYS">
|
||||||
|
<recent name="$PROJECT_DIR$/AstroLanding/src" />
|
||||||
|
<recent name="$PROJECT_DIR$/AstroLanding/src/components/Footer" />
|
||||||
|
</key>
|
||||||
|
<key name="MoveFile.RECENT_KEYS">
|
||||||
|
<recent name="$PROJECT_DIR$/AstroLanding/src/components/Contacts" />
|
||||||
|
<recent name="$PROJECT_DIR$/AstroLanding/src/components/Footer" />
|
||||||
|
<recent name="$PROJECT_DIR$/AstroLanding/src/components" />
|
||||||
|
<recent name="$PROJECT_DIR$/AstroLanding/src/styles" />
|
||||||
|
<recent name="$PROJECT_DIR$/AstroLanding/src/assets" />
|
||||||
|
</key>
|
||||||
|
</component>
|
||||||
|
<component name="RunManager" selected="npm.Next.js: server-side">
|
||||||
|
<configuration name="Next.js: debug client-side" type="JavascriptDebugType" uri="http://localhost:3000/">
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
<configuration name="Next.js: server-side" type="js.build_tools.npm">
|
||||||
|
<package-json value="$PROJECT_DIR$/package.json" />
|
||||||
|
<command value="run" />
|
||||||
|
<scripts>
|
||||||
|
<script value="dev" />
|
||||||
|
</scripts>
|
||||||
|
<node-interpreter value="project" />
|
||||||
|
<envs />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
|
<component name="SharedIndexes">
|
||||||
|
<attachedChunks>
|
||||||
|
<set>
|
||||||
|
<option value="bundled-js-predefined-d6986cc7102b-4abd2a77f808-JavaScript-WS-262.8665.259" />
|
||||||
|
</set>
|
||||||
|
</attachedChunks>
|
||||||
|
</component>
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="01345e21-67ff-441a-b47b-439ace178327" name="Changes" comment="" />
|
||||||
|
<created>1749479961271</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1749479961271</updated>
|
||||||
|
<workItem from="1749479962358" duration="3291000" />
|
||||||
|
<workItem from="1750329701914" duration="64000" />
|
||||||
|
<workItem from="1750329776913" duration="2946000" />
|
||||||
|
<workItem from="1784537953715" duration="6202000" />
|
||||||
|
<workItem from="1784899208755" duration="13951000" />
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00001" summary="Add captcha verification to contact form and improve error handling">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1784538195783</created>
|
||||||
|
<option name="number" value="00001" />
|
||||||
|
<option name="presentableId" value="LOCAL-00001" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1784538195783</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="2" />
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="3" />
|
||||||
|
</component>
|
||||||
|
<component name="VcsManagerConfiguration">
|
||||||
|
<MESSAGE value="some latest test changes" />
|
||||||
|
<MESSAGE value="Add captcha verification to contact form and improve error handling" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Add captcha verification to contact form and improve error handling" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
24
AstroLanding/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# jetbrains setting folder
|
||||||
|
.idea/
|
||||||
4
AstroLanding/.vscode/extensions.json
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"recommendations": ["astro-build.astro-vscode", "unifiedjs.vscode-mdx"],
|
||||||
|
"unwantedRecommendations": []
|
||||||
|
}
|
||||||
11
AstroLanding/.vscode/launch.json
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"command": "./node_modules/.bin/astro dev",
|
||||||
|
"name": "Development server",
|
||||||
|
"request": "launch",
|
||||||
|
"type": "node-terminal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
22
AstroLanding/AGENTS.md
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
## Development
|
||||||
|
|
||||||
|
When starting the dev server, use background mode:
|
||||||
|
|
||||||
|
```
|
||||||
|
astro dev --background
|
||||||
|
```
|
||||||
|
|
||||||
|
Manage the background server with `astro dev stop`, `astro dev status`, and `astro dev logs`.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
Full documentation: https://docs.astro.build
|
||||||
|
|
||||||
|
Consult these guides before working on related tasks:
|
||||||
|
|
||||||
|
- [Adding pages, dynamic routes, or middleware](https://docs.astro.build/en/guides/routing/)
|
||||||
|
- [Working with Astro components](https://docs.astro.build/en/basics/astro-components/)
|
||||||
|
- [Using React, Vue, Svelte, or other framework components](https://docs.astro.build/en/guides/framework-components/)
|
||||||
|
- [Adding or managing content](https://docs.astro.build/en/guides/content-collections/)
|
||||||
|
- [Adding styles or using Tailwind](https://docs.astro.build/en/guides/styling/)
|
||||||
|
- [Supporting multiple languages](https://docs.astro.build/en/guides/internationalization/)
|
||||||
1
AstroLanding/CLAUDE.md
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
AGENTS.md
|
||||||
63
AstroLanding/README.md
Normal file
|
|
@ -0,0 +1,63 @@
|
||||||
|
# Astro Starter Kit: Blog
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pnpm create astro@latest -- --template blog
|
||||||
|
```
|
||||||
|
|
||||||
|
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
||||||
|
|
||||||
|
Features:
|
||||||
|
|
||||||
|
- ✅ Minimal styling (make it your own!)
|
||||||
|
- ✅ 100/100 Lighthouse performance
|
||||||
|
- ✅ SEO-friendly with canonical URLs and Open Graph data
|
||||||
|
- ✅ Sitemap support
|
||||||
|
- ✅ RSS Feed support
|
||||||
|
- ✅ Markdown & MDX support
|
||||||
|
|
||||||
|
## 🚀 Project Structure
|
||||||
|
|
||||||
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
|
```text
|
||||||
|
├── public/
|
||||||
|
├── src/
|
||||||
|
│ ├── assets/
|
||||||
|
│ ├── components/
|
||||||
|
│ ├── content/
|
||||||
|
│ ├── layouts/
|
||||||
|
│ └── pages/
|
||||||
|
├── astro.config.mjs
|
||||||
|
├── README.md
|
||||||
|
├── package.json
|
||||||
|
└── tsconfig.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.
|
||||||
|
|
||||||
|
The `src/content/` directory contains "collections" of related Markdown and MDX documents. Use `getCollection()` to retrieve posts from `src/content/blog/`, and type-check your frontmatter using an optional schema. See [Astro's Content Collections docs](https://docs.astro.build/en/guides/content-collections/) to learn more.
|
||||||
|
|
||||||
|
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 |
|
||||||
|
| :------------------------ | :----------------------------------------------- |
|
||||||
|
| `pnpm install` | Installs dependencies |
|
||||||
|
| `pnpm dev` | Starts local dev server at `localhost:4321` |
|
||||||
|
| `pnpm build` | Build your production site to `./dist/` |
|
||||||
|
| `pnpm preview` | Preview your build locally, before deploying |
|
||||||
|
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
|
||||||
|
| `pnpm astro -- --help` | Get help using the Astro CLI |
|
||||||
|
|
||||||
|
## 👀 Want to learn more?
|
||||||
|
|
||||||
|
Check out [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
||||||
|
|
||||||
|
## Credit
|
||||||
|
|
||||||
|
This theme is based off of the lovely [Bear Blog](https://github.com/HermanMartinus/bearblog/).
|
||||||
35
AstroLanding/astro.config.mjs
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
// @ts-check
|
||||||
|
|
||||||
|
import mdx from '@astrojs/mdx';
|
||||||
|
import sitemap from '@astrojs/sitemap';
|
||||||
|
import {defineConfig, fontProviders} from 'astro/config';
|
||||||
|
|
||||||
|
// https://astro.build/config
|
||||||
|
export default defineConfig({
|
||||||
|
site: 'https://example.com',
|
||||||
|
integrations: [mdx(), sitemap()],
|
||||||
|
fonts: [
|
||||||
|
{
|
||||||
|
provider: fontProviders.local(),
|
||||||
|
name: 'Atkinson',
|
||||||
|
cssVariable: '--font-atkinson',
|
||||||
|
fallbacks: ['sans-serif'],
|
||||||
|
options: {
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
src: ['./src/assets/fonts/atkinson-regular.woff'],
|
||||||
|
weight: 400,
|
||||||
|
style: 'normal',
|
||||||
|
display: 'swap',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: ['./src/assets/fonts/atkinson-bold.woff'],
|
||||||
|
weight: 700,
|
||||||
|
style: 'normal',
|
||||||
|
display: 'swap',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
23
AstroLanding/package.json
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"name": "astrolanding",
|
||||||
|
"type": "module",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22.12.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "astro dev",
|
||||||
|
"build": "astro build",
|
||||||
|
"preview": "astro preview",
|
||||||
|
"astro": "astro"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@astrojs/mdx": "^7.0.3",
|
||||||
|
"@astrojs/rss": "^4.0.19",
|
||||||
|
"@astrojs/sitemap": "^3.7.3",
|
||||||
|
"astro": "^7.1.3",
|
||||||
|
"react": "^19.2.8",
|
||||||
|
"react-dom": "^19.2.8",
|
||||||
|
"sharp": "^0.35.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
3977
AstroLanding/pnpm-lock.yaml
Normal file
3
AstroLanding/pnpm-workspace.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
allowBuilds:
|
||||||
|
esbuild: true
|
||||||
|
sharp: true
|
||||||
BIN
AstroLanding/src/assets/blog-placeholder-1.jpg
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
AstroLanding/src/assets/blog-placeholder-2.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
AstroLanding/src/assets/blog-placeholder-3.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
AstroLanding/src/assets/blog-placeholder-4.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
AstroLanding/src/assets/blog-placeholder-5.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
AstroLanding/src/assets/blog-placeholder-about.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
AstroLanding/src/assets/fonts/atkinson-bold.woff
Normal file
BIN
AstroLanding/src/assets/fonts/atkinson-regular.woff
Normal file
|
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 129 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 415 B After Width: | Height: | Size: 415 B |
|
Before Width: | Height: | Size: 975 B After Width: | Height: | Size: 975 B |
|
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 407 B |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 225 KiB After Width: | Height: | Size: 225 KiB |
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 182 KiB After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 483 KiB After Width: | Height: | Size: 483 KiB |
|
Before Width: | Height: | Size: 241 KiB After Width: | Height: | Size: 241 KiB |
|
Before Width: | Height: | Size: 366 KiB After Width: | Height: | Size: 366 KiB |
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 496 KiB After Width: | Height: | Size: 496 KiB |
|
Before Width: | Height: | Size: 246 KiB After Width: | Height: | Size: 246 KiB |
|
Before Width: | Height: | Size: 432 KiB After Width: | Height: | Size: 432 KiB |
|
Before Width: | Height: | Size: 226 KiB After Width: | Height: | Size: 226 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
53
AstroLanding/src/components/BaseHead.astro
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
---
|
||||||
|
// Import the global.css file here so that it is included on
|
||||||
|
// all pages through the use of the <BaseHead /> component.
|
||||||
|
import '@/styles/reset.css';
|
||||||
|
import '@/styles/global.css';
|
||||||
|
import type {ImageMetadata} from 'astro';
|
||||||
|
import FallbackImage from '../assets/blog-placeholder-1.jpg';
|
||||||
|
import {SITE_TITLE} from '../consts';
|
||||||
|
import {Font} from 'astro:assets';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
image?: ImageMetadata;
|
||||||
|
}
|
||||||
|
|
||||||
|
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
||||||
|
|
||||||
|
const {title, description, image = FallbackImage} = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- Global Metadata -->
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg"/>
|
||||||
|
<link rel="icon" href="/favicon.ico"/>
|
||||||
|
<link rel="sitemap" href="/sitemap-index.xml"/>
|
||||||
|
<link
|
||||||
|
rel="alternate"
|
||||||
|
type="application/rss+xml"
|
||||||
|
title={SITE_TITLE}
|
||||||
|
href={new URL('rss.xml', Astro.site)}
|
||||||
|
/>
|
||||||
|
<meta name="generator" content={Astro.generator}/>
|
||||||
|
|
||||||
|
<Font cssVariable="--font-atkinson" preload/>
|
||||||
|
|
||||||
|
<!-- Canonical URL -->
|
||||||
|
<link rel="canonical" href={canonicalURL}/>
|
||||||
|
|
||||||
|
<!-- Primary Meta Tags -->
|
||||||
|
<title>{title}</title>
|
||||||
|
<meta name="description" content={description}/>
|
||||||
|
|
||||||
|
<!-- Open Graph / Facebook -->
|
||||||
|
<meta property="og:type" content="website"/>
|
||||||
|
<meta property="og:url" content={Astro.url}/>
|
||||||
|
<meta property="og:title" content={title}/>
|
||||||
|
<meta property="og:description" content={description}/>
|
||||||
|
<meta property="og:image" content={new URL(image.src, Astro.url)}/>
|
||||||
|
|
||||||
|
<!-- Twitter -->
|
||||||
|
<meta name="twitter:card" content="summary_large_image"/>
|
||||||
62
AstroLanding/src/components/ContactForm/ContactForm.astro
Normal file
|
|
@ -0,0 +1,62 @@
|
||||||
|
---
|
||||||
|
import Image from 'astro/components/Image.astro';
|
||||||
|
import FormInput from '../FormInput/FormInput.astro';
|
||||||
|
import Dog from '@images/main/contact-form/Mask.svg';
|
||||||
|
import BluePlanet from '@images/main/contact-form/Planet Blue.svg';
|
||||||
|
import YellowPlanet from '@images/main/contact-form/Planet Yellow.svg';
|
||||||
|
import { getLangFromUrl, useTranslations } from '@/i18n/utils';
|
||||||
|
import './contact-form.style.css';
|
||||||
|
|
||||||
|
const lang = getLangFromUrl(Astro.url);
|
||||||
|
const t = useTranslations(lang);
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="container contact-form">
|
||||||
|
<h2>{t("contacts.title")}</h2>
|
||||||
|
|
||||||
|
<div class="image">
|
||||||
|
<Image src={Dog} alt="cute dog in space"/>
|
||||||
|
<Image src={BluePlanet} alt="blue planet" class="planet blue"/>
|
||||||
|
<Image src={YellowPlanet} alt="yellow planet" class="planet yellow"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form class="container">
|
||||||
|
<div id="success-message" class="success" style="display: none;"></div>
|
||||||
|
<div id="error-message" class="error" style="display: none;"></div>
|
||||||
|
|
||||||
|
<FormInput
|
||||||
|
type="text"
|
||||||
|
name="name"
|
||||||
|
label={String(t("contacts.name"))}
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
<FormInput
|
||||||
|
type="email"
|
||||||
|
name="email"
|
||||||
|
label={String(t("contacts.email"))}
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
<FormInput
|
||||||
|
type="tel"
|
||||||
|
name="phone"
|
||||||
|
label={String(t("contacts.phone"))}
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
|
||||||
|
<cap-widget data-cap-api-endpoint="https://cap.midcreative.eu/8e5272fb9c08/api/"></cap-widget>
|
||||||
|
|
||||||
|
<div id="captcha-error" class="error" style="display: none; margin-top: 10px;">
|
||||||
|
{t("contacts.captchaError") || "Please complete the captcha"}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="submit">{t("contacts.send")}</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const form = document.querySelector('.contact-form form');
|
||||||
|
form?.addEventListener('submit', (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
console.log('Form submitted - add your logic here');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
124
AstroLanding/src/components/ContactForm/contact-form.style.css
Normal file
|
|
@ -0,0 +1,124 @@
|
||||||
|
/* contact-form.style.css */
|
||||||
|
|
||||||
|
section.content .contact-form h2 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form h2 {
|
||||||
|
grid-column: 1/6;
|
||||||
|
grid-row: 1/2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .success {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
color: rgba(116, 199, 103, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .error {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
color: rgba(246, 81, 81, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .error a {
|
||||||
|
color: rgba(246, 81, 81, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form form {
|
||||||
|
grid-column: 1/5;
|
||||||
|
grid-row: 2/3;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form form.container {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form form .btn {
|
||||||
|
grid-column: 1/10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .image {
|
||||||
|
grid-column: 6/13;
|
||||||
|
grid-row: 1/3;
|
||||||
|
margin-left: auto;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .image img:first-child {
|
||||||
|
background: linear-gradient(
|
||||||
|
0deg,
|
||||||
|
rgba(27, 27, 27, 0.2),
|
||||||
|
rgba(27, 27, 27, 0.2)
|
||||||
|
),
|
||||||
|
rgba(255, 255, 255, 0.01);
|
||||||
|
box-shadow: inset 0px 2px 5px rgb(255 255 255 / 15%);
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
border-radius: 33px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .image .planet {
|
||||||
|
position: absolute;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .image .planet.blue {
|
||||||
|
right: -133px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .image .planet.yellow {
|
||||||
|
left: -124px;
|
||||||
|
top: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tablet breakpoint */
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.contact-form form {
|
||||||
|
padding-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form h2,
|
||||||
|
.contact-form form {
|
||||||
|
grid-column: 1/7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .image {
|
||||||
|
grid-column: 8/13;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mobile breakpoint */
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.contact-form h2,
|
||||||
|
.contact-form .image,
|
||||||
|
.contact-form form {
|
||||||
|
grid-column: 1/7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form h2,
|
||||||
|
.contact-form .image,
|
||||||
|
.contact-form form .btn {
|
||||||
|
grid-column: 2/6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form h2 {
|
||||||
|
grid-row: 1/2;
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .image {
|
||||||
|
grid-row: 2/3;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form .image img {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form form {
|
||||||
|
grid-row: 3/4;
|
||||||
|
}
|
||||||
|
}
|
||||||
39
AstroLanding/src/components/Contacts/Contacts.astro
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
---
|
||||||
|
import {Image} from 'astro:assets';
|
||||||
|
import Phone from '@images/main/footer/phone.png';
|
||||||
|
import Email from '@images/main/footer/email.png';
|
||||||
|
import Telegram from '@images/main/footer/telegram.png';
|
||||||
|
import Whatsapp from '@images/main/footer/whatsapp.png';
|
||||||
|
import './contacts.style.css';
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="container contacts">
|
||||||
|
<div>
|
||||||
|
<a href="tel:+37125704038">
|
||||||
|
<Image src={Phone} alt="phone" width={64} height={64}/>
|
||||||
|
</a>
|
||||||
|
<a href="tel:+37125704038">+371 25704038</a>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="mailto:info@midcreative.eu">
|
||||||
|
<Image src={Email} alt="email" width={64} height={64}/>
|
||||||
|
</a>
|
||||||
|
<a href="mailto:info@midcreative.eu">info@midcreative.eu</a>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="https://telegram.me/shiseri" target="_blank" rel="noreferrer">
|
||||||
|
<Image src={Telegram} alt="telegram" width={64} height={64}/>
|
||||||
|
</a>
|
||||||
|
<a href="https://telegram.me/shiseri" target="_blank" rel="noreferrer">
|
||||||
|
Telegram
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="https://wa.me/37125704038" target="_blank" rel="noreferrer">
|
||||||
|
<Image src={Whatsapp} alt="whatsapp" width={64} height={64}/>
|
||||||
|
</a>
|
||||||
|
<a href="https://wa.me/37125704038" target="_blank" rel="noreferrer">
|
||||||
|
WhatsApp
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
31
AstroLanding/src/components/Contacts/contacts.style.css
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
#contact-us {
|
||||||
|
scroll-margin-block-start: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contacts {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding-bottom: 100px;
|
||||||
|
border-bottom: 1px solid #665469;
|
||||||
|
|
||||||
|
div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 150px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
div {
|
||||||
|
width: 45%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
41
AstroLanding/src/components/Footer/Footer.astro
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
---
|
||||||
|
import {Image} from 'astro:assets';
|
||||||
|
|
||||||
|
// src/components/Footer/Footer.astro
|
||||||
|
import Contacts from '@components/Contacts/Contacts.astro';
|
||||||
|
import TopLine from '@images/main/footer/top-line.png';
|
||||||
|
import Logo from '@images/main/footer/logo.svg';
|
||||||
|
import { getLangFromUrl, useTranslatedPath, useTranslations } from '@/i18n/utils';
|
||||||
|
import './footer.style.css';
|
||||||
|
|
||||||
|
const lang = getLangFromUrl(Astro.url);
|
||||||
|
const t = useTranslations(lang);
|
||||||
|
const translatePath = useTranslatedPath(lang);
|
||||||
|
---
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<Image class="line" src={TopLine} alt="" />
|
||||||
|
<Contacts/>
|
||||||
|
|
||||||
|
<div class="container info">
|
||||||
|
<div>
|
||||||
|
<h6>{t("footer.company")}</h6>
|
||||||
|
<p class="gray">SIA MID Creative</p>
|
||||||
|
<h6>{t("footer.registration_nr")}</h6>
|
||||||
|
<p class="gray">40203288612</p>
|
||||||
|
<h6>{t("footer.address")}</h6>
|
||||||
|
<p class="gray">Rīga, Gaiļezera iela 11 - 5, LV-1079</p>
|
||||||
|
</div>
|
||||||
|
<nav>
|
||||||
|
<h6>{t("footer.navigation")}</h6>
|
||||||
|
<a href={translatePath('/#top')} class="gray mobile">{t("menu.home")}</a>
|
||||||
|
<a href={translatePath('/#services')} class="gray">{t("menu.services")}</a>
|
||||||
|
<a href={translatePath('/#about-us')} class="gray">{t("menu.about_us")}</a>
|
||||||
|
<a href={translatePath('/#projects')} class="gray">{t("menu.portfolio")}</a>
|
||||||
|
<a href={translatePath('/#contact-us')} class="gray">{t("menu.contact_us")}</a>
|
||||||
|
</nav>
|
||||||
|
<div>
|
||||||
|
<Image src={Logo} alt=""/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
79
AstroLanding/src/components/Footer/footer.style.css
Normal file
|
|
@ -0,0 +1,79 @@
|
||||||
|
footer {
|
||||||
|
background: radial-gradient(
|
||||||
|
62.99% 90.27% at 50% 0%,
|
||||||
|
rgba(225, 104, 154, 0.32) 0%,
|
||||||
|
rgba(141, 162, 243, 0) 65.06%
|
||||||
|
);
|
||||||
|
margin-top: 192px;
|
||||||
|
|
||||||
|
.line {
|
||||||
|
margin: 0 auto;
|
||||||
|
height: 100px;
|
||||||
|
transform: translateY(-50px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
margin-top: 68px;
|
||||||
|
padding-bottom: 237px;
|
||||||
|
|
||||||
|
div {
|
||||||
|
grid-row: 1/2;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
grid-column: 5/9;
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
grid-column: 1/5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
grid-column: 9/13;
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
display: block;
|
||||||
|
width: fit-content;
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.mobile {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
padding-bottom: 110px;
|
||||||
|
justify-items: center;
|
||||||
|
|
||||||
|
div:first-child,
|
||||||
|
div:last-child,
|
||||||
|
nav {
|
||||||
|
grid-column: 1/7;
|
||||||
|
grid-row: unset;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a.mobile {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
AstroLanding/src/components/FormInput/FormInput.astro
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
import "./form-input.style.css";
|
||||||
|
import type {HTMLAttributes} from "astro/types";
|
||||||
|
|
||||||
|
interface Props extends HTMLAttributes<"input"> {
|
||||||
|
label: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const {label, id = `input-${crypto.randomUUID()}`, placeholder = " ", ...otherProps} = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="form-input-group">
|
||||||
|
<input id={id} placeholder={placeholder} {...otherProps}/>
|
||||||
|
<label for={id} class="form-input-label">{label}</label>
|
||||||
|
</div>
|
||||||
55
AstroLanding/src/components/FormInput/form-input.style.css
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
/* form-input.style.css */
|
||||||
|
|
||||||
|
.form-input-group {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
|
||||||
|
input {
|
||||||
|
grid-column: 1/4;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
|
||||||
|
width: 100%;
|
||||||
|
height: 36px;
|
||||||
|
margin-bottom: 39px;
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
font: inherit;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:placeholder-shown ~ .form-input-label {
|
||||||
|
top: 6px;
|
||||||
|
opacity: 0.5;
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus ~ .form-input-label,
|
||||||
|
&:not(:placeholder-shown) ~ .form-input-label {
|
||||||
|
top: -20px;
|
||||||
|
opacity: 1;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-input-label {
|
||||||
|
position: absolute;
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
text-transform: uppercase;
|
||||||
|
transition: 300ms ease all;
|
||||||
|
pointer-events: none;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
&:autofill,
|
||||||
|
&:-webkit-autofill:hover,
|
||||||
|
&:-webkit-autofill:focus {
|
||||||
|
-webkit-text-fill-color: var(--color-text-primary);
|
||||||
|
-webkit-box-shadow: 0 0 0px 1000px #111 inset;
|
||||||
|
}
|
||||||
|
}
|
||||||
17
AstroLanding/src/components/FormattedDate.astro
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
interface Props {
|
||||||
|
date: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { date } = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<time datetime={date.toISOString()}>
|
||||||
|
{
|
||||||
|
date.toLocaleDateString('en-us', {
|
||||||
|
year: 'numeric',
|
||||||
|
month: 'short',
|
||||||
|
day: 'numeric',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</time>
|
||||||
85
AstroLanding/src/components/Header.astro
Normal file
|
|
@ -0,0 +1,85 @@
|
||||||
|
---
|
||||||
|
import { SITE_TITLE } from '../consts';
|
||||||
|
import HeaderLink from './HeaderLink.astro';
|
||||||
|
---
|
||||||
|
|
||||||
|
<header>
|
||||||
|
<nav>
|
||||||
|
<h2><a href="/">{SITE_TITLE}</a></h2>
|
||||||
|
<div class="internal-links">
|
||||||
|
<HeaderLink href="/">Home</HeaderLink>
|
||||||
|
<HeaderLink href="/blog">Blog</HeaderLink>
|
||||||
|
<HeaderLink href="/about">About</HeaderLink>
|
||||||
|
</div>
|
||||||
|
<div class="social-links">
|
||||||
|
<a href="https://m.webtoo.ls/@astro" target="_blank">
|
||||||
|
<span class="sr-only">Follow Astro on Mastodon</span>
|
||||||
|
<svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32"
|
||||||
|
><path
|
||||||
|
fill="currentColor"
|
||||||
|
d="M11.19 12.195c2.016-.24 3.77-1.475 3.99-2.603.348-1.778.32-4.339.32-4.339 0-3.47-2.286-4.488-2.286-4.488C12.062.238 10.083.017 8.027 0h-.05C5.92.017 3.942.238 2.79.765c0 0-2.285 1.017-2.285 4.488l-.002.662c-.004.64-.007 1.35.011 2.091.083 3.394.626 6.74 3.78 7.57 1.454.383 2.703.463 3.709.408 1.823-.1 2.847-.647 2.847-.647l-.06-1.317s-1.303.41-2.767.36c-1.45-.05-2.98-.156-3.215-1.928a3.614 3.614 0 0 1-.033-.496s1.424.346 3.228.428c1.103.05 2.137-.064 3.188-.189zm1.613-2.47H11.13v-4.08c0-.859-.364-1.295-1.091-1.295-.804 0-1.207.517-1.207 1.541v2.233H7.168V5.89c0-1.024-.403-1.541-1.207-1.541-.727 0-1.091.436-1.091 1.296v4.079H3.197V5.522c0-.859.22-1.541.66-2.046.456-.505 1.052-.764 1.793-.764.856 0 1.504.328 1.933.983L8 4.39l.417-.695c.429-.655 1.077-.983 1.934-.983.74 0 1.336.259 1.791.764.442.505.661 1.187.661 2.046v4.203z"
|
||||||
|
></path></svg
|
||||||
|
>
|
||||||
|
</a>
|
||||||
|
<a href="https://twitter.com/astrodotbuild" target="_blank">
|
||||||
|
<span class="sr-only">Follow Astro on Twitter</span>
|
||||||
|
<svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32"
|
||||||
|
><path
|
||||||
|
fill="currentColor"
|
||||||
|
d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"
|
||||||
|
></path></svg
|
||||||
|
>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/withastro/astro" target="_blank">
|
||||||
|
<span class="sr-only">Go to Astro's GitHub repo</span>
|
||||||
|
<svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32"
|
||||||
|
><path
|
||||||
|
fill="currentColor"
|
||||||
|
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
|
||||||
|
></path></svg
|
||||||
|
>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
<style>
|
||||||
|
header {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 1em;
|
||||||
|
background: white;
|
||||||
|
box-shadow: 0 2px 8px rgba(var(--black), 5%);
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 a,
|
||||||
|
h2 a.active {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
nav {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
nav a {
|
||||||
|
padding: 1em 0.5em;
|
||||||
|
color: var(--black);
|
||||||
|
border-bottom: 4px solid transparent;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
nav a.active {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom-color: var(--accent);
|
||||||
|
}
|
||||||
|
.social-links,
|
||||||
|
.social-links a {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
@media (max-width: 720px) {
|
||||||
|
.social-links {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
110
AstroLanding/src/components/Header/Header.astro
Normal file
|
|
@ -0,0 +1,110 @@
|
||||||
|
---
|
||||||
|
import "./header.style.css";
|
||||||
|
import { Image } from "astro:assets";
|
||||||
|
import Logo from "@images/main/header/logo.svg";
|
||||||
|
import Logo2 from "@images/main/footer/logo.svg";
|
||||||
|
import Phone from "@images/main/footer/phone.png";
|
||||||
|
import Email from "@images/main/footer/email.png";
|
||||||
|
import { languages, type SupportedLang } from "@/i18n/ui";
|
||||||
|
import { getLangFromUrl, useTranslatedPath, useTranslations } from "@/i18n/utils";
|
||||||
|
|
||||||
|
const lang = getLangFromUrl(Astro.url);
|
||||||
|
const t = useTranslations(lang);
|
||||||
|
const translatePath = useTranslatedPath(lang);
|
||||||
|
---
|
||||||
|
|
||||||
|
<header>
|
||||||
|
<div class="cont">
|
||||||
|
<div class="logo">
|
||||||
|
<Image src={Logo} alt="MID"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav class="navigation">
|
||||||
|
<a href={translatePath("/#services")}>{t("menu.services")}</a>
|
||||||
|
<a href={translatePath("/#about-us")}>{t("menu.about_us")}</a>
|
||||||
|
<a href={translatePath("/#projects")}>{t("menu.portfolio")}</a>
|
||||||
|
<a href={translatePath("/#contact-us")}>{t("menu.contact_us")}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<nav class="lang-switcher" aria-label="Language switcher">
|
||||||
|
{Object.entries(languages).map(([locale, label]) => {
|
||||||
|
const targetLang = locale as SupportedLang;
|
||||||
|
return (
|
||||||
|
<a href={translatePath("/", targetLang)} class={targetLang === lang ? "active" : ""}>
|
||||||
|
{label}
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<button class="mobile-menu-btn" aria-label="Toggle menu" aria-expanded="false">
|
||||||
|
<span id="top-left"></span>
|
||||||
|
<span id="top-right"></span>
|
||||||
|
<span id="center-left"></span>
|
||||||
|
<span id="center-right"></span>
|
||||||
|
<span id="bottom-left"></span>
|
||||||
|
<span id="bottom-right"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="mobile-menu">
|
||||||
|
<Image src={Logo2} alt="MID Creative Digital Agency"/>
|
||||||
|
|
||||||
|
<nav class="navigation">
|
||||||
|
<a href={translatePath("/#top")}>{t("menu.home")}</a>
|
||||||
|
<a href={translatePath("/#services")}>{t("menu.services")}</a>
|
||||||
|
<a href={translatePath("/#about-us")}>{t("menu.about_us")}</a>
|
||||||
|
<a href={translatePath("/#projects")}>{t("menu.portfolio")}</a>
|
||||||
|
<a href={translatePath("/#contact-us")}>{t("menu.contact_us")}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<nav class="lang-switcher" aria-label="Language switcher mobile">
|
||||||
|
{Object.entries(languages).map(([locale, label]) => {
|
||||||
|
const targetLang = locale as SupportedLang;
|
||||||
|
return (
|
||||||
|
<a href={translatePath("/", targetLang)} class={targetLang === lang ? "active" : ""}>
|
||||||
|
{label}
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="header-contacts">
|
||||||
|
<a href="tel:+37126620770">
|
||||||
|
<Image src={Phone} alt="phone"/>
|
||||||
|
</a>
|
||||||
|
<a href="tel:+37126620770">+371 2662 0770</a>
|
||||||
|
</div>
|
||||||
|
<div class="header-contacts">
|
||||||
|
<a href="mailto:info@midcreative.eu">
|
||||||
|
<Image src={Email} alt="email"/>
|
||||||
|
</a>
|
||||||
|
<a href="mailto:info@midcreative.eu">info@midcreative.eu</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const btn = document.querySelector('.mobile-menu-btn') as HTMLElement;
|
||||||
|
const menu = document.querySelector('.mobile-menu') as HTMLElement;
|
||||||
|
|
||||||
|
btn.addEventListener('click', () => {
|
||||||
|
const isOpen = menu.classList.toggle('open');
|
||||||
|
btn.classList.toggle('open');
|
||||||
|
btn.setAttribute('aria-expanded', String(isOpen));
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('click', (e) => {
|
||||||
|
if (!menu.contains(e.target as Node) && !btn.contains(e.target as Node)) {
|
||||||
|
menu.classList.remove('open');
|
||||||
|
btn.classList.remove('open');
|
||||||
|
btn.setAttribute('aria-expanded', 'false');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener('resize', () => {
|
||||||
|
menu.classList.remove('open');
|
||||||
|
btn.classList.remove('open');
|
||||||
|
btn.setAttribute('aria-expanded', 'false');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
236
AstroLanding/src/components/Header/header.style.css
Normal file
|
|
@ -0,0 +1,236 @@
|
||||||
|
/* header.style.css */
|
||||||
|
|
||||||
|
header {
|
||||||
|
backdrop-filter: blur(5px);
|
||||||
|
z-index: 1000;
|
||||||
|
position: fixed;
|
||||||
|
width: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
|
||||||
|
.cont {
|
||||||
|
padding: 44px 20px;
|
||||||
|
max-width: 1224px;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto 1fr;
|
||||||
|
margin: 0 auto;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.navigation {
|
||||||
|
display: flex;
|
||||||
|
column-gap: 55px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lang-switcher {
|
||||||
|
display: flex;
|
||||||
|
column-gap: 10px;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
|
||||||
|
a {
|
||||||
|
opacity: 0.65;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 14px;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
opacity: 1;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-btn {
|
||||||
|
position: fixed;
|
||||||
|
right: 20px;
|
||||||
|
z-index: 3;
|
||||||
|
width: 23px;
|
||||||
|
height: 23px;
|
||||||
|
display: none;
|
||||||
|
cursor: pointer;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
span {
|
||||||
|
background-color: #fff;
|
||||||
|
height: 5px;
|
||||||
|
position: absolute;
|
||||||
|
transition: all ease-in-out 0.4s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#top-left {
|
||||||
|
width: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#top-right {
|
||||||
|
width: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#center-left {
|
||||||
|
width: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#center-right {
|
||||||
|
width: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#bottom-left {
|
||||||
|
width: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#bottom-right {
|
||||||
|
width: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#top-left, #top-right {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#top-left {
|
||||||
|
right: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#center-left, #center-right {
|
||||||
|
top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#bottom-left, #bottom-right {
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#top-right, #center-right, #bottom-right, #bottom-left {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#center-left {
|
||||||
|
left: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
#top-right, #center-right {
|
||||||
|
width: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#center-right, #center-left {
|
||||||
|
right: 9px;
|
||||||
|
left: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
#bottom-left {
|
||||||
|
right: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#center-left {
|
||||||
|
left: 9px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 96px 0;
|
||||||
|
background: radial-gradient(
|
||||||
|
59.78% 25.3% at 50% 50%,
|
||||||
|
rgba(225, 104, 154, 0.15) 0%,
|
||||||
|
rgba(141, 162, 243, 0.063) 49.1%,
|
||||||
|
rgba(23, 23, 23, 0) 100%
|
||||||
|
), rgba(13, 13, 13, 0.95);
|
||||||
|
box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.15);
|
||||||
|
backdrop-filter: blur(15px);
|
||||||
|
z-index: 2;
|
||||||
|
position: fixed;
|
||||||
|
height: 100vh;
|
||||||
|
width: 295px;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
transform: translateX(100%);
|
||||||
|
transition: transform ease 0.4s;
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigation {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-bottom: 28px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-contacts {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
img {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:first-child {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lang-switcher {
|
||||||
|
display: flex;
|
||||||
|
column-gap: 16px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-transform: uppercase;
|
||||||
|
opacity: 0.65;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
opacity: 1;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.logo {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
24
AstroLanding/src/components/HeaderLink.astro
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
import type { HTMLAttributes } from 'astro/types';
|
||||||
|
|
||||||
|
type Props = HTMLAttributes<'a'>;
|
||||||
|
|
||||||
|
const { href, class: className, ...props } = Astro.props;
|
||||||
|
const pathname = Astro.url.pathname.replace(import.meta.env.BASE_URL, '');
|
||||||
|
const subpath = pathname.match(/[^\/]+/g);
|
||||||
|
const isActive = href === pathname || href === '/' + (subpath?.[0] || '');
|
||||||
|
---
|
||||||
|
|
||||||
|
<a href={href} class:list={[className, { active: isActive }]} {...props}>
|
||||||
|
<slot />
|
||||||
|
</a>
|
||||||
|
<style>
|
||||||
|
a {
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
a.active {
|
||||||
|
font-weight: bolder;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
123
AstroLanding/src/components/HomePage.astro
Normal file
|
|
@ -0,0 +1,123 @@
|
||||||
|
---
|
||||||
|
import BaseHead from "@components/BaseHead.astro";
|
||||||
|
import Footer from "@/components/Footer/Footer.astro";
|
||||||
|
import Header from "@components/Header/Header.astro";
|
||||||
|
import { SITE_DESCRIPTION, SITE_TITLE } from "@consts";
|
||||||
|
import ContactForm from "@/components/ContactForm/ContactForm.astro";
|
||||||
|
import { Image } from "astro:assets";
|
||||||
|
import type { ImageMetadata } from "astro";
|
||||||
|
import Circle from "@images/main/services/circle.png";
|
||||||
|
import Rocket from "@images/main/about-us/rocket.png";
|
||||||
|
import IntroAstronaut from "@images/main/intro/astronaut.png";
|
||||||
|
import IntroSpaceship from "@images/main/intro/spaceship.svg";
|
||||||
|
import { useTranslations } from "@/i18n/utils";
|
||||||
|
import type { SupportedLang } from "@/i18n/ui";
|
||||||
|
|
||||||
|
import "../styles/index.css";
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
lang: SupportedLang;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { lang } = Astro.props;
|
||||||
|
const t = useTranslations(lang);
|
||||||
|
|
||||||
|
const cards =
|
||||||
|
(t("services.cards") as Array<{ image: string; title: string; text: string }>) || [];
|
||||||
|
|
||||||
|
const images = import.meta.glob<{ default: ImageMetadata }>(
|
||||||
|
"../assets/images/main/services/*.svg",
|
||||||
|
{ eager: true },
|
||||||
|
);
|
||||||
|
|
||||||
|
const getImage = (imageName: string) => {
|
||||||
|
const path = `../assets/images/main/services/${imageName}`;
|
||||||
|
return images[path]?.default;
|
||||||
|
};
|
||||||
|
---
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang={lang}>
|
||||||
|
<head>
|
||||||
|
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="main-page" id="top">
|
||||||
|
<div class="intro-bg">
|
||||||
|
<Header />
|
||||||
|
<section class="container intro" id="home">
|
||||||
|
<div class="intro__title">
|
||||||
|
<h1>
|
||||||
|
{t("intro.creating")} <span>{t("intro.websites")}</span>
|
||||||
|
</h1>
|
||||||
|
<ul class="intro__items" aria-label="Intro services">
|
||||||
|
<li>{t("intro.apps")}</li>
|
||||||
|
<li>{t("intro.shops")}</li>
|
||||||
|
<li>{t("intro.platforms")}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="intro__image">
|
||||||
|
<Image src={IntroAstronaut} alt="" loading="eager" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="intro__rocket">
|
||||||
|
<Image src={IntroSpaceship} alt="" />
|
||||||
|
<p>{t("intro.explore")}</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section class="content container" id="services">
|
||||||
|
<h2>{t("services.title")}</h2>
|
||||||
|
<div class="container services">
|
||||||
|
<Image src={Circle} alt="circle" class="circle" />
|
||||||
|
{cards.map((card) => {
|
||||||
|
const imgSrc = getImage(card.image);
|
||||||
|
return (
|
||||||
|
imgSrc && (
|
||||||
|
<div class="card">
|
||||||
|
<Image src={imgSrc} alt="icon" />
|
||||||
|
<h3>{card.title}</h3>
|
||||||
|
<p>{card.text}</p>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="content container" id="about-us">
|
||||||
|
<div class="about-us container">
|
||||||
|
<div>
|
||||||
|
<Image src={Rocket} alt="rocket" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h5>{t("about_us.sub_title")}</h5>
|
||||||
|
<p class="text">{t("about_us.text")}</p>
|
||||||
|
<div class="stats">
|
||||||
|
<div>
|
||||||
|
<h4>{t("about_us.amount_completed")}</h4>
|
||||||
|
<p>{t("about_us.completed")}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>{t("about_us.amount_webpages")}</h4>
|
||||||
|
<p>{t("about_us.webpages")}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>{t("about_us.amount_experience")}</h4>
|
||||||
|
<p>{t("about_us.experience")}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="content container" id="contact-us">
|
||||||
|
<ContactForm />
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
5
AstroLanding/src/consts.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
// Place any global data in this file.
|
||||||
|
// You can import this data from anywhere in your site by using the `import` keyword.
|
||||||
|
|
||||||
|
export const SITE_TITLE = 'Astro Blog';
|
||||||
|
export const SITE_DESCRIPTION = 'Welcome to my website!';
|
||||||
20
AstroLanding/src/content.config.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
import { defineCollection } from 'astro:content';
|
||||||
|
import { glob } from 'astro/loaders';
|
||||||
|
import { z } from 'astro/zod';
|
||||||
|
|
||||||
|
const blog = defineCollection({
|
||||||
|
// Load Markdown and MDX files in the `src/content/blog/` directory.
|
||||||
|
loader: glob({ base: './src/content/blog', pattern: '**/*.{md,mdx}' }),
|
||||||
|
// Type-check frontmatter using a schema
|
||||||
|
schema: ({ image }) =>
|
||||||
|
z.object({
|
||||||
|
title: z.string(),
|
||||||
|
description: z.string(),
|
||||||
|
// Transform string to Date object
|
||||||
|
pubDate: z.coerce.date(),
|
||||||
|
updatedDate: z.coerce.date().optional(),
|
||||||
|
heroImage: z.optional(image()),
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
|
export const collections = { blog };
|
||||||
16
AstroLanding/src/content/blog/first-post.md
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
title: 'First post'
|
||||||
|
description: 'Lorem ipsum dolor sit amet'
|
||||||
|
pubDate: 'Jul 08 2022'
|
||||||
|
heroImage: '../../assets/blog-placeholder-3.jpg'
|
||||||
|
---
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
|
||||||
|
|
||||||
|
Morbi tristique senectus et netus. Id semper risus in hendrerit gravida rutrum quisque non tellus. Habitasse platea dictumst quisque sagittis purus sit amet. Tellus molestie nunc non blandit massa. Cursus vitae congue mauris rhoncus. Accumsan tortor posuere ac ut. Fringilla urna porttitor rhoncus dolor. Elit ullamcorper dignissim cras tincidunt lobortis. In cursus turpis massa tincidunt dui ut ornare lectus. Integer feugiat scelerisque varius morbi enim nunc. Bibendum neque egestas congue quisque egestas diam. Cras ornare arcu dui vivamus arcu felis bibendum. Dignissim suspendisse in est ante in nibh mauris. Sed tempus urna et pharetra pharetra massa massa ultricies mi.
|
||||||
|
|
||||||
|
Mollis nunc sed id semper risus in. Convallis a cras semper auctor neque. Diam sit amet nisl suscipit. Lacus viverra vitae congue eu consequat ac felis donec. Egestas integer eget aliquet nibh praesent tristique magna sit amet. Eget magna fermentum iaculis eu non diam. In vitae turpis massa sed elementum. Tristique et egestas quis ipsum suspendisse ultrices. Eget lorem dolor sed viverra ipsum. Vel turpis nunc eget lorem dolor sed viverra. Posuere ac ut consequat semper viverra nam. Laoreet suspendisse interdum consectetur libero id faucibus. Diam phasellus vestibulum lorem sed risus ultricies tristique. Rhoncus dolor purus non enim praesent elementum facilisis. Ultrices tincidunt arcu non sodales neque. Tempus egestas sed sed risus pretium quam vulputate. Viverra suspendisse potenti nullam ac tortor vitae purus faucibus ornare. Fringilla urna porttitor rhoncus dolor purus non. Amet dictum sit amet justo donec enim.
|
||||||
|
|
||||||
|
Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Tortor posuere ac ut consequat semper viverra. Tellus mauris a diam maecenas sed enim ut sem viverra. Venenatis urna cursus eget nunc scelerisque viverra mauris in. Arcu ac tortor dignissim convallis aenean et tortor at. Curabitur gravida arcu ac tortor dignissim convallis aenean et tortor. Egestas tellus rutrum tellus pellentesque eu. Fusce ut placerat orci nulla pellentesque dignissim enim sit amet. Ut enim blandit volutpat maecenas volutpat blandit aliquam etiam. Id donec ultrices tincidunt arcu. Id cursus metus aliquam eleifend mi.
|
||||||
|
|
||||||
|
Tempus quam pellentesque nec nam aliquam sem. Risus at ultrices mi tempus imperdiet. Id porta nibh venenatis cras sed felis eget velit. Ipsum a arcu cursus vitae. Facilisis magna etiam tempor orci eu lobortis elementum. Tincidunt dui ut ornare lectus sit. Quisque non tellus orci ac. Blandit libero volutpat sed cras. Nec tincidunt praesent semper feugiat nibh sed pulvinar proin gravida. Egestas integer eget aliquet nibh praesent tristique magna.
|
||||||
214
AstroLanding/src/content/blog/markdown-style-guide.md
Normal file
|
|
@ -0,0 +1,214 @@
|
||||||
|
---
|
||||||
|
title: 'Markdown Style Guide'
|
||||||
|
description: 'Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.'
|
||||||
|
pubDate: 'Jun 19 2024'
|
||||||
|
heroImage: '../../assets/blog-placeholder-1.jpg'
|
||||||
|
---
|
||||||
|
|
||||||
|
Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.
|
||||||
|
|
||||||
|
## Headings
|
||||||
|
|
||||||
|
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
|
||||||
|
|
||||||
|
# H1
|
||||||
|
|
||||||
|
## H2
|
||||||
|
|
||||||
|
### H3
|
||||||
|
|
||||||
|
#### H4
|
||||||
|
|
||||||
|
##### H5
|
||||||
|
|
||||||
|
###### H6
|
||||||
|
|
||||||
|
## Paragraph
|
||||||
|
|
||||||
|
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
|
||||||
|
|
||||||
|
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
|
||||||
|
|
||||||
|
## Images
|
||||||
|
|
||||||
|
### Syntax
|
||||||
|
|
||||||
|
```markdown
|
||||||
|

|
||||||
|
```
|
||||||
|
|
||||||
|
### Output
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Blockquotes
|
||||||
|
|
||||||
|
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
|
||||||
|
|
||||||
|
### Blockquote without attribution
|
||||||
|
|
||||||
|
#### Syntax
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||||
|
> **Note** that you can use _Markdown syntax_ within a blockquote.
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Output
|
||||||
|
|
||||||
|
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||||
|
> **Note** that you can use _Markdown syntax_ within a blockquote.
|
||||||
|
|
||||||
|
### Blockquote with attribution
|
||||||
|
|
||||||
|
#### Syntax
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
> Don't communicate by sharing memory, share memory by communicating.<br>
|
||||||
|
> — <cite>Rob Pike[^1]</cite>
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Output
|
||||||
|
|
||||||
|
> Don't communicate by sharing memory, share memory by communicating.<br>
|
||||||
|
> — <cite>Rob Pike[^1]</cite>
|
||||||
|
|
||||||
|
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
|
||||||
|
|
||||||
|
## Tables
|
||||||
|
|
||||||
|
### Syntax
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
| Italics | Bold | Code |
|
||||||
|
| --------- | -------- | ------ |
|
||||||
|
| _italics_ | **bold** | `code` |
|
||||||
|
```
|
||||||
|
|
||||||
|
### Output
|
||||||
|
|
||||||
|
| Italics | Bold | Code |
|
||||||
|
| --------- | -------- | ------ |
|
||||||
|
| _italics_ | **bold** | `code` |
|
||||||
|
|
||||||
|
## Code Blocks
|
||||||
|
|
||||||
|
### Syntax
|
||||||
|
|
||||||
|
we can use 3 backticks ``` in new line and write snippet and close with 3 backticks on new line and to highlight language specific syntax, write one word of language name after first 3 backticks, for eg. html, javascript, css, markdown, typescript, txt, bash
|
||||||
|
|
||||||
|
````markdown
|
||||||
|
```html
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Example HTML5 Document</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>Test</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
```
|
||||||
|
````
|
||||||
|
|
||||||
|
### Output
|
||||||
|
|
||||||
|
```html
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Example HTML5 Document</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>Test</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
```
|
||||||
|
|
||||||
|
## List Types
|
||||||
|
|
||||||
|
### Ordered List
|
||||||
|
|
||||||
|
#### Syntax
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
1. First item
|
||||||
|
2. Second item
|
||||||
|
3. Third item
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Output
|
||||||
|
|
||||||
|
1. First item
|
||||||
|
2. Second item
|
||||||
|
3. Third item
|
||||||
|
|
||||||
|
### Unordered List
|
||||||
|
|
||||||
|
#### Syntax
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
- List item
|
||||||
|
- Another item
|
||||||
|
- And another item
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Output
|
||||||
|
|
||||||
|
- List item
|
||||||
|
- Another item
|
||||||
|
- And another item
|
||||||
|
|
||||||
|
### Nested list
|
||||||
|
|
||||||
|
#### Syntax
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
- Fruit
|
||||||
|
- Apple
|
||||||
|
- Orange
|
||||||
|
- Banana
|
||||||
|
- Dairy
|
||||||
|
- Milk
|
||||||
|
- Cheese
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Output
|
||||||
|
|
||||||
|
- Fruit
|
||||||
|
- Apple
|
||||||
|
- Orange
|
||||||
|
- Banana
|
||||||
|
- Dairy
|
||||||
|
- Milk
|
||||||
|
- Cheese
|
||||||
|
|
||||||
|
## Other Elements — abbr, sub, sup, kbd, mark
|
||||||
|
|
||||||
|
### Syntax
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
|
||||||
|
|
||||||
|
H<sub>2</sub>O
|
||||||
|
|
||||||
|
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
||||||
|
|
||||||
|
Press <kbd>CTRL</kbd> + <kbd>ALT</kbd> + <kbd>Delete</kbd> to end the session.
|
||||||
|
|
||||||
|
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Output
|
||||||
|
|
||||||
|
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
|
||||||
|
|
||||||
|
H<sub>2</sub>O
|
||||||
|
|
||||||
|
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
||||||
|
|
||||||
|
Press <kbd>CTRL</kbd> + <kbd>ALT</kbd> + <kbd>Delete</kbd> to end the session.
|
||||||
|
|
||||||
|
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||||
16
AstroLanding/src/content/blog/second-post.md
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
title: 'Second post'
|
||||||
|
description: 'Lorem ipsum dolor sit amet'
|
||||||
|
pubDate: 'Jul 15 2022'
|
||||||
|
heroImage: '../../assets/blog-placeholder-4.jpg'
|
||||||
|
---
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
|
||||||
|
|
||||||
|
Morbi tristique senectus et netus. Id semper risus in hendrerit gravida rutrum quisque non tellus. Habitasse platea dictumst quisque sagittis purus sit amet. Tellus molestie nunc non blandit massa. Cursus vitae congue mauris rhoncus. Accumsan tortor posuere ac ut. Fringilla urna porttitor rhoncus dolor. Elit ullamcorper dignissim cras tincidunt lobortis. In cursus turpis massa tincidunt dui ut ornare lectus. Integer feugiat scelerisque varius morbi enim nunc. Bibendum neque egestas congue quisque egestas diam. Cras ornare arcu dui vivamus arcu felis bibendum. Dignissim suspendisse in est ante in nibh mauris. Sed tempus urna et pharetra pharetra massa massa ultricies mi.
|
||||||
|
|
||||||
|
Mollis nunc sed id semper risus in. Convallis a cras semper auctor neque. Diam sit amet nisl suscipit. Lacus viverra vitae congue eu consequat ac felis donec. Egestas integer eget aliquet nibh praesent tristique magna sit amet. Eget magna fermentum iaculis eu non diam. In vitae turpis massa sed elementum. Tristique et egestas quis ipsum suspendisse ultrices. Eget lorem dolor sed viverra ipsum. Vel turpis nunc eget lorem dolor sed viverra. Posuere ac ut consequat semper viverra nam. Laoreet suspendisse interdum consectetur libero id faucibus. Diam phasellus vestibulum lorem sed risus ultricies tristique. Rhoncus dolor purus non enim praesent elementum facilisis. Ultrices tincidunt arcu non sodales neque. Tempus egestas sed sed risus pretium quam vulputate. Viverra suspendisse potenti nullam ac tortor vitae purus faucibus ornare. Fringilla urna porttitor rhoncus dolor purus non. Amet dictum sit amet justo donec enim.
|
||||||
|
|
||||||
|
Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Tortor posuere ac ut consequat semper viverra. Tellus mauris a diam maecenas sed enim ut sem viverra. Venenatis urna cursus eget nunc scelerisque viverra mauris in. Arcu ac tortor dignissim convallis aenean et tortor at. Curabitur gravida arcu ac tortor dignissim convallis aenean et tortor. Egestas tellus rutrum tellus pellentesque eu. Fusce ut placerat orci nulla pellentesque dignissim enim sit amet. Ut enim blandit volutpat maecenas volutpat blandit aliquam etiam. Id donec ultrices tincidunt arcu. Id cursus metus aliquam eleifend mi.
|
||||||
|
|
||||||
|
Tempus quam pellentesque nec nam aliquam sem. Risus at ultrices mi tempus imperdiet. Id porta nibh venenatis cras sed felis eget velit. Ipsum a arcu cursus vitae. Facilisis magna etiam tempor orci eu lobortis elementum. Tincidunt dui ut ornare lectus sit. Quisque non tellus orci ac. Blandit libero volutpat sed cras. Nec tincidunt praesent semper feugiat nibh sed pulvinar proin gravida. Egestas integer eget aliquet nibh praesent tristique magna.
|
||||||
16
AstroLanding/src/content/blog/third-post.md
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
title: 'Third post'
|
||||||
|
description: 'Lorem ipsum dolor sit amet'
|
||||||
|
pubDate: 'Jul 22 2022'
|
||||||
|
heroImage: '../../assets/blog-placeholder-2.jpg'
|
||||||
|
---
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
|
||||||
|
|
||||||
|
Morbi tristique senectus et netus. Id semper risus in hendrerit gravida rutrum quisque non tellus. Habitasse platea dictumst quisque sagittis purus sit amet. Tellus molestie nunc non blandit massa. Cursus vitae congue mauris rhoncus. Accumsan tortor posuere ac ut. Fringilla urna porttitor rhoncus dolor. Elit ullamcorper dignissim cras tincidunt lobortis. In cursus turpis massa tincidunt dui ut ornare lectus. Integer feugiat scelerisque varius morbi enim nunc. Bibendum neque egestas congue quisque egestas diam. Cras ornare arcu dui vivamus arcu felis bibendum. Dignissim suspendisse in est ante in nibh mauris. Sed tempus urna et pharetra pharetra massa massa ultricies mi.
|
||||||
|
|
||||||
|
Mollis nunc sed id semper risus in. Convallis a cras semper auctor neque. Diam sit amet nisl suscipit. Lacus viverra vitae congue eu consequat ac felis donec. Egestas integer eget aliquet nibh praesent tristique magna sit amet. Eget magna fermentum iaculis eu non diam. In vitae turpis massa sed elementum. Tristique et egestas quis ipsum suspendisse ultrices. Eget lorem dolor sed viverra ipsum. Vel turpis nunc eget lorem dolor sed viverra. Posuere ac ut consequat semper viverra nam. Laoreet suspendisse interdum consectetur libero id faucibus. Diam phasellus vestibulum lorem sed risus ultricies tristique. Rhoncus dolor purus non enim praesent elementum facilisis. Ultrices tincidunt arcu non sodales neque. Tempus egestas sed sed risus pretium quam vulputate. Viverra suspendisse potenti nullam ac tortor vitae purus faucibus ornare. Fringilla urna porttitor rhoncus dolor purus non. Amet dictum sit amet justo donec enim.
|
||||||
|
|
||||||
|
Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Tortor posuere ac ut consequat semper viverra. Tellus mauris a diam maecenas sed enim ut sem viverra. Venenatis urna cursus eget nunc scelerisque viverra mauris in. Arcu ac tortor dignissim convallis aenean et tortor at. Curabitur gravida arcu ac tortor dignissim convallis aenean et tortor. Egestas tellus rutrum tellus pellentesque eu. Fusce ut placerat orci nulla pellentesque dignissim enim sit amet. Ut enim blandit volutpat maecenas volutpat blandit aliquam etiam. Id donec ultrices tincidunt arcu. Id cursus metus aliquam eleifend mi.
|
||||||
|
|
||||||
|
Tempus quam pellentesque nec nam aliquam sem. Risus at ultrices mi tempus imperdiet. Id porta nibh venenatis cras sed felis eget velit. Ipsum a arcu cursus vitae. Facilisis magna etiam tempor orci eu lobortis elementum. Tincidunt dui ut ornare lectus sit. Quisque non tellus orci ac. Blandit libero volutpat sed cras. Nec tincidunt praesent semper feugiat nibh sed pulvinar proin gravida. Egestas integer eget aliquet nibh praesent tristique magna.
|
||||||
31
AstroLanding/src/content/blog/using-mdx.mdx
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
title: 'Using MDX'
|
||||||
|
description: 'Lorem ipsum dolor sit amet'
|
||||||
|
pubDate: 'Jun 01 2024'
|
||||||
|
heroImage: '../../assets/blog-placeholder-5.jpg'
|
||||||
|
---
|
||||||
|
|
||||||
|
This theme comes with the [@astrojs/mdx](https://docs.astro.build/en/guides/integrations-guide/mdx/) integration installed and configured in your `astro.config.mjs` config file. If you prefer not to use MDX, you can disable support by removing the integration from your config file.
|
||||||
|
|
||||||
|
## Why MDX?
|
||||||
|
|
||||||
|
MDX is a special flavor of Markdown that supports embedded JavaScript & JSX syntax. This unlocks the ability to [mix JavaScript and UI Components into your Markdown content](https://docs.astro.build/en/guides/integrations-guide/mdx/#mdx-in-astro) for things like interactive charts or alerts.
|
||||||
|
|
||||||
|
If you have existing content authored in MDX, this integration will hopefully make migrating to Astro a breeze.
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
Here is how you import and use a UI component inside of MDX.
|
||||||
|
When you open this page in the browser, you should see the clickable button below.
|
||||||
|
|
||||||
|
import HeaderLink from '../../components/HeaderLink.astro';
|
||||||
|
|
||||||
|
<HeaderLink href="#" onclick="alert('clicked!')">
|
||||||
|
Embedded component in MDX
|
||||||
|
</HeaderLink>
|
||||||
|
|
||||||
|
## More Links
|
||||||
|
|
||||||
|
- [MDX Syntax Documentation](https://mdxjs.com/docs/what-is-mdx)
|
||||||
|
- [Astro Usage Documentation](https://docs.astro.build/en/basics/astro-pages/#markdownmdx-pages)
|
||||||
|
- **Note:** [Client Directives](https://docs.astro.build/en/reference/directives-reference/#client-directives) are still required to create interactive components. Otherwise, all components in your MDX will render as static HTML (no JavaScript) by default.
|
||||||
17
AstroLanding/src/i18n/ui.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
import en from "../translations/en.json";
|
||||||
|
import lv from "../translations/lv.json";
|
||||||
|
|
||||||
|
export const languages = {
|
||||||
|
en: "EN",
|
||||||
|
lv: "LV",
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export const defaultLang = "en";
|
||||||
|
export const showDefaultLang = true;
|
||||||
|
|
||||||
|
export const ui = {
|
||||||
|
en,
|
||||||
|
lv,
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export type SupportedLang = keyof typeof ui;
|
||||||
52
AstroLanding/src/i18n/utils.ts
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
import { defaultLang, showDefaultLang, ui, type SupportedLang } from "./ui";
|
||||||
|
|
||||||
|
const hasOwn = (obj: object, key: string): boolean =>
|
||||||
|
Object.prototype.hasOwnProperty.call(obj, key);
|
||||||
|
|
||||||
|
const getValueByPath = (value: unknown, key: string): unknown => {
|
||||||
|
return key.split(".").reduce<unknown>((acc, part) => {
|
||||||
|
if (acc && typeof acc === "object" && hasOwn(acc as object, part)) {
|
||||||
|
return (acc as Record<string, unknown>)[part];
|
||||||
|
}
|
||||||
|
|
||||||
|
return undefined;
|
||||||
|
}, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
export function getLangFromUrl(url: URL): SupportedLang {
|
||||||
|
const [, lang] = url.pathname.split("/");
|
||||||
|
|
||||||
|
if (lang && hasOwn(ui, lang)) {
|
||||||
|
return lang as SupportedLang;
|
||||||
|
}
|
||||||
|
|
||||||
|
return defaultLang;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function useTranslations(lang: SupportedLang) {
|
||||||
|
const localizedUI = ui[lang] as Record<string, unknown>;
|
||||||
|
const fallbackUI = ui[defaultLang] as Record<string, unknown>;
|
||||||
|
|
||||||
|
return function t(key: string): unknown {
|
||||||
|
const localizedValue = getValueByPath(localizedUI, key);
|
||||||
|
|
||||||
|
if (localizedValue !== undefined) {
|
||||||
|
return localizedValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const fallbackValue = getValueByPath(fallbackUI, key);
|
||||||
|
return fallbackValue ?? key;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export function useTranslatedPath(lang: SupportedLang) {
|
||||||
|
return function translatePath(path: string, l: SupportedLang = lang): string {
|
||||||
|
const normalizedPath = path.startsWith("/") ? path : `/${path}`;
|
||||||
|
|
||||||
|
if (!showDefaultLang && l === defaultLang) {
|
||||||
|
return normalizedPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
return `/${l}${normalizedPath}`;
|
||||||
|
};
|
||||||
|
}
|
||||||
95
AstroLanding/src/layouts/BlogPost.astro
Normal file
|
|
@ -0,0 +1,95 @@
|
||||||
|
---
|
||||||
|
import {Image} from 'astro:assets';
|
||||||
|
import type {CollectionEntry} from 'astro:content';
|
||||||
|
import BaseHead from '@/components/BaseHead.astro';
|
||||||
|
import Footer from '@/components/Footer/Footer.astro';
|
||||||
|
import FormattedDate from '@/components/FormattedDate.astro';
|
||||||
|
import Header from '@/components/Header.astro';
|
||||||
|
|
||||||
|
type Props = CollectionEntry<'blog'>['data'];
|
||||||
|
|
||||||
|
const {title, description, pubDate, updatedDate, heroImage} = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<BaseHead title={title} description={description}/>
|
||||||
|
<style>
|
||||||
|
main {
|
||||||
|
width: calc(100% - 2em);
|
||||||
|
max-width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-image {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-image img {
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow: var(--box-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose {
|
||||||
|
width: 720px;
|
||||||
|
max-width: calc(100% - 2em);
|
||||||
|
margin: auto;
|
||||||
|
padding: 1em;
|
||||||
|
color: rgb(var(--gray-dark));
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
padding: 1em 0;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title h1 {
|
||||||
|
margin: 0 0 0.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.date {
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
color: rgb(var(--gray));
|
||||||
|
}
|
||||||
|
|
||||||
|
.last-updated-on {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<Header/>
|
||||||
|
<main>
|
||||||
|
<article>
|
||||||
|
<div class="hero-image">
|
||||||
|
{heroImage &&
|
||||||
|
<Image width={1020} height={510} src={heroImage} alt=""/>}
|
||||||
|
</div>
|
||||||
|
<div class="prose">
|
||||||
|
<div class="title">
|
||||||
|
<div class="date">
|
||||||
|
<FormattedDate date={pubDate}/>
|
||||||
|
{
|
||||||
|
updatedDate && (
|
||||||
|
<div class="last-updated-on">
|
||||||
|
Last updated on
|
||||||
|
<FormattedDate date={updatedDate}/>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
<h1>{title}</h1>
|
||||||
|
<hr/>
|
||||||
|
</div>
|
||||||
|
<slot/>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</main>
|
||||||
|
<Footer/>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
63
AstroLanding/src/pages/about.astro
Normal file
|
|
@ -0,0 +1,63 @@
|
||||||
|
---
|
||||||
|
import AboutHeroImage from '../assets/blog-placeholder-about.jpg';
|
||||||
|
import Layout from '../layouts/BlogPost.astro';
|
||||||
|
---
|
||||||
|
|
||||||
|
<Layout
|
||||||
|
title="About Me"
|
||||||
|
description="Lorem ipsum dolor sit amet"
|
||||||
|
pubDate={new Date('August 08 2021')}
|
||||||
|
heroImage={AboutHeroImage}
|
||||||
|
>
|
||||||
|
<p>
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
|
||||||
|
labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo
|
||||||
|
viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam
|
||||||
|
adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus
|
||||||
|
et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus
|
||||||
|
vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque
|
||||||
|
sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Morbi tristique senectus et netus. Id semper risus in hendrerit gravida rutrum quisque non
|
||||||
|
tellus. Habitasse platea dictumst quisque sagittis purus sit amet. Tellus molestie nunc non
|
||||||
|
blandit massa. Cursus vitae congue mauris rhoncus. Accumsan tortor posuere ac ut. Fringilla urna
|
||||||
|
porttitor rhoncus dolor. Elit ullamcorper dignissim cras tincidunt lobortis. In cursus turpis
|
||||||
|
massa tincidunt dui ut ornare lectus. Integer feugiat scelerisque varius morbi enim nunc.
|
||||||
|
Bibendum neque egestas congue quisque egestas diam. Cras ornare arcu dui vivamus arcu felis
|
||||||
|
bibendum. Dignissim suspendisse in est ante in nibh mauris. Sed tempus urna et pharetra pharetra
|
||||||
|
massa massa ultricies mi.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mollis nunc sed id semper risus in. Convallis a cras semper auctor neque. Diam sit amet nisl
|
||||||
|
suscipit. Lacus viverra vitae congue eu consequat ac felis donec. Egestas integer eget aliquet
|
||||||
|
nibh praesent tristique magna sit amet. Eget magna fermentum iaculis eu non diam. In vitae
|
||||||
|
turpis massa sed elementum. Tristique et egestas quis ipsum suspendisse ultrices. Eget lorem
|
||||||
|
dolor sed viverra ipsum. Vel turpis nunc eget lorem dolor sed viverra. Posuere ac ut consequat
|
||||||
|
semper viverra nam. Laoreet suspendisse interdum consectetur libero id faucibus. Diam phasellus
|
||||||
|
vestibulum lorem sed risus ultricies tristique. Rhoncus dolor purus non enim praesent elementum
|
||||||
|
facilisis. Ultrices tincidunt arcu non sodales neque. Tempus egestas sed sed risus pretium quam
|
||||||
|
vulputate. Viverra suspendisse potenti nullam ac tortor vitae purus faucibus ornare. Fringilla
|
||||||
|
urna porttitor rhoncus dolor purus non. Amet dictum sit amet justo donec enim.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Tortor posuere ac ut consequat semper
|
||||||
|
viverra. Tellus mauris a diam maecenas sed enim ut sem viverra. Venenatis urna cursus eget nunc
|
||||||
|
scelerisque viverra mauris in. Arcu ac tortor dignissim convallis aenean et tortor at. Curabitur
|
||||||
|
gravida arcu ac tortor dignissim convallis aenean et tortor. Egestas tellus rutrum tellus
|
||||||
|
pellentesque eu. Fusce ut placerat orci nulla pellentesque dignissim enim sit amet. Ut enim
|
||||||
|
blandit volutpat maecenas volutpat blandit aliquam etiam. Id donec ultrices tincidunt arcu. Id
|
||||||
|
cursus metus aliquam eleifend mi.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Tempus quam pellentesque nec nam aliquam sem. Risus at ultrices mi tempus imperdiet. Id porta
|
||||||
|
nibh venenatis cras sed felis eget velit. Ipsum a arcu cursus vitae. Facilisis magna etiam
|
||||||
|
tempor orci eu lobortis elementum. Tincidunt dui ut ornare lectus sit. Quisque non tellus orci
|
||||||
|
ac. Blandit libero volutpat sed cras. Nec tincidunt praesent semper feugiat nibh sed pulvinar
|
||||||
|
proin gravida. Egestas integer eget aliquet nibh praesent tristique magna.
|
||||||
|
</p>
|
||||||
|
</Layout>
|
||||||
20
AstroLanding/src/pages/blog/[...slug].astro
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
import { type CollectionEntry, getCollection, render } from 'astro:content';
|
||||||
|
import BlogPost from '../../layouts/BlogPost.astro';
|
||||||
|
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const posts = await getCollection('blog');
|
||||||
|
return posts.map((post) => ({
|
||||||
|
params: { slug: post.id },
|
||||||
|
props: post,
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
type Props = CollectionEntry<'blog'>;
|
||||||
|
|
||||||
|
const post = Astro.props;
|
||||||
|
const { Content } = await render(post);
|
||||||
|
---
|
||||||
|
|
||||||
|
<BlogPost {...post.data}>
|
||||||
|
<Content />
|
||||||
|
</BlogPost>
|
||||||
114
AstroLanding/src/pages/blog/index.astro
Normal file
|
|
@ -0,0 +1,114 @@
|
||||||
|
---
|
||||||
|
import { Image } from 'astro:assets';
|
||||||
|
import { getCollection } from 'astro:content';
|
||||||
|
import BaseHead from '../../components/BaseHead.astro';
|
||||||
|
import Footer from '../../components/Footer/Footer.astro';
|
||||||
|
import FormattedDate from '../../components/FormattedDate.astro';
|
||||||
|
import Header from '../../components/Header.astro';
|
||||||
|
import { SITE_DESCRIPTION, SITE_TITLE } from '../../consts';
|
||||||
|
|
||||||
|
const posts = (await getCollection('blog')).sort(
|
||||||
|
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
|
||||||
|
);
|
||||||
|
---
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
|
||||||
|
<style>
|
||||||
|
main {
|
||||||
|
width: 960px;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 2rem;
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
ul li {
|
||||||
|
width: calc(50% - 1rem);
|
||||||
|
}
|
||||||
|
ul li * {
|
||||||
|
text-decoration: none;
|
||||||
|
transition: 0.2s ease;
|
||||||
|
}
|
||||||
|
ul li:first-child {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
ul li:first-child img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
ul li:first-child .title {
|
||||||
|
font-size: 2.369rem;
|
||||||
|
}
|
||||||
|
ul li img {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
ul li a {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
margin: 0;
|
||||||
|
color: rgb(var(--black));
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
.date {
|
||||||
|
margin: 0;
|
||||||
|
color: rgb(var(--gray));
|
||||||
|
}
|
||||||
|
ul li a:hover h4,
|
||||||
|
ul li a:hover .date {
|
||||||
|
color: rgb(var(--accent));
|
||||||
|
}
|
||||||
|
ul a:hover img {
|
||||||
|
box-shadow: var(--box-shadow);
|
||||||
|
}
|
||||||
|
@media (max-width: 720px) {
|
||||||
|
ul {
|
||||||
|
gap: 0.5em;
|
||||||
|
}
|
||||||
|
ul li {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
ul li:first-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
ul li:first-child .title {
|
||||||
|
font-size: 1.563em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<Header />
|
||||||
|
<main>
|
||||||
|
<section>
|
||||||
|
<ul>
|
||||||
|
{
|
||||||
|
posts.map((post) => (
|
||||||
|
<li>
|
||||||
|
<a href={`/blog/${post.id}/`}>
|
||||||
|
{post.data.heroImage && (
|
||||||
|
<Image width={720} height={360} src={post.data.heroImage} alt="" />
|
||||||
|
)}
|
||||||
|
<h4 class="title">{post.data.title}</h4>
|
||||||
|
<p class="date">
|
||||||
|
<FormattedDate date={post.data.pubDate} />
|
||||||
|
</p>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
<Footer />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
5
AstroLanding/src/pages/en/index.astro
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
import HomePage from "../../components/HomePage.astro";
|
||||||
|
---
|
||||||
|
|
||||||
|
<HomePage lang="en" />
|
||||||
4
AstroLanding/src/pages/index.astro
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
<!doctype html>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/en/" />
|
||||||
|
<title>Redirecting...</title>
|
||||||
|
<a href="/en/">Continue to English version</a>
|
||||||
5
AstroLanding/src/pages/lv/index.astro
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
import HomePage from "../../components/HomePage.astro";
|
||||||
|
---
|
||||||
|
|
||||||
|
<HomePage lang="lv" />
|
||||||
16
AstroLanding/src/pages/rss.xml.js
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { getCollection } from 'astro:content';
|
||||||
|
import rss from '@astrojs/rss';
|
||||||
|
import { SITE_DESCRIPTION, SITE_TITLE } from '../consts';
|
||||||
|
|
||||||
|
export async function GET(context) {
|
||||||
|
const posts = await getCollection('blog');
|
||||||
|
return rss({
|
||||||
|
title: SITE_TITLE,
|
||||||
|
description: SITE_DESCRIPTION,
|
||||||
|
site: context.site,
|
||||||
|
items: posts.map((post) => ({
|
||||||
|
...post.data,
|
||||||
|
link: `/blog/${post.id}/`,
|
||||||
|
})),
|
||||||
|
});
|
||||||
|
}
|
||||||
190
AstroLanding/src/styles/global.css
Normal file
|
|
@ -0,0 +1,190 @@
|
||||||
|
/*
|
||||||
|
The CSS in this style tag is based off of Bear Blog's default CSS.
|
||||||
|
https://github.com/HermanMartinus/bearblog/blob/297026a877bc2ab2b3bdfbd6b9f7961c350917dd/templates/styles/blog/default.css
|
||||||
|
License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md
|
||||||
|
*/
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--accent: #2337ff;
|
||||||
|
--accent-dark: #000d8a;
|
||||||
|
--black: 15, 18, 25;
|
||||||
|
--gray: 96, 115, 159;
|
||||||
|
--gray-light: 229, 233, 240;
|
||||||
|
--gray-dark: 34, 41, 57;
|
||||||
|
--gray-gradient: rgba(var(--gray-light), 50%), #fff;
|
||||||
|
--box-shadow: 0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%),
|
||||||
|
0 16px 32px rgba(var(--gray), 33%);
|
||||||
|
|
||||||
|
/* TODO: Here we start our custom CSS Remove above later */
|
||||||
|
--breakpoint-mobile: 767px;
|
||||||
|
--breakpoint-tablet: 1200px;
|
||||||
|
|
||||||
|
--color-text-primary: #ffffff;
|
||||||
|
--color-text-secondary: rgba(255, 255, 255, 60%);
|
||||||
|
--color-accent-primary: #c16b6b;
|
||||||
|
--color-accent-secondary: #b46f8e;
|
||||||
|
|
||||||
|
--gutter: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* typography.css */
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: "proxima-nova", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
a,
|
||||||
|
p,
|
||||||
|
span {
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 6.25rem; /* 100px ÷ 16 */
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 3.125rem; /* 50px ÷ 16 */
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1.5625rem; /* 25px ÷ 16 */
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-weight: 900;
|
||||||
|
font-size: 2.1875rem; /* 35px ÷ 16 */
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.875rem; /* 30px ÷ 16 */
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
font-size: 1.125rem; /* 18px ÷ 16 */
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.05rem;
|
||||||
|
font-weight: normal;
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.125rem; /* 18px ÷ 16 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.gray {
|
||||||
|
color: var(--color-text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
h1 {
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 2.5rem; /* 40px ÷ 16 */
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.875rem; /* 30px ÷ 16 */
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.375rem; /* 22px ÷ 16 */
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
line-height: normal;
|
||||||
|
font-size: 1rem; /* 16px ÷ 16 */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* TODO: Remove above code later */
|
||||||
|
body {
|
||||||
|
background-color: #111111;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(12, minmax(0, 96px));
|
||||||
|
gap: var(--gutter);
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1224px;
|
||||||
|
grid-column: 1 / 13;
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container > * {
|
||||||
|
grid-column: 1 / 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.container {
|
||||||
|
grid-template-columns: repeat(6, 1fr);
|
||||||
|
max-width: 100%;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container > * {
|
||||||
|
grid-column: 1 / 7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.container-mobile {
|
||||||
|
padding: 0 20px;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(6, 1fr);
|
||||||
|
max-width: 100%;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container-mobile > * {
|
||||||
|
grid-column: 1 / 7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
section.container {
|
||||||
|
padding-right: 20px;
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.container {
|
||||||
|
padding-right: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-page {
|
||||||
|
overflow-x: hidden;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.intro-bg {
|
||||||
|
background: radial-gradient(
|
||||||
|
100% 100% at 0% 0%,
|
||||||
|
rgba(226, 90, 146, 0.15) 0%,
|
||||||
|
rgba(141, 162, 243, 0.063) 35.82%,
|
||||||
|
rgba(23, 23, 23, 0) 100%
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
283
AstroLanding/src/styles/index.css
Normal file
|
|
@ -0,0 +1,283 @@
|
||||||
|
/* intro */
|
||||||
|
|
||||||
|
.intro {
|
||||||
|
min-height: max(680px, calc(100vh - 24px));
|
||||||
|
grid-template-rows: 1fr auto;
|
||||||
|
row-gap: clamp(20px, 3vw, 40px);
|
||||||
|
padding-top: 112px;
|
||||||
|
|
||||||
|
.intro__title {
|
||||||
|
grid-column: 1/8;
|
||||||
|
grid-row: 1/2;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: clamp(2.9rem, 8vw, 6.25rem);
|
||||||
|
line-height: 1.2;
|
||||||
|
text-wrap: balance;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro__items {
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
column-gap: clamp(16px, 2.8vw, 40px);
|
||||||
|
row-gap: 10px;
|
||||||
|
margin: 22px 0 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--color-accent-secondary);
|
||||||
|
letter-spacing: 0.03em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro__image {
|
||||||
|
grid-column: 5/13;
|
||||||
|
grid-row: 1/2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
z-index: -1;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: min(100%, 780px);
|
||||||
|
height: auto;
|
||||||
|
transform: translateX(clamp(0px, 7vw, 150px));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro__rocket {
|
||||||
|
grid-column: 1/13;
|
||||||
|
grid-row: 2/3;
|
||||||
|
display: grid;
|
||||||
|
justify-items: center;
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: var(--color-text-secondary);
|
||||||
|
margin-top: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1350px) {
|
||||||
|
.intro__image img {
|
||||||
|
transform: translateX(clamp(0px, 3vw, 50px));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
min-height: auto;
|
||||||
|
padding-top: 106px;
|
||||||
|
grid-template-rows: 340px auto;
|
||||||
|
row-gap: 20px;
|
||||||
|
|
||||||
|
.intro__title,
|
||||||
|
.intro__rocket,
|
||||||
|
.intro__image {
|
||||||
|
grid-column: 1/7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro__image {
|
||||||
|
grid-row: 1/2;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
img {
|
||||||
|
transform: none;
|
||||||
|
max-width: 450px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro__title {
|
||||||
|
grid-row: 2/3;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro__items {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: space-between;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 16px;
|
||||||
|
|
||||||
|
li {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro__rocket {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* section */
|
||||||
|
|
||||||
|
section.content {
|
||||||
|
margin-top: 192px;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 88px;
|
||||||
|
|
||||||
|
@media all and (max-width: 767px) {
|
||||||
|
margin-bottom: 54px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* services */
|
||||||
|
|
||||||
|
#services {
|
||||||
|
scroll-margin-block-start: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.services {
|
||||||
|
background: radial-gradient(
|
||||||
|
48.62% 45.5% at 50% 50%,
|
||||||
|
rgba(225, 104, 154, 0.15) 0%,
|
||||||
|
rgba(141, 162, 243, 0.063) 49.1%,
|
||||||
|
rgba(23, 23, 23, 0) 100%
|
||||||
|
);
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.circle {
|
||||||
|
position: absolute;
|
||||||
|
top: -140px;
|
||||||
|
left: -530px;
|
||||||
|
|
||||||
|
@media all and (max-width: 767px) {
|
||||||
|
top: 10%;
|
||||||
|
right: 50%;
|
||||||
|
left: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* card */
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background: rgba(255, 255, 255, 0.01);
|
||||||
|
box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.15);
|
||||||
|
backdrop-filter: blur(7px);
|
||||||
|
border-radius: 33px;
|
||||||
|
padding: 63px 55px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
img {
|
||||||
|
min-height: 99px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin-top: 63px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3,
|
||||||
|
p {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-of-type(1) {
|
||||||
|
grid-column: 1/5;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-of-type(2) {
|
||||||
|
grid-column: 5/9;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-of-type(3) {
|
||||||
|
grid-column: 9/13;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
padding: 46px 30px;
|
||||||
|
|
||||||
|
&:nth-of-type(1) {
|
||||||
|
grid-column: 1/7;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-of-type(2) {
|
||||||
|
grid-column: 1/7;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-of-type(3) {
|
||||||
|
grid-column: 1/7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* about */
|
||||||
|
|
||||||
|
#about-us {
|
||||||
|
scroll-margin-block-start: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-us {
|
||||||
|
margin-top: -80px;
|
||||||
|
|
||||||
|
> div {
|
||||||
|
&:first-child {
|
||||||
|
grid-column: 1/7;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
grid-column: 7/13;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.text {
|
||||||
|
margin-top: 16px;
|
||||||
|
color: var(--color-text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 64px;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.swiper-slide {
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
& > div {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
grid-column: 1/7;
|
||||||
|
|
||||||
|
h5,
|
||||||
|
.text {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
107
AstroLanding/src/styles/reset.css
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
/* reset.css */
|
||||||
|
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 100.01%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
min-height: 100vh;
|
||||||
|
text-rendering: optimizeSpeed;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove default margin */
|
||||||
|
body,
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
|
p,
|
||||||
|
figure,
|
||||||
|
blockquote,
|
||||||
|
dl,
|
||||||
|
dd {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Reset list styles */
|
||||||
|
ul[role="list"],
|
||||||
|
ol[role="list"] {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Links */
|
||||||
|
a:not([class]) {
|
||||||
|
text-decoration-skip-ink: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Images */
|
||||||
|
img,
|
||||||
|
picture {
|
||||||
|
max-width: 100%;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Reset button and input styles */
|
||||||
|
button,
|
||||||
|
input[type="button"],
|
||||||
|
input[type="submit"],
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
select {
|
||||||
|
font: inherit;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
input[type="button"],
|
||||||
|
input[type="submit"] {
|
||||||
|
background: transparent;
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
color: inherit;
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
button::-moz-focus-inner,
|
||||||
|
input[type="button"]::-moz-focus-inner,
|
||||||
|
input[type="submit"]::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hidden elements */
|
||||||
|
[hidden] {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Reduce motion preferences */
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
html:focus-within {
|
||||||
|
scroll-behavior: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
animation-duration: 0.01ms !important;
|
||||||
|
animation-iteration-count: 1 !important;
|
||||||
|
transition-duration: 0.01ms !important;
|
||||||
|
scroll-behavior: auto !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
171
AstroLanding/src/translations/en.json
Normal file
|
|
@ -0,0 +1,171 @@
|
||||||
|
{
|
||||||
|
"menu": {
|
||||||
|
"services": "Services",
|
||||||
|
"about_us": "About Us",
|
||||||
|
"portfolio": "Portfolio",
|
||||||
|
"pricing": "Pricing",
|
||||||
|
"contact_us": "Contact Us",
|
||||||
|
"home": "Home"
|
||||||
|
},
|
||||||
|
"intro": {
|
||||||
|
"creating": "We are creating",
|
||||||
|
"websites": "websites",
|
||||||
|
"apps": "Mobile apps",
|
||||||
|
"shops": "E-shops",
|
||||||
|
"platforms": "Platforms",
|
||||||
|
"explore": "Exlopre the Universe"
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"title": "Services",
|
||||||
|
"cards": [
|
||||||
|
{
|
||||||
|
"title": "Web development",
|
||||||
|
"text": "We build modern and easy to use websites, e-commerce solutions for desktop, mobile, tablet.",
|
||||||
|
"image": "web_development.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Mobile App",
|
||||||
|
"text": "Blending the latest design & development trends, end-user needs, and best user experience practices",
|
||||||
|
"image": "mobile_app.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "UI & Animations",
|
||||||
|
"text": "Craft deligthful experience for your digital products. Solve real problems and improve your vital business metrics through beautiful interfaces",
|
||||||
|
"image": "ui_animations.svg"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"about_us": {
|
||||||
|
"title": "About Us",
|
||||||
|
"sub_title": "You have some great ideas in mind?",
|
||||||
|
"text": "Working more than 6 years in the creative development industry we are sure that we can realize any complex project",
|
||||||
|
"amount_completed": "30+",
|
||||||
|
"completed": "Completed projects",
|
||||||
|
"amount_webpages": "400+",
|
||||||
|
"webpages": "Web Pages created",
|
||||||
|
"amount_experience": "6+",
|
||||||
|
"experience": "Years experience"
|
||||||
|
},
|
||||||
|
"projects": [
|
||||||
|
{
|
||||||
|
"title": "Inflid",
|
||||||
|
"image": "inflid_full_1.png",
|
||||||
|
"info": ["Website", "Platform", "UI / UX"],
|
||||||
|
"text": "Smart matching platform for Streamers and Advertisers"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Custom PC4U",
|
||||||
|
"image": "custom-pc4u.png",
|
||||||
|
"info": ["Website", "Platform", "UI / UX"],
|
||||||
|
"text": "Smart PC builder and e-shop"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "MOCKBA MODULAR",
|
||||||
|
"image": "mockba-modular.png",
|
||||||
|
"info": ["Website", "Animations", "UI / UX"],
|
||||||
|
"text": "Modular construction website"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "PRIYATKI",
|
||||||
|
"image": "pryatki.png",
|
||||||
|
"info": ["Website", "E-shop", "CMS"],
|
||||||
|
"text": "Kids fashion e-shop"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "SIZZAPP",
|
||||||
|
"image": "sizzapp.png",
|
||||||
|
"info": ["Website", "Landing", "UI / UX"],
|
||||||
|
"text": "Car and motorcycle security solution landing page"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "TrackPro",
|
||||||
|
"image": "trackpro.png",
|
||||||
|
"info": ["Website", "CMS"],
|
||||||
|
"text": "Fleet Management Software providers - website and content management system development"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"contacts": {
|
||||||
|
"title": "Let’s bring your project to the Moon",
|
||||||
|
"name": "name",
|
||||||
|
"email": "E-mail",
|
||||||
|
"phone": "phone",
|
||||||
|
"send": "Send",
|
||||||
|
"success": "Thank you for sharing your contacts! We will get in touch!",
|
||||||
|
"error": "Looks like something went wrong, please try to reach us directly ",
|
||||||
|
"captchaError": "Please complete the captcha verification"
|
||||||
|
},
|
||||||
|
"privacy": {
|
||||||
|
"title": "Privacy Policy",
|
||||||
|
"description": "The privacy statement of users of this website, garmtech.com (hereinafter referred to as the Website) describes the procedures for use of personal data collected or received by GARMTECH LP (hereinafter referred to as the Website Owner) from users of this Website (hereinafter referred to as the Users). \n\nThe processing of personal data for the needs of Garmtech.com project is carried out by GARMTECH LP, registered in the Companies House of Great Britain under No. SLO21251.\n\nIdentification of persons and signature of electronic documents are provided by GARMTECH LP.\n\nThis Privacy Statement describes how the Website Owner can collect or receive personal data from the User, the types of personal data to be collected, procedures for disclosure and protection of these data, the User’s rights, and means of communication with the Website Owner available to the User in order to get additional information about the privacy principles.",
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"title": "How the User’s personal data can be collected or received.",
|
||||||
|
"message": "The Website can collect or receive the User’s personal data when the User uses services of the Website.\n\nThe User’s personal data are collected solely and exclusively for the provision of the services offered by the Website and only to the extent necessary for the provision of the above-mentioned services."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The User’s personal data that the Website Owner is entitled to collect.",
|
||||||
|
"message": "By means of the Services provided via the Website, the Website Owner can collect the following User’s personal data: first name, last name, address, phone number, e-mail address and IP address.\n\nIn addition, the User can voluntarily provide other data related to the User’s questions or comments."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "How the User’s personal data are used.",
|
||||||
|
"message": "The Website Owner uses the User's Personal data to provide the Services offered by the Website, respond to user comments or questions and to diagnose technical problems."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "How the User’s personal data can be disclosed.",
|
||||||
|
"message": "The Website does not sell, rent or exchange the User’s personal data. The Website can disclose the User’s personal data only: to public authorities or other third parties, in accordance with the effective legislation of Great Britain and European Union, as well as to legal or natural persons who are registered on the Website as service providers (hereinafter referred to as the Service Providers) and use the Website for the provision of their services."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "International data transfer.",
|
||||||
|
"message": "The User’s personal data collected by the Website Owner are not transferred to non-EU or non-EEA countries."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "How the User’s personal data are protected.",
|
||||||
|
"message": "The Website Owner takes appropriate technical and organizational security measures to protect the personal data provided by the User from accidental, unlawful or unauthorized access and use."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Links to other websites.",
|
||||||
|
"message": "The Website may contain links to websites maintained by the Service Providers, the terms of use and privacy policies of which may be different from those of this Website. The Website Owner is not responsible for information or terms of third-party websites. Before using other websites and providing personal data or any other information to or through other websites, we encourage the User to get acquainted with the relevant terms of use and privacy statement."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Changes to this Privacy Statement.",
|
||||||
|
"message": "The Website Owner reserves the right to change the privacy statement of this Website at any time. The changes to the privacy statement of the Website become valid after their introduction. The date of the last version is specified at the beginning of this document. The Website Owner encourage the User to regularly reread the privacy statement of this Website."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The User’s Rights.",
|
||||||
|
"message": "The User’s rights stipulated by the applicable legislation may include the right to access the User’s personal data processed by the Website Owner, the right to correct, delete or block such personal data and the right to object to certain personal data processing. In order to exercise these rights, the User must submit a written request, using the contact information provided in the How to contact the Website Owner section."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "How to contact the Website Owner.",
|
||||||
|
"message": "The User can send comments or questions about the privacy statement of the Website to the e-mail address: info@garmtech.com or to the postal address: Garmtech LP GARMTECH LP, Suite 3087, 15 Bell street, St.Andrews, Fife, KY16 9UR, United Kingdom."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"footer": {
|
||||||
|
"company": "Company",
|
||||||
|
"registration_nr": "Registration nr.",
|
||||||
|
"address": "Address",
|
||||||
|
"navigation": "Navigation"
|
||||||
|
},
|
||||||
|
"landingPromo": {
|
||||||
|
"title": "Professional Landing Page Development in Just 2 Business Days – €150!",
|
||||||
|
"subtitle": "Looking to attract new customers quickly and effectively? Our experienced team specializes in creating efficient and modern landing pages that will help achieve your business goals.",
|
||||||
|
"whatYouGet": "What you get:",
|
||||||
|
"benefit1": "Customized landing page tailored to your brand and needs",
|
||||||
|
"benefit2": "Modern and user-friendly design",
|
||||||
|
"benefit3": "Mobile-responsive solution",
|
||||||
|
"benefit4": "Optimized page loading speed and SEO basics",
|
||||||
|
"benefit5": "Free consultation on content and structure creation",
|
||||||
|
"whyUs": "Why choose us:",
|
||||||
|
"feature1Title": "Fast Development",
|
||||||
|
"feature1": "Guaranteed delivery in just 2 business days",
|
||||||
|
"feature2Title": "Fixed Price",
|
||||||
|
"feature2": "€150 - no hidden costs",
|
||||||
|
"feature3Title": "Experienced Team",
|
||||||
|
"feature3": "Friendly and responsive team with website development experience",
|
||||||
|
"feature4Title": "Long-term Support",
|
||||||
|
"feature4": "Support even after page creation",
|
||||||
|
"ctaTitle": "Contact us today and get your new landing page in just two days!",
|
||||||
|
"ctaText": "Book a consultation – we'll help bring your ideas to life!",
|
||||||
|
"ctaButton": "Contact Us"
|
||||||
|
}
|
||||||
|
}
|
||||||
125
AstroLanding/src/translations/lv.json
Normal file
|
|
@ -0,0 +1,125 @@
|
||||||
|
{
|
||||||
|
"menu": {
|
||||||
|
"services": "Servisi",
|
||||||
|
"about_us": "Par mums",
|
||||||
|
"portfolio": "Portfolio",
|
||||||
|
"pricing": "Cenas",
|
||||||
|
"contact_us": "Sazināties",
|
||||||
|
"home": "Mājas"
|
||||||
|
},
|
||||||
|
"intro": {
|
||||||
|
"creating": "Mēs izstrādājam",
|
||||||
|
"websites": "mājas lapas",
|
||||||
|
"apps": "Mobīlās applikācijas",
|
||||||
|
"shops": "E-veikalus",
|
||||||
|
"platforms": "Platformas",
|
||||||
|
"explore": "Atklāj visumu"
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"title": "Servisi",
|
||||||
|
"cards": [
|
||||||
|
{
|
||||||
|
"title": "Mājas lapas",
|
||||||
|
"text": "Mēs izstrādājam modernas un ērti lietojamas mājaslapas, e-komerciajs risinājumus datoriem, mobilajām ierīcēm un planšetdatoriem.",
|
||||||
|
"image": "web_development.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Mobīlās aplikācijas",
|
||||||
|
"text": "Mēs savienojam jaunākās dizaina un izstrādes tendences, gala lietotāju vajadzības un labāko lietotāju pieredzes praksi. ",
|
||||||
|
"image": "mobile_app.svg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "UI & Animācijas",
|
||||||
|
"text": "Veido patīkamu pieredzi savos digitālajos produktos. Risini īstas problēmas un uzlabo savus svarīgākos biznesa rādītājus izmantojot skaistas saskarnes.",
|
||||||
|
"image": "ui_animations.svg"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"about_us": {
|
||||||
|
"title": "Par Mums",
|
||||||
|
"sub_title": "Vai tev ir kāda lieliska ideja prātā?",
|
||||||
|
"text": "Mums ir vairāk kā sešu gadu pieredze radošās izstrādes industrijā un esam spējīgi realizēt jebkādas sarežģītības projektus",
|
||||||
|
"amount_completed": "30+",
|
||||||
|
"completed": "Realizētu projektu",
|
||||||
|
"amount_webpages": "400+",
|
||||||
|
"webpages": "Izstrādātu mājas lapu",
|
||||||
|
"amount_experience": "6+",
|
||||||
|
"experience": "Gadu pieredze"
|
||||||
|
},
|
||||||
|
"projects": [
|
||||||
|
{
|
||||||
|
"title": "Inflid",
|
||||||
|
"image": "inflid_full_1.png",
|
||||||
|
"info": ["Website", "Platform", "UI / UX"],
|
||||||
|
"text": "Influenceru mārketinga platforuma"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Custom PC4U",
|
||||||
|
"image": "custom-pc4u.png",
|
||||||
|
"info": ["Website", "Platform", "UI / UX"],
|
||||||
|
"text": "Viedais personālo datoru konstruktors un e-veikals"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "MOCKBA MODULAR",
|
||||||
|
"image": "mockba-modular.png",
|
||||||
|
"info": ["Website", "Animations", "UI / UX"],
|
||||||
|
"text": "Moduļu konstruckiju mājas lapa"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "PRIYATKI",
|
||||||
|
"image": "pryatki.png",
|
||||||
|
"info": ["Website", "E-shop", "CMS"],
|
||||||
|
"text": "Bērnu modes e-veikals"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "SIZZAPP",
|
||||||
|
"image": "sizzapp.png",
|
||||||
|
"info": ["Website", "Landing", "UI / UX"],
|
||||||
|
"text": "Auto un motociklu drošības risinājumu mājas lapa"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "TrackPro",
|
||||||
|
"image": "trackpro.png",
|
||||||
|
"info": ["Website", "CMS"],
|
||||||
|
"text": "Autoparka pārvaldības sistēmas mājas lapa un satura vadības sistēmas izstrāde"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"contacts": {
|
||||||
|
"title": "Aizšauj savu projektu līdz mēnesim",
|
||||||
|
"name": "Vārds",
|
||||||
|
"email": "Ēpasts",
|
||||||
|
"phone": "Telefons",
|
||||||
|
"send": "Nosūtīt",
|
||||||
|
"success": "Paldies ",
|
||||||
|
"error": "Izskatās, ka kautkas nestrādā :( Uzrakstiet mums uz ",
|
||||||
|
"captchaError": "Lūdzu, aizpildiet captcha verifikāciju"
|
||||||
|
},
|
||||||
|
"footer": {
|
||||||
|
"company": "Kompānija",
|
||||||
|
"registration_nr": "Reģistrācijas nr.",
|
||||||
|
"address": "Adrese",
|
||||||
|
"navigation": "Navigācija"
|
||||||
|
},
|
||||||
|
"landingPromo": {
|
||||||
|
"title": "Profesionāla landing lapu izstrāde tikai 2 darba dienu laikā – 150 €!",
|
||||||
|
"subtitle": "Vai vēlaties ātri un kvalitatīvi piesaistīt jaunus klientus? Mūsu pieredzējusī komanda specializējas efektīvu un modernu landing lapu izstrādē, kas palīdzēs sasniegt jūsu biznesa mērķus.",
|
||||||
|
"whatYouGet": "Ko jūs iegūstat:",
|
||||||
|
"benefit1": "Individuāli pielāgotu landing lapu atbilstoši jūsu zīmolam un vajadzībām",
|
||||||
|
"benefit2": "Mūsdienīgu un lietotājam draudzīgu dizainu",
|
||||||
|
"benefit3": "Mobilajām ierīcēm pielāgotu risinājumu",
|
||||||
|
"benefit4": "Optimizētu lapas ielādes ātrumu un SEO pamatus",
|
||||||
|
"benefit5": "Bezmaksas konsultāciju par satura un struktūras izveidi",
|
||||||
|
"whyUs": "Kāpēc izvēlēties mūs:",
|
||||||
|
"feature1Title": "Ātra izstrāde",
|
||||||
|
"feature1": "Garantēta izstrāde tikai 2 darba dienu laikā",
|
||||||
|
"feature2Title": "Fiksēta cena",
|
||||||
|
"feature2": "150 € - bez slēptām izmaksām",
|
||||||
|
"feature3Title": "Pieredzējuša komanda",
|
||||||
|
"feature3": "Draudzīga un atsaucīga komanda ar pieredzi mājaslapu izstrādē",
|
||||||
|
"feature4Title": "Ilgtermiņa atbalsts",
|
||||||
|
"feature4": "Atbalsts arī pēc lapas izveides",
|
||||||
|
"ctaTitle": "Sazinieties ar mums jau šodien un saņemiet savu jauno landing lapu tikai divu dienu laikā!",
|
||||||
|
"ctaText": "Piesakieties konsultācijai – mēs palīdzēsim īstenot jūsu idejas!",
|
||||||
|
"ctaButton": "Sazināties ar mums"
|
||||||
|
}
|
||||||
|
}
|
||||||
28
AstroLanding/tsconfig.json
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
"extends": "astro/tsconfigs/strict",
|
||||||
|
"include": [
|
||||||
|
".astro/types.d.ts",
|
||||||
|
"**/*"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"compilerOptions": {
|
||||||
|
"strictNullChecks": true,
|
||||||
|
"jsx": "react-jsx",
|
||||||
|
"jsxImportSource": "react",
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["src/*"],
|
||||||
|
"@components/*": [
|
||||||
|
"src/components/*"
|
||||||
|
],
|
||||||
|
"@images/*": [
|
||||||
|
"src/assets/images/*"
|
||||||
|
],
|
||||||
|
"@consts": [
|
||||||
|
"src/consts"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||