no index.html under public folder

I am a beginner to refine and I followed one of the most popular MERN tutorials https://www.youtube.com/watch?v=k4lHXIzCEkM&t=28s When changing the fonts, the video modified an index.html file under the public folder. However, I didn't see this file. What happened? I would appreciate it if anyone could help.
JavaScript Mastery
YouTube
Build and Deploy a Full Stack MERN Application With CRUD, Auth, and...
In this one video, learn how to develop a fully functional full-stack MERN dashboard application with complete CRUD functionalities, authentication, pagination, sorting, filtering, and more! ⭐ refine - https://github.com/refinedev/refine ‎💻 GitHub Code Client - https://github.com/refinedev/refine/tree/next/examples/mern-dashboard-client ‎💻 GitH...
No description
5 Replies
kapa.ai
kapa.ai2w ago
Hi @Jasmine Wu. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems like you are following a tutorial that might be using an older version of refine. The file structure in the latest version of refine might be different from what is shown in the video. From the information available, it appears that there have been changes in the file structure between different versions of refine. Specifically, a user reported a similar issue where the file structure differed from what was shown in a tutorial video. The response to that issue indicated that the video was using refine@3, while the latest version is refine@4. To align your setup with the tutorial, you can create a refine@3 app using the following command:
npm create refine-app@latest -- --branch v3
npm create refine-app@latest -- --branch v3
After setting up the project with refine@3, you should be able to follow the tutorial more closely. Additionally, you can refer to the migration guide (https://refine.dev/docs/migration-guide/3x-to-4x/) if you need to upgrade to the latest version later. For more details, you can check the related GitHub issue (https://github.com/refinedev/refine/issues/4242). If you still encounter issues, feel free to ask for further assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2w ago
<@795913409320452116> kapa.ai is still learning and improving, please let us know how it did by reacting below
foreign-sapphire
foreign-sapphire2w ago
@kapa.ai but i need to modify index.html page for customized fonts. what should i do?
kapa.ai
kapa.ai2w ago
Let me check the knowledge base for you. One moment! :books: ---------------------- To customize fonts in your refine application, you can modify the index.html file to include the necessary font links. Here’s how you can do it: 1. Locate or Create index.html: - If you don't have an index.html file under the public folder, you can create one. This file is typically used to include global settings and links, such as custom fonts. 2. Add Font Links: - You can add the font links in the <head> section of your index.html file. Here is an example of how to include a custom font:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="<https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap">
rel="stylesheet"
/>
<title>Refine App with Custom Fonts</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="<https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap">
rel="stylesheet"
/>
<title>Refine App with Custom Fonts</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
3. Apply the Custom Font in Your CSS: - After adding the font link, you can apply the custom font in your CSS files. For example, in your index.css or any other CSS file:
body {
font-family: 'Montserrat', sans-serif;
}
body {
font-family: 'Montserrat', sans-serif;
}
By following these steps, you should be able to customize the fonts in your refine application. If you need more detailed information, you can refer to the Material UI documentation for more information about Material UI Theme Configuration Variables (https://mui.com/material-ui/customization/theming/). If you encounter any issues or need further assistance, feel free to ask! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2w ago
<@795913409320452116> kapa.ai is still learning and improving, please let us know how it did by reacting below