xiaomlove / nexusphp

A private tracker application base on NexusPHP
https://nexusphp.org
GNU General Public License v2.0
843 stars 175 forks source link

Frontend #245

Open Martzy303 opened 5 months ago

Martzy303 commented 5 months ago

Hi, is it planned for the Frontend to be converted into Laravel Blade or it will stay how it is?

xiaomlove commented 5 months ago

If someone can design a whole new set of UI, try it, otherwise leave it as is.

Martzy303 commented 5 months ago

If someone can design a whole new set of UI, try it, otherwise leave it as is.

It's not be about how the UI looks and feels, personally I like the classic UI. Would be much easier to edit the layout if everything would be made into blade components using Tailwind, maybe even made responsive for mobile devices. Also the code would look much better with routes well defined, not a file for each page like now.

Martzy303 commented 5 months ago

@xiaomlove What do you think about this approach? It's just a draft, a lot to work on the mobile to do, dark mode colors are wrong, but just to have an idea about how it would look.

<body class="font-sans antialiased bg-bgLight dark:bg-gray-900">
    <div class="min-h-screen m-auto max-w-7xl px-6">
        @include('layouts.header')
        <div class="border">
            @include('layouts.navigation')
            <!-- Page Content -->
            <main class="pt-5 bg-fgLight">
                <div id="alerts">
                    @include('components.alerts')
                </div>
                {{ $slot }}
            </main>
        </div>
        @include('layouts.footer')
    </div>
</body>

https://github.com/xiaomlove/nexusphp/assets/3752468/977b6762-2191-42bc-a948-f0acb8e24c26