Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ProjectPageComponent from "./projects";
import AnalyticsComponent from "./analytics";
import PageNotFoundHandler from "./PageNotFoundHandler";
import Navbar from "./navbar";
import Footer from "./common/Footer";

const App = props => {
return (
Expand All @@ -23,6 +24,7 @@ const App = props => {
<Route component={PageNotFoundHandler} />
</Switch>
</main>
<Footer />
</div>
);
};
Expand Down
95 changes: 95 additions & 0 deletions frontend/src/components/common/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
import React from "react";
import { Link } from "react-router-dom";

const Footer = () => {
return (
<footer className="cv-footer">
<div className="cv-footer-content cv-container">
<div className="cv-footer-section">
<h3 className="cv-footer-title">About Us</h3>
<p className="cv-footer-desc">
CloudCV is an open-source platform for building and deploying
computer vision applications.
</p>
</div>

<div className="cv-footer-section">
<h3 className="cv-footer-title">Quick Links</h3>
<ul className="cv-footer-list">
<li><Link to="/">Home</Link></li>
<li><Link to="/team">Team</Link></li>
<li><Link to="/projects">Projects</Link></li>
<li><Link to="/contribute">Contribute</Link></li>
<li><Link to="/contact-us">Contact Us</Link></li>
</ul>
</div>

<div className="cv-footer-section">
<h3 className="cv-footer-title">Support</h3>
<ul className="cv-footer-list">
<li>
<a href="http://gsoc.cloudcv.org" target="_blank" rel="noopener noreferrer">
GSoC
</a>
</li>
<li>
<a href="http://gci.cloudcv.org" target="_blank" rel="noopener noreferrer">
GCI
</a>
</li>
<li>
<a href="https://github.com/Cloud-CV" target="_blank" rel="noopener noreferrer">
GitHub
</a>
</li>
<li>
<a href="https://gitter.im/Cloud-CV" target="_blank" rel="noopener noreferrer">
Gitter
</a>
</li>
</ul>
</div>

<div className="cv-footer-section">
<h3 className="cv-footer-title">Legal</h3>
<ul className="cv-footer-list">
<li><Link to="/privacy-policy">Privacy Policy</Link></li>
<li><Link to="/terms-of-service">Terms of Service</Link></li>
<li>
<a href="/LICENSE" target="_blank" rel="noopener noreferrer">
License
</a>
</li>
</ul>
</div>
</div>

<div className="cv-footer-bottom">
<div className="cv-footer-social cv-container">
<a
href="https://github.com/Cloud-CV"
target="_blank"
rel="noopener noreferrer"
className="cv-footer-social-item"
>
<img src={require("../../images/github_logo.png")} alt="GitHub" />
</a>
<a
href="https://gitter.im/Cloud-CV"
target="_blank"
rel="noopener noreferrer"
className="cv-footer-social-item"
>
<img src={require("../../images/gitter_logo.png")} alt="Gitter" />
</a>
</div>
<div className="cv-footer-copyright cv-container">
<p>&copy; {new Date().getFullYear()} CloudCV. All rights reserved.</p>
</div>
</div>
</footer>
);
};

export default Footer;

1 change: 1 addition & 0 deletions frontend/src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
@import 'partials/team';
@import 'partials/tabs';
@import 'partials/projects';
@import 'partials/footer';
96 changes: 96 additions & 0 deletions frontend/src/styles/partials/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*****FOOTER STYLES*****/

.cv-footer {
background-color: $secondary-bg-color;
color: $white;
margin-top: auto;
width: 100%;

.cv-footer-content {
display: grid;
grid-template-columns: 1fr;
gap: 4 * $gutter-width;
padding: 6 * $gutter-width $gutter-width;

@media #{$bp-sm} {
grid-template-columns: repeat(2, 1fr);
}

@media #{$bp-md} {
grid-template-columns: repeat(4, 1fr);
}
}

.cv-footer-section {
@include font-size(1.4, 1.6);

.cv-footer-title {
@include font-size(1.8, 2.2);
color: $white;
font-family: $heading-font-family;
margin-bottom: 2 * $gutter-width;
font-weight: 500;
}

.cv-footer-desc {
color: rgba($white, 0.8);
margin: 0;
}

.cv-footer-list {
list-style: none;
padding: 0;
margin: 0;

li {
margin-bottom: $gutter-width;

a {
color: rgba($white, 0.8);
text-decoration: none;
transition: color 0.3s ease;

&:hover {
color: $secondary-color;
}
}
}
}
}

.cv-footer-bottom {
border-top: 1px solid rgba($white, 0.1);
padding: 3 * $gutter-width 0;

.cv-footer-social {
display: flex;
justify-content: center;
gap: 3 * $gutter-width;
margin-bottom: 2 * $gutter-width;

.cv-footer-social-item {
img {
width: 3 * $gutter-width;
height: 3 * $gutter-width;
filter: brightness(0) invert(1);
transition: opacity 0.3s ease;
}

&:hover img {
opacity: 0.7;
}
}
}

.cv-footer-copyright {
text-align: center;
@include font-size(1.2, 1.6);
color: rgba($white, 0.6);

p {
margin: 0;
}
}
}
}

8 changes: 7 additions & 1 deletion frontend/src/styles/partials/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ body {
}

#app,.cv-root-container {
height: 100%
height: 100%;
display: flex;
flex-direction: column;
}

.cv-main {
flex: 1;
}

h1, h2, h3, h4, h5, h6 {
Expand Down