-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌐 Add i18n support and update language settings
- Loading branch information
Showing
18 changed files
with
540 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
'*.{js,jsx,ts,tsx,astro}': ['eslint --fix', 'eslint'], | ||
'*.{js,jsx,astro}': ['eslint --fix', 'eslint'], | ||
'**/*.ts?(x)': () => 'npm run build-types', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
--- | ||
import About from '@components/About.astro'; | ||
import ButtonTop from '@components/buttons/button-top.svelte'; | ||
import Contact from '@components/Contact.astro'; | ||
import Header from '@components/Header.astro'; | ||
import Hero from '@components/Hero.astro'; | ||
import Navigation from '@components/Navigation.svelte'; | ||
import Portfolio from '@components/Portfolio.astro'; | ||
import Skills from '@components/Skills.astro'; | ||
import { getI18n } from '@i18n/index'; | ||
import Layout from '@layouts/Layout.astro'; | ||
const { currentLocale } = Astro; | ||
const i18n = getI18n({ currentLocale }); | ||
--- | ||
|
||
<Layout title={i18n.SEO_TITLE} description={i18n.SEO_DESCRIPTION} language={i18n.LANGUAGE}> | ||
<div class="wrapper"> | ||
<Header /> | ||
<Navigation client:load/> | ||
<div class="content"> | ||
<div class="blur bottom"></div> | ||
<div class="blur top"></div> | ||
<Hero /> | ||
<About /> | ||
<Skills /> | ||
<Portfolio /> | ||
<Contact /> | ||
</div> | ||
</div> | ||
<ButtonTop client:idle/> | ||
</Layout> | ||
|
||
<style> | ||
.wrapper { | ||
opacity: 1; | ||
visibility: visible; | ||
transition: opacity 2.2s ease-in-out, visibility 2.2s ease-in-out, height 2.2s ease-in-out; | ||
overflow: hidden; | ||
max-width: 1200px; | ||
min-width: 380px; | ||
height: auto; | ||
margin: 0 auto; | ||
position: relative; | ||
} | ||
|
||
.content { | ||
margin: 0 1rem; | ||
} | ||
|
||
.blur { | ||
position: fixed; | ||
width: 14rem; | ||
height: 14rem; | ||
border-radius: 50%; | ||
background: #60a5fa; | ||
z-index: -9; | ||
filter: blur(200px); | ||
} | ||
|
||
.blur.bottom { | ||
top: 620px; | ||
left: 25%; | ||
} | ||
|
||
.blur.top { | ||
top: 100px; | ||
left: 75%; | ||
} | ||
|
||
@media (max-width: 900px) { | ||
.content { | ||
margin: 0 1rem; | ||
} | ||
} | ||
|
||
@media (max-width: 480px) { | ||
.blur.bottom { | ||
top: 380px; | ||
left: 0%; | ||
} | ||
.blur.top { | ||
top: 90px; | ||
left: 40%; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.