forked from abner/for-legacy-web
Fix: Load Theme early for onboarding.
This commit is contained in:
@@ -11,4 +11,9 @@
|
|||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.tsx"></script>
|
<script type="module" src="/src/main.tsx"></script>
|
||||||
</body>
|
</body>
|
||||||
|
<style>
|
||||||
|
html {
|
||||||
|
background-color: #191919;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -13,17 +13,19 @@ export default function Context({ children }: { children: Children }) {
|
|||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<State>
|
<State>
|
||||||
|
<Theme>
|
||||||
<Settings>
|
<Settings>
|
||||||
<Locale>
|
<Locale>
|
||||||
<Intermediate>
|
<Intermediate>
|
||||||
<Client>
|
<Client>
|
||||||
<Voice>
|
<Voice>
|
||||||
<Theme>{children}</Theme>
|
{children}
|
||||||
</Voice>
|
</Voice>
|
||||||
</Client>
|
</Client>
|
||||||
</Intermediate>
|
</Intermediate>
|
||||||
</Locale>
|
</Locale>
|
||||||
</Settings>
|
</Settings>
|
||||||
|
</Theme>
|
||||||
</State>
|
</State>
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
.onboarding {
|
.onboarding {
|
||||||
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -7,7 +8,9 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
&.header {
|
&.header {
|
||||||
|
gap: 8px;
|
||||||
padding: 3em;
|
padding: 3em;
|
||||||
|
display: flex;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
html {
|
html {
|
||||||
// contain: content;
|
// contain: content;
|
||||||
background: var(--background);
|
|
||||||
background-size: cover !important;
|
background-size: cover !important;
|
||||||
background-repeat: no-repeat !important;
|
background-repeat: no-repeat !important;
|
||||||
|
background-color: var(--background) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
|
|||||||
Reference in New Issue
Block a user