Skip to content

Commit

Permalink
crear el footer y su css
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Feb 12, 2024
1 parent 5c08df7 commit 36e42cd
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 2 deletions.
4 changes: 3 additions & 1 deletion webapp/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import Login from './components/Login';
import CssBaseline from '@mui/material/CssBaseline';
import Container from '@mui/material/Container';
import Typography from '@mui/material/Typography';

import Footer from './components/Footer';
function App() {
return (

Expand All @@ -64,6 +64,8 @@ function App() {
{/* Aquí se muestra el componente GenerateQuestion */}

<GenerateQuestion />

<Footer> </Footer>
</Container>
);
}
Expand Down
17 changes: 17 additions & 0 deletions webapp/src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import '../styles/Footer.css'; // Asegúrate de importar tu archivo de estilos si es necesario

const Footer = () => (
<footer className="footer">
<p>Trabajo de Arquitectura del Software</p>
<p>
<a href="https://github.com/Arquisoft/wiq_es04c" target="_blank" rel="noopener noreferrer">
Github del Proyecto
</a>
</p>
<p>
<a href="https://ingenieriainformatica.uniovi.es" target="_blank"rel="noopener noreferrer">Escuela de Ingeniería Informática</a></p>
</footer>
);

export default Footer;
2 changes: 1 addition & 1 deletion webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ root.render(
<React.StrictMode>
<Navbar></Navbar>

<App />
<App />

</React.StrictMode>
);
Expand Down
26 changes: 26 additions & 0 deletions webapp/src/styles/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* Estilo para el pie de página */
/* Estilos del pie de página */
.footer {
position: fixed;
bottom: 0;
width: 100%;
left:0%;
background-color: #001f3f;
color: #ffffff;
padding: 10px;
text-align: center;
display: flex;
justify-content: space-around; /* Distribuye los elementos horizontalmente */
align-items: center;
}

.footer a {
color: #ffffff; /* Enlaces en texto blanco */
text-decoration: none;

}

.footer a:hover {
text-decoration: underline; /* Subraya enlaces al pasar el ratón */
}

0 comments on commit 36e42cd

Please sign in to comment.