Search by

drago-ex / project-front-ui

accgit

Integration of a basic template for the website: the layout, the home page with the blog and the static pages in the menu.

Package info

github.com/drago-ex/project-front-ui

Language:Latte

Type:drago-tools-resource

pkg:composer/drago-ex/project-front-ui

Statistics

Installs: 19

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2026-11-17 10:27 UTC

This package is auto-updated.

Last update: 2026-11-17 10:40:30 UTC


README

The website design of Drago Project: a Bootstrap layout with the blog and the static pages in the menu, the user menu, a light/dark theme, a footer and the home page with the latest articles.

PHP version Coding Style

Requirements

Installation

composer require drago-ex/project-front-ui

Project Tools copies the files of the package into the project once, replacing the plain files of Project Front (BasePresenter, BaseTemplate, the front layout, the home page, assets/front.js and front.scss). Its npm dependencies (compostrap, Bootstrap Icons) are installed by npm install of the project; then build the assets again (npm run vite:build). It requires Blog, Static Pages, Settings and Account.

Layout

The website is the blog of compostrap. Front/@layout.latte has a header with the brand (the website setting), the blog, the static pages marked "Show in the menu" and the menu of the signed-in user (account, administration, theme, sign out), or a theme button and a sign-in button. The administration item is shown only to users allowed Backend:Admin. The footer has the brand, the links of the site and the tools the site is built with; edit them freely.

Front/Home shows the latest seven articles of the blog, the same list as the blog.

BasePresenter checks every presenter by the ACL, loads the settings and gives the layout the static pages of the menu.

Assets

assets/front.js registers the Naja extensions of the website: the spinner, the submit button, toasts, dropdowns, the Texy toolbar of comments with the copy button of code blocks and the reply to a blog comment. assets/front.scss imports the styles of the website from compostrap: its module blog (header, footer, article cards, an article with its Texy text, comments) and the modules the header uses. Your own styles of the website go under these imports.