Porto
Porto
TTCTheo's Typesafe Cult
Created by Niks on 12/26/2023 in #questions
nativewind component library
Or if you really want to use next for the dashboard you can build the app's for web and point to them using a iframe
4 replies
TTCTheo's Typesafe Cult
Created by Niks on 12/26/2023 in #questions
nativewind component library
It would be easier to create a the 3 app's and the dashboard using expo (it has native support for react-native-web) and share the components that way. The convenience of this approach is that you going to have a web version for your app's and also an app version of your dashboard
4 replies
TTCTheo's Typesafe Cult
Created by Karan Handa on 12/26/2023 in #questions
Just started using t3. Is this a bug?
another option is to add next/font/google to the _app.tsx
import { type AppType } from "next/app";

import { api } from "~/utils/api";

import "~/styles/globals.css";

import { Inter } from "next/font/google";

const inter = Inter({
subsets: ["latin"],
variable: "--font-sans",
});

const MyApp: AppType = ({ Component, pageProps }) => {
return (
<>
<style jsx global>{`
html {
font-family: ${inter.style.fontFamily};
}
`}</style>
<Component {...pageProps} />;
</>
);
};

export default api.withTRPC(MyApp);
import { type AppType } from "next/app";

import { api } from "~/utils/api";

import "~/styles/globals.css";

import { Inter } from "next/font/google";

const inter = Inter({
subsets: ["latin"],
variable: "--font-sans",
});

const MyApp: AppType = ({ Component, pageProps }) => {
return (
<>
<style jsx global>{`
html {
font-family: ${inter.style.fontFamily};
}
`}</style>
<Component {...pageProps} />;
</>
);
};

export default api.withTRPC(MyApp);
4 replies
TTCTheo's Typesafe Cult
Created by Karan Handa on 12/26/2023 in #questions
Just started using t3. Is this a bug?
Just go into your tailwind.config.ts and remove the "var(--font-sans)", from the sans array That is happening because the lack next/font/google in the pages folder
4 replies
TTCTheo's Typesafe Cult
Created by koshchei on 12/23/2023 in #questions
Head component in Astro
Using:
<style is:global></style>
<style is:global></style>
Puts the styles globally on the head for you https://docs.astro.build/en/guides/styling/#global-styles
2 replies
TTCTheo's Typesafe Cult
Created by Gaven Dcosta on 12/23/2023 in #questions
Sign-in issue
Working fine in here, did you try cleaning your cache or another browser ?
4 replies
TTCTheo's Typesafe Cult
Created by not sam on 12/23/2023 in #questions
Password hashing on Edge
Edge is based on the web standard so you can just use the Web Crypto API: https://developer.mozilla.org/en-US/docs/Web/API/Crypto Here is a Vercel example running crypto in a middleware at the edge: https://github.com/vercel/examples/blob/main/edge-middleware/crypto/pages/api/crypto.ts
4 replies