feat: capitalize brandName everywhere and remove hardcoded microtec strings
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 1m2s
Details
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 1m2s
Details
This commit is contained in:
parent
1f18813b41
commit
8e19edb4f8
|
|
@ -131,7 +131,7 @@ export default function AdminApp() {
|
|||
</div>
|
||||
<div className="space-y-1">
|
||||
<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>
|
||||
<p className="text-[11px] text-zinc-400 font-medium">Autenticação obrigatória para gestores, administradores e moderadores.</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export default function App() {
|
|||
.then(data => {
|
||||
setSettings(data);
|
||||
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));
|
||||
|
|
@ -456,12 +456,12 @@ export default function App() {
|
|||
|
||||
{/* 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">
|
||||
<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>
|
||||
{settings?.cnpj && (
|
||||
<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>
|
||||
</>
|
||||
) : (
|
||||
|
|
@ -478,7 +478,7 @@ export default function App() {
|
|||
<Play className="fill-white w-6 h-6" />
|
||||
</div>
|
||||
<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>
|
||||
<p className="text-xs text-zinc-400 font-medium">
|
||||
{settings?.brandSlogan || 'Acelere seus estudos em informática e pacote Office no estilo Netflix.'}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export default function Root() {
|
|||
|
||||
React.useEffect(() => {
|
||||
// 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;
|
||||
if (!link) {
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ export default function AdminDashboard({ token, adminUser, onLogout }: AdminDash
|
|||
<Shield className="w-4 h-4" />
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
<button
|
||||
|
|
@ -379,7 +379,7 @@ export default function AdminDashboard({ token, adminUser, onLogout }: AdminDash
|
|||
</div>
|
||||
<div className="flex flex-col">
|
||||
<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 className="text-[9px] text-[#E50914] font-extrabold uppercase tracking-widest mt-0.5 leading-none">
|
||||
Admin Portal
|
||||
|
|
@ -1157,7 +1157,7 @@ export default function AdminDashboard({ token, adminUser, onLogout }: AdminDash
|
|||
value={settings.evolutionInstance || ''}
|
||||
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]"
|
||||
placeholder="microtecflix"
|
||||
placeholder="omflix"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ export default function Navbar({ user, activeView, setView, onLogout, settings }
|
|||
<Play className="fill-white w-5 h-5" />
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue