diff --git a/public/assets/images/empresa/logoAlphaBC.svg b/public/assets/images/empresa/logoAlphaBC.svg index 229bb48..7292d1b 100644 --- a/public/assets/images/empresa/logoAlphaBC.svg +++ b/public/assets/images/empresa/logoAlphaBC.svg @@ -8,7 +8,7 @@ Created by potrace 1.16, written by Peter Selinger 2001-2019 +fill="#fdfefe" stroke="none"> + + + + + + + + + + + + + + + + + + + + + diff --git a/public/assets/images/logo/WhatsApp-Logo.wine.svg b/public/assets/images/logo/WhatsApp-Logo.wine.svg new file mode 100644 index 0000000..fde5da2 --- /dev/null +++ b/public/assets/images/logo/WhatsApp-Logo.wine.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/@mock-api/api/auth-api.ts b/src/@mock-api/api/auth-api.ts index 8c53cee..659a316 100644 --- a/src/@mock-api/api/auth-api.ts +++ b/src/@mock-api/api/auth-api.ts @@ -31,14 +31,14 @@ export const authApiMocks = (mock: ExtendedMockAdapter) => { if (!user) { error.push({ type: 'email', - message: 'Check your email address' + message: 'Verifique su correo' }); } if (user && user.password !== password) { error.push({ type: 'password', - message: 'Check your password' + message: 'Contraseña incorrecta' }); } @@ -67,7 +67,7 @@ export const authApiMocks = (mock: ExtendedMockAdapter) => { return [200, null, { 'New-Access-Token': access_token }]; } - const error = 'Invalid access token detected or user not found'; + const error = 'Acceso inválido o usario no encontrado'; return [401, { data: error }]; }); @@ -81,7 +81,7 @@ export const authApiMocks = (mock: ExtendedMockAdapter) => { return [200, user, { 'New-Access-Token': access_token }]; } - const error = 'Invalid access token detected or user not found'; + const error = 'Acceso inválido o usario no encontrado'; return [401, { error }]; }); @@ -123,7 +123,7 @@ export const authApiMocks = (mock: ExtendedMockAdapter) => { if (isEmailExists) { error.push({ type: 'email', - message: 'The email address is already in use' + message: 'El correo ya ha sido usado para registrarse' }); } diff --git a/src/@mock-api/mock-api.json b/src/@mock-api/mock-api.json index 42a83e8..c53cd41 100644 --- a/src/@mock-api/mock-api.json +++ b/src/@mock-api/mock-api.json @@ -7493,7 +7493,7 @@ "data": { "displayName": "Abbott Keitch", "photoURL": "assets/images/avatars/brian-hughes.jpg", - "email": "admin@fusetheme.com", + "email": "admin@qsoftec.com", "settings": { "layout": {}, "theme": {} @@ -32753,7 +32753,7 @@ "data": { "displayName": "Abbott Keitch", "photoURL": "assets/images/avatars/brian-hughes.jpg", - "email": "admin@fusetheme.com", + "email": "admin@qsoftec.com", "settings": { "layout": {}, "theme": {} diff --git a/src/app/configs/themesConfig.ts b/src/app/configs/themesConfig.ts index 13770fc..58efa41 100644 --- a/src/app/configs/themesConfig.ts +++ b/src/app/configs/themesConfig.ts @@ -35,13 +35,13 @@ export const themesConfig: FuseThemesType = { }, primary: { light: '#64748b', - main: '#1e293b', + main: '#081c44', dark: '#0f172a', contrastText: darkPaletteText.primary }, secondary: { light: '#818cf8', - main: '#4f46e5', + main: '#3cb1fe', dark: '#3730a3', contrastText: darkPaletteText.primary }, @@ -68,7 +68,7 @@ export const themesConfig: FuseThemesType = { }, primary: { light: '#64748b', - main: '#334155', + main: '#081c44', dark: '#0f172a', contrastText: darkPaletteText.primary }, diff --git a/src/app/main/sign-in/SignInPage.tsx b/src/app/main/sign-in/SignInPage.tsx index 72ef2ed..40b5537 100644 --- a/src/app/main/sign-in/SignInPage.tsx +++ b/src/app/main/sign-in/SignInPage.tsx @@ -23,13 +23,6 @@ import FirebaseSignInTab from './tabs/FirebaseSignInTab'; /** * Form Validation Schema */ -const schema = z.object({ - email: z.string().email('You must enter a valid email').nonempty('You must enter an email'), - password: z - .string() - .min(8, 'Password is too short - must be at least 8 chars.') - .nonempty('Please enter your password.') -}); const tabs = [ { @@ -46,38 +39,12 @@ const tabs = [ } ]; -type FormType = { - email: string; - password: string; - remember?: boolean; -}; -const defaultValues = { - email: '', - password: '', - remember: true -}; - -/** - * The full screen reversed sign in page. - */ function SignInPage() { const [selectedTabId, setSelectedTabId] = useState(tabs[0].id); function handleSelectTab(id: string) { - setSelectedTabId(id); - } - - const { control, formState, handleSubmit, reset } = useForm({ - mode: 'onChange', - defaultValues, - resolver: zodResolver(schema) - }); - - const { isValid, dirtyFields, errors } = formState; - - function onSubmit() { - reset(defaultValues); + setSelectedTabId("jwt"); } return ( @@ -104,7 +71,7 @@ function SignInPage() { - ))} - - {selectedTabId === 'jwt' && } + */} + {selectedTabId === 'jwt' && } - {selectedTabId === 'firebase' && } + {/* {selectedTabId === 'firebase' && } */} -
-
- - Or continue with - -
-
- -
- - - -
+ className="relative hidden h-auto justify-center items-center flex-auto p-64 md:flex lg:px-112" + sx={{ backgroundColor: 'primary.main' }}> + + + + + + + + + + + + + +
logo -
-
Welcome to
-
our community
+
+
Bienvenido al sistema que se encarga de tu facturación electrónica.
-
- Fuse helps developers to build organized and well coded dashboards full of beautiful and - rich modules. Join us and start building your application today. +
+
¿Necesitas ayuda? Comunícate con nosotros.
+
+
+
Soporte técnico: 0967722226
+ + Chat WhatsApp + +
+
+
Correo eletrónico: info@qsoftec.com
-
- - - - - - -
- More than 17k people joined us, it's your turn -
-
diff --git a/src/app/main/sign-in/tabs/JwtSignInTab.tsx b/src/app/main/sign-in/tabs/JwtSignInTab.tsx index d161a7e..bb83553 100644 --- a/src/app/main/sign-in/tabs/JwtSignInTab.tsx +++ b/src/app/main/sign-in/tabs/JwtSignInTab.tsx @@ -16,11 +16,11 @@ import { zodResolver } from '@hookform/resolvers/zod'; * Form Validation Schema */ const schema = z.object({ - email: z.string().email('You must enter a valid email').nonempty('You must enter an email'), + email: z.string().email('Debe ingresar un correo válido').nonempty('Debe ingresar un correo'), password: z .string() - .min(4, 'Password is too short - must be at least 4 chars.') - .nonempty('Please enter your password.') + .min(4, 'La contraseña es muy corta, debe ingresar almenos 4 caracteres.') + .nonempty('Por favor ingrese su contraseña.') }); type FormType = { @@ -47,7 +47,7 @@ function jwtSignInTab() { const { isValid, dirtyFields, errors } = formState; useEffect(() => { - setValue('email', 'admin@fusetheme.com', { shouldDirty: true, shouldValidate: true }); + setValue('email', 'admin@qsoftec.com', { shouldDirty: true, shouldValidate: true }); setValue('password', 'admin', { shouldDirty: true, shouldValidate: true }); }, [setValue]); @@ -95,7 +95,7 @@ function jwtSignInTab() { ( - Forgot password? + Olvidaste tu contraseña?
diff --git a/src/app/main/sign-up/SignUpPage.tsx b/src/app/main/sign-up/SignUpPage.tsx index 3b0051b..0634b2a 100644 --- a/src/app/main/sign-up/SignUpPage.tsx +++ b/src/app/main/sign-up/SignUpPage.tsx @@ -37,28 +37,29 @@ function SignUpPage() { } return ( -
- +
+ +
logo - Sign up + Registrarse
- Already have an account? + Ya tienes cuenta? - Sign in + Inicia sesión
- +{/* ))} - - {selectedTabId === 'jwt' && } - {selectedTabId === 'firebase' && } + */} + +{/* {selectedTabId === 'firebase' && } + */}
-
- - - - - - - - - + + - + + + + + - - - - + width="20" + height="20" + patternUnits="userSpaceOnUse" + > + + + + + -
-
-
Welcome to
-
our community
-
-
- Fuse helps developers to build organized and well coded dashboards full of beautiful and rich - modules. Join us and start building your application today. -
-
- - - - - - - -
- More than 17k people joined us, it's your turn +
+ logo +
+
Bienvenido al sistema que se encarga de tu facturación electrónica.
+
+
¿Necesitas ayuda? Comunícate con nosotros.
+
+
+
Soporte técnico: 0967722226
+ + Chat WhatsApp + +
+
+
Correo eletrónico: info@qsoftec.com
+
+
-
- + +
); } diff --git a/src/app/main/sign-up/tabs/JwSignUpTab.tsx b/src/app/main/sign-up/tabs/JwSignUpTab.tsx index 586e76e..00d483e 100644 --- a/src/app/main/sign-up/tabs/JwSignUpTab.tsx +++ b/src/app/main/sign-up/tabs/JwSignUpTab.tsx @@ -15,17 +15,17 @@ import { SignUpPayload, useAuth } from '../../../auth/AuthRouteProvider'; */ const schema = z .object({ - displayName: z.string().nonempty('You must enter your name'), - email: z.string().email('You must enter a valid email').nonempty('You must enter an email'), + displayName: z.string().nonempty('Debe ingresar un nombre de usuario'), + email: z.string().email('Debe ingresar un correo válido').nonempty('Debe ingresar un correo'), password: z .string() - .nonempty('Please enter your password.') - .min(8, 'Password is too short - should be 8 chars minimum.'), - passwordConfirm: z.string().nonempty('Password confirmation is required'), - acceptTermsConditions: z.boolean().refine((val) => val === true, 'The terms and conditions must be accepted.') + .nonempty('Por favor ingrese su contraseña.') + .min(4, 'La contraseña es muy corta, debe ingresar almenos 4 caracteres'), + passwordConfirm: z.string().nonempty('Debe ingresar su contraseña'), + acceptTermsConditions: z.boolean().refine((val) => val === true, 'Debe aceptar los términos y condiciones') }) .refine((data) => data.password === data.passwordConfirm, { - message: 'Passwords must match', + message: 'Contraseñas no coinciden', path: ['passwordConfirm'] }); @@ -80,7 +80,7 @@ function JwtSignUpTab() { - Create your free account + Registrarse );