Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] It is possible to add guide on how to edit theme? #5

Open
dzvision opened this issue Oct 19, 2024 · 1 comment
Open

[Discussion] It is possible to add guide on how to edit theme? #5

dzvision opened this issue Oct 19, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@dzvision
Copy link

dzvision commented Oct 19, 2024

This is just a discussion or suggestion for adding guidance on how to edit it.

For example, I am not a web developer and not know next.js much.
To change the default blog from xxx.com/blog to blog.xxx.com it takes me more than 2 hours of search, trying with the next.config.mjs, working with the page.tsx to add rewrite/redirect.

After few more test and search every file, I finally found I should edit /src/components/Header.tsx

                    { routes['/blog'] && (
                        <ToggleButton
                            prefixIcon="grid"
                            href={`https://blog.xxx.com`}
                            selected={pathname.startsWith('/blog')}>
                            <Flex paddingX="2" hide="s">{blog.label}</Flex>
                        </ToggleButton>
                    )}  

How to edit icon of the navbar? (by using default icon list) [If there is no default icon list, that is fine too]

Then I face another issue. I want to delete the home page that has "work" project. And I don't know how to find it. Is it possible enlighten me how to delete that? Thank you.

image

@lorant-one
Copy link
Member

hello @dzvision thanks for your feedback and for describing your experience with the onboarding, it’s super helpful to us!

here are the answers to your questions:

  • you can add custom icons from react-icons to the icons.ts file as described here: https://once-ui.com/docs/icons and then update the prefixIcon props for the ToggleButton components in the Header.tsx file
  • you can remove the Work section from the homepage by deleting the component from the main src/app/page.tsx file

if you have further questions, please join our discord as well where we can get back to you quicker and help with setting up custom functionalities like the blog routing!

your feedback means a lot to us — we’ll create a more comprehensive setup guide for Magic Portfolio shortly!

@lorant-one lorant-one added the documentation Improvements or additions to documentation label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants