feat: capitalize brandName everywhere and remove hardcoded microtec strings
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 1m2s Details

This commit is contained in:
Sidney Gomes 2026-07-24 18:33:14 -03:00
parent 1f18813b41
commit 8e19edb4f8
5 changed files with 10 additions and 10 deletions

View File

@ -131,7 +131,7 @@ export default function AdminApp() {
</div> </div>
<div className="space-y-1"> <div className="space-y-1">
<h1 className="font-display font-black text-2xl tracking-tighter text-white"> <h1 className="font-display font-black text-2xl tracking-tighter text-white">
{settings?.brandName || 'MICROTEC'}<span className="text-[#E50914]">FLIX</span> <span className="text-zinc-500 font-medium text-lg">ADMIN</span> {(settings?.brandName || 'MICROTEC').toUpperCase()}<span className="text-[#E50914]">FLIX</span> <span className="text-zinc-500 font-medium text-lg">ADMIN</span>
</h1> </h1>
<p className="text-[11px] text-zinc-400 font-medium">Autenticação obrigatória para gestores, administradores e moderadores.</p> <p className="text-[11px] text-zinc-400 font-medium">Autenticação obrigatória para gestores, administradores e moderadores.</p>
</div> </div>

View File

@ -66,7 +66,7 @@ export default function App() {
.then(data => { .then(data => {
setSettings(data); setSettings(data);
if (data.brandName) { if (data.brandName) {
document.title = `${data.brandName}FLIX - Plataforma de Estudos`; document.title = `${data.brandName.charAt(0).toUpperCase() + data.brandName.slice(1)}Flix - Plataforma de Estudos`;
} }
}) })
.catch(err => console.error('Error fetching settings:', err)); .catch(err => console.error('Error fetching settings:', err));
@ -456,12 +456,12 @@ export default function App() {
{/* Footer */} {/* Footer */}
<footer className="border-t border-zinc-900 bg-zinc-950 py-8 px-4 text-center text-xs text-zinc-500 space-y-2 mt-12"> <footer className="border-t border-zinc-900 bg-zinc-950 py-8 px-4 text-center text-xs text-zinc-500 space-y-2 mt-12">
<p className="font-semibold text-zinc-400">{(settings?.brandName || 'MICROTEC').toUpperCase()}FLIX - Plataforma de Cursos Profissionalizantes de Informática</p> <p className="font-semibold text-zinc-400">{(settings?.brandName || 'MICROTEC').toUpperCase()}FLIX - Plataforma de Cursos Profissionalizantes</p>
<p className="max-w-md mx-auto">Desenvolvido com foco em alta experiência de estudo para Windows, Pacote Office (Word, Excel, PowerPoint) e informática profissionalizante.</p> <p className="max-w-md mx-auto">Desenvolvido com foco em alta experiência de estudo para Windows, Pacote Office (Word, Excel, PowerPoint) e informática profissionalizante.</p>
{settings?.cnpj && ( {settings?.cnpj && (
<p className="text-[11px] text-zinc-650">CNPJ: {settings.cnpj} Endereço: {settings.address}</p> <p className="text-[11px] text-zinc-650">CNPJ: {settings.cnpj} Endereço: {settings.address}</p>
)} )}
<p className="text-zinc-600">© 2026 {settings?.brandName || 'Microtec'}Flix Inc. Todos os direitos reservados. Integrado oficialmente com a API Asaas.</p> <p className="text-zinc-600">© 2026 {(settings?.brandName ? settings.brandName.charAt(0).toUpperCase() + settings.brandName.slice(1) : 'Microtec')}Flix Inc. Todos os direitos reservados. Integrado oficialmente com a API Asaas.</p>
</footer> </footer>
</> </>
) : ( ) : (
@ -478,7 +478,7 @@ export default function App() {
<Play className="fill-white w-6 h-6" /> <Play className="fill-white w-6 h-6" />
</div> </div>
<h1 className="font-display font-black text-2xl tracking-tighter text-[#E50914]"> <h1 className="font-display font-black text-2xl tracking-tighter text-[#E50914]">
{settings?.brandName || 'MICROTEC'}<span className="text-white">FLIX</span> {(settings?.brandName || 'MICROTEC').toUpperCase()}<span className="text-white">FLIX</span>
</h1> </h1>
<p className="text-xs text-zinc-400 font-medium"> <p className="text-xs text-zinc-400 font-medium">
{settings?.brandSlogan || 'Acelere seus estudos em informática e pacote Office no estilo Netflix.'} {settings?.brandSlogan || 'Acelere seus estudos em informática e pacote Office no estilo Netflix.'}

View File

@ -22,7 +22,7 @@ export default function Root() {
React.useEffect(() => { React.useEffect(() => {
// Dynamically update document title and favicon // Dynamically update document title and favicon
document.title = isAdmin ? 'MicrotecFlix - Admin Portal' : 'MicrotecFlix - Plataforma de Estudos'; document.title = isAdmin ? 'Admin Portal' : 'Plataforma de Estudos';
let link = document.querySelector("link[rel~='icon']") as HTMLLinkElement; let link = document.querySelector("link[rel~='icon']") as HTMLLinkElement;
if (!link) { if (!link) {

View File

@ -357,7 +357,7 @@ export default function AdminDashboard({ token, adminUser, onLogout }: AdminDash
<Shield className="w-4 h-4" /> <Shield className="w-4 h-4" />
</div> </div>
<span className="font-display font-black text-base tracking-tighter text-[#E50914]"> <span className="font-display font-black text-base tracking-tighter text-[#E50914]">
{settings?.brandName || 'MICROTEC'}<span className="text-white">FLIX</span> {(settings?.brandName || 'MICROTEC').toUpperCase()}<span className="text-white">FLIX</span>
</span> </span>
</div> </div>
<button <button
@ -379,7 +379,7 @@ export default function AdminDashboard({ token, adminUser, onLogout }: AdminDash
</div> </div>
<div className="flex flex-col"> <div className="flex flex-col">
<span className="font-display font-black text-lg md:text-xl leading-none tracking-tighter text-[#E50914]"> <span className="font-display font-black text-lg md:text-xl leading-none tracking-tighter text-[#E50914]">
{settings?.brandName || 'MICROTEC'}<span className="text-white">FLIX</span> {(settings?.brandName || 'MICROTEC').toUpperCase()}<span className="text-white">FLIX</span>
</span> </span>
<span className="text-[9px] text-[#E50914] font-extrabold uppercase tracking-widest mt-0.5 leading-none"> <span className="text-[9px] text-[#E50914] font-extrabold uppercase tracking-widest mt-0.5 leading-none">
Admin Portal Admin Portal
@ -1157,7 +1157,7 @@ export default function AdminDashboard({ token, adminUser, onLogout }: AdminDash
value={settings.evolutionInstance || ''} value={settings.evolutionInstance || ''}
onChange={(e) => setSettings({...settings, evolutionInstance: e.target.value})} onChange={(e) => setSettings({...settings, evolutionInstance: e.target.value})}
className="w-full bg-black/40 border border-white/10 rounded-lg p-3 text-sm text-white focus:outline-none focus:border-[#E50914]" className="w-full bg-black/40 border border-white/10 rounded-lg p-3 text-sm text-white focus:outline-none focus:border-[#E50914]"
placeholder="microtecflix" placeholder="omflix"
/> />
</div> </div>

View File

@ -111,7 +111,7 @@ export default function Navbar({ user, activeView, setView, onLogout, settings }
<Play className="fill-white w-5 h-5" /> <Play className="fill-white w-5 h-5" />
</div> </div>
<span className="font-sans font-black text-xl md:text-2xl tracking-tighter text-[#E50914]"> <span className="font-sans font-black text-xl md:text-2xl tracking-tighter text-[#E50914]">
{settings?.brandName || 'MICROTEC'}<span className="text-white">FLIX</span> {(settings?.brandName || 'MICROTEC').toUpperCase()}<span className="text-white">FLIX</span>
</span> </span>
</div> </div>