diff --git a/src/components/GridItem.astro b/src/components/GridItem.astro new file mode 100644 index 0000000..4860fca --- /dev/null +++ b/src/components/GridItem.astro @@ -0,0 +1,127 @@ +--- +export interface Props { + title: string; + text: string; + url: string; + elemClass?: Array; + btnClass?: Array; + dataJs?: string; +} + +const { + title, text, url, + elemClass = [], + btnClass = [], + dataJs = "", +} = Astro.props; +--- + +
+ + + + + + + + {title} + + + + + {text} + + + + + + + + + +
+ + diff --git a/src/components/HostedService.astro b/src/components/HostedService.astro new file mode 100644 index 0000000..392761e --- /dev/null +++ b/src/components/HostedService.astro @@ -0,0 +1,34 @@ +--- +import GridItem from "./GridItem.astro"; + +export interface Props { + name: string; + description: string; + url: string; + iconUrl?: string; +} + +const { name, description, url, iconUrl = `${url}/favicon.ico` } = Astro.props; +--- + + + + + + diff --git a/src/components/Profile.astro b/src/components/Profile.astro index 41a9995..e043752 100644 --- a/src/components/Profile.astro +++ b/src/components/Profile.astro @@ -1,4 +1,5 @@ --- +import GridItem from './GridItem.astro'; import Icon from './Icon.astro'; export interface Props { @@ -12,28 +13,21 @@ export interface Props { const { app, url, name, icon, copyName = false } = Astro.props; --- - + + + + - diff --git a/src/layouts/Grid.astro b/src/layouts/Grid.astro new file mode 100644 index 0000000..111912f --- /dev/null +++ b/src/layouts/Grid.astro @@ -0,0 +1,13 @@ +
+ +
+ + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 473d057..43b7825 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -48,16 +48,18 @@ const { title, description } = Astro.props; margin: auto; padding: @main-padding; max-width: @max-width; - /* - width: 100%; - overflow-x: hidden; - */ } article { max-width: 100vw; width: fit-content; margin: auto; + + &.centered { + display: flex; + flex-direction: column; + align-items: center; + } } section { diff --git a/src/pages/index.astro b/src/pages/index.astro index e1a8718..e954140 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,27 +1,28 @@ --- import MainLayout from '../layouts/MainLayout.astro'; +import Grid from '../layouts/Grid.astro'; import Profile from '../components/Profile.astro'; import ListItem from '../components/ListItem.astro'; const description = "Hi! I'm Andrew aka DarkCat09, " + - "a 13-years-old fullstack developer from Russia"; + "a 14-years-old fullstack developer from Russia"; ---

Hi! I'm Andrew.

-

13-years-old fullstack dev

+

14-years-old fullstack dev

-
+ -
+
    @@ -47,7 +48,7 @@ const description =
- Favorite OS: Manjaro Linux + Favorite OS: Arch Linux @@ -61,21 +62,6 @@ const description =