codedthemes / berry-free-react-admin-template

Berry free react material-ui admin template for easing and faster web development.
https://berrydashboard.io/free/
MIT License
1.84k stars 897 forks source link

Landing Page #25

Closed MihailButnaru closed 2 years ago

MihailButnaru commented 2 years ago

I am new to react js and i want to do a landing page.

Currently we have the APP that points to the Routes (dashboard)

        <StyledEngineProvider injectFirst>
            <ThemeProvider theme={theme(customization)}>
                <CssBaseline />
                <NavigationScroll>
                    <Routes />
                </NavigationScroll>
            </ThemeProvider>
        </StyledEngineProvider>

How can we have a landing page that will have the register/login and after that can redirect to the dashboard? Thank you

codedthemes commented 2 years ago

With the free version, the app will land to the dashboard. If you want to go to login first, you need to implement route guards. Route Guard will check if the user login or not and based on that redirect to the proper path. You may need to implement two route guard, Guest and Auth.

MihailButnaru commented 2 years ago

thank you

maikolcast commented 2 years ago

When starting berry I get the error "Failed to load config "airbnb" to extend from."

codedthemes commented 2 years ago

Please create a separate issue for this.