-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
156 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"title": "Plandy | Reminders & Calendar", | ||
"intro_text": "Simple and easy task Manager" | ||
} |
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,4 @@ | ||
{ | ||
"title": "Plandy: \u30EA\u30DE\u30A4\u30F3\u30C0\u30FC\u0020\uFF06\u0020\u30AB\u30EC\u30F3\u30C0\u30FC", | ||
"intro_text": "\u30B7\u30F3\u30D7\u30EB\u3067\u7C21\u5358\u306A\u30BF\u30B9\u30AF\u7BA1\u7406" | ||
} |
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,4 @@ | ||
{ | ||
"title": "Plandy | \uB9AC\uB9C8\uC778\uB354\u0020\u0026\u0020\uB2EC\uB825", | ||
"intro_text": "\uBE60\uB974\uACE0\u0020\uAC04\uD3B8\uD55C\u0020\uC77C\uC815\uACFC\u0020\uD560\uC77C\u0020\uAD00\uB9AC" | ||
} |
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,47 @@ | ||
import styled from "basic-styled"; | ||
|
||
function Loading() { | ||
return ( | ||
<StyledSpinner> | ||
<Bounce1 /> | ||
<Bounce2 /> | ||
<Bounce3 /> | ||
</StyledSpinner> | ||
); | ||
} | ||
|
||
const StyledSpinner = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
gap: 20px; | ||
width: 100%; | ||
flex: 1 1 0; | ||
transform: translateY(50%); | ||
& > div { | ||
width: 18px; | ||
height: 18px; | ||
background-color: ${({ theme: { palette } }) => palette.tertiary}; | ||
border-radius: 100%; | ||
display: inline-block; | ||
-webkit-animation: bounceDelay 1.4s infinite ease-in-out both; | ||
animation: bounceDelay 1.4s infinite ease-in-out both; | ||
} | ||
`; | ||
|
||
const Bounce1 = styled.div` | ||
-webkit-animation-delay: -0.32s !important; | ||
animation-delay: -0.32s !important; | ||
`; | ||
|
||
const Bounce2 = styled.div` | ||
-webkit-animation-delay: -0.16s !important; | ||
animation-delay: -0.16s !important; | ||
`; | ||
|
||
const Bounce3 = styled.div` | ||
-webkit-animation-delay: -1.4s !important; | ||
animation-delay: -1.4s !important; | ||
`; | ||
|
||
export default Loading; |
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,25 +1,29 @@ | ||
import { StrictMode } from "react"; | ||
import { StrictMode, Suspense } from "react"; | ||
|
||
import { HelmetProvider } from "react-helmet-async"; | ||
import { BrowserRouter } from "react-router-dom"; | ||
import "@utils/i18n"; | ||
|
||
import ReactDOM from "react-dom/client"; | ||
import { createRoot } from "react-dom/client"; | ||
|
||
import Loading from "@components/utils/Loading"; | ||
import ThemeProvider from "@providers/ThemeProvider"; | ||
import { GoogleAnalytics } from "@utils/google-analytics"; | ||
|
||
import App from "./App"; | ||
|
||
GoogleAnalytics.initialize(); | ||
|
||
ReactDOM.createRoot(document.getElementById("root")!).render( | ||
createRoot(document.getElementById("root")!).render( | ||
<StrictMode> | ||
<HelmetProvider> | ||
<ThemeProvider> | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
</ThemeProvider> | ||
</HelmetProvider> | ||
<Suspense fallback={<Loading />}> | ||
<HelmetProvider> | ||
<ThemeProvider> | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
</ThemeProvider> | ||
</HelmetProvider> | ||
</Suspense> | ||
</StrictMode> | ||
); |
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,35 @@ | ||
import { initReactI18next } from "react-i18next"; | ||
|
||
import i18n from "i18next"; | ||
import LanguageDetector from "i18next-browser-languagedetector"; | ||
import Backend from "i18next-http-backend"; | ||
|
||
import translationEN from "../../public/locales/en/translation.json"; | ||
import translationJA from "../../public/locales/ja/translation.json"; | ||
import translationKO from "../../public/locales/ko/translation.json"; | ||
|
||
export const resources = { | ||
en: { | ||
translation: translationEN | ||
}, | ||
ko: { | ||
translation: translationKO | ||
}, | ||
ja: { | ||
translation: translationJA | ||
} | ||
}; | ||
|
||
i18n | ||
.use(Backend) | ||
.use(LanguageDetector) | ||
.use(initReactI18next) | ||
.init({ | ||
resources, | ||
fallbackLng: "en", | ||
interpolation: { | ||
escapeValue: false | ||
} | ||
}); | ||
|
||
export default i18n; |