Fakultas Ilmu Komputer UI

Commit b201d07c authored by Jordan Muhammad Andrianda's avatar Jordan Muhammad Andrianda
Browse files

Merge branch '1506722765-221' into 'master'

1506722765 221 Menambahkan informasi di footer pada file assets/js/footer.js

See merge request !248
parents bfe4c363 b277bc3d
Pipeline #26715 passed with stages
in 17 minutes and 34 seconds
......@@ -207,19 +207,23 @@ card .formRegis {
.footer {
background-color: #031634;
position: absolute;
position: relative;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 30px;
padding: 6px;
/* height: 30px; */
padding: 20px;
}
.footer h5 {
color: white;
padding: 5px 5px;
}
.footer a {
color: rgb(248, 233, 21);
/* padding: 5px 5px; */
}
.ui.segment.segmentProfileCompany {
margin-left: 10%;
margin-right: 10%;
......@@ -306,3 +310,4 @@ card .formRegis {
border-radius: 5px;
margin-left: 10px;
}
......@@ -9,4 +9,29 @@ describe('Footer', () => {
);
expect(footer).to.exist;
});
it('renders all rights reserved', () => {
const footer = ReactTestUtils.renderIntoDocument(
<Footer params={{ id: 1 }} />,
);
expect(footer.state.rightReserved).to.exist;
});
it('renders kanal akses pendaftaran', () => {
const footer = ReactTestUtils.renderIntoDocument(
<Footer params={{ id: 1 }} />,
);
expect(footer.state.kanalAkses).to.exist;
});
it('renders universitas indonesia', () => {
const footer = ReactTestUtils.renderIntoDocument(
<Footer params={{ id: 1 }} />,
);
expect(footer.state.universitasIndonesia).to.exist;
});
it('renders email', () => {
const footer = ReactTestUtils.renderIntoDocument(
<Footer params={{ id: 1 }} />,
);
expect(footer.state.email).to.exist;
});
});
import React from 'react';
import { Container } from 'semantic-ui-react';
import { Container, Grid, Icon } from 'semantic-ui-react';
export default class Footer extends React.Component {
constructor(props) {
super(props);
this.state = {
// activeItem: Storage.get('menu-active-state'),
rightReserved: "All Rights Reserved",
kanalAkses: "Kanal Akses Pendaftaran Elektronik Fakultas Ilmu Komputer",
universitasIndonesia: "Universitas Indonesia",
email: "humasfasilkom@cs.ui.ac.id",
};
}
render() {
return (
<div className="footer">
<Container textAlign="center">
<h5>All Rights Reserved © 2019</h5>
<h5>{this.state.rightReserved}</h5>
</Container>
<Container textAlign="center">
<h5>{this.state.kanalAkses}</h5>
</Container>
<Container textAlign="center">
<h5>{this.state.universitasIndonesia}</h5>
</Container>
<Container textAlign="left">
<Grid reversed='tablet' columns='equal'>
<Grid.Column><h5>E-Mail: <a href="mailto:humasfasilkom@cs.ui.ac.id" >{this.state.email}</a></h5></Grid.Column>
</Grid>
</Container>
</div>
);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment