AuthLayout.jsx 787 B

1234567891011121314151617181920212223242526272829303132333435
  1. import React from "react";
  2. import { Layout } from "antd";
  3. const { Content, Footer } = Layout;
  4. const version = import.meta.env.VITE_API_VERSION;
  5. const AuthStyles = {
  6. layout: {
  7. height: "100vh",
  8. },
  9. content: {
  10. padding: "0 50px",
  11. display: "flex",
  12. justifyContent: "center",
  13. alignItems: "center",
  14. },
  15. footer: {
  16. textAlign: "center",
  17. },
  18. };
  19. const AuthLayout = ({ children }) => {
  20. return (
  21. <Layout className="layout" style={AuthStyles.layout}>
  22. <Content style={AuthStyles.content}>
  23. <div className="site-layout-content">{children}</div>
  24. </Content>
  25. <Footer style={AuthStyles.footer}>
  26. {version} - &copy; Derechos reservados.
  27. </Footer>
  28. </Layout>
  29. );
  30. };
  31. export default AuthLayout;