Skip to content

Commit

Permalink
Merge pull request #172 from istenith/footer-new
Browse files Browse the repository at this point in the history
footer chatbot
  • Loading branch information
Sourabh-awasthy authored Aug 2, 2024
2 parents 9217519 + 2f92ba7 commit 97a1210
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 94 deletions.
7 changes: 3 additions & 4 deletions public/ChatBot.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
.w3c__message--icon {
background-color: var(--link-color);
border-radius: 50%;
width: 60px;
height: 60px;

position: absolute;
bottom: 20px;
right: 20px;
Expand All @@ -33,8 +32,8 @@
.w3c__close--icon img {
position: absolute;
max-width: 14px;
left: 50%;
top: 50%;
right: 20%;
top: 12%;
margin-left: -7px;
margin-top: -7px;
transform: rotate(-30deg);
Expand Down
3 changes: 1 addition & 2 deletions public/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,9 @@
}

.carousel-wrapper {
background-color: var(--link-color);
border-radius: 10px;
padding: 2px;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

.carousel-wrapper .carousel .slide {
Expand Down
201 changes: 113 additions & 88 deletions src/components/footer.jsx
Original file line number Diff line number Diff line change
@@ -1,101 +1,126 @@
// Footer.jsx
import "react-bootstrap"
import React from "react";
/* eslint-disable */

import BlueLogo from "../static/images/iste-logo-blue.png";
import instagramIcon from "../static/images/icons/instagram.png";
import facebookIcon from "../static/images/icons/facebook.png";
import githubIconDark from "../static/images/icons/github-dark2.png";
import twitterIcon from "../static/images/icons/twitter.png";
import linkedinIcon from "../static/images/icons/linkedin.png";
export default function footer (){

const Footer = () => {
return (
<div className="footer container-fluid ">
<div className="section__padding row ">
const footerNavs = [
{
href: 'https://github.com/istenith',
name: 'Github'
},
{
href: 'https://www.linkedin.com/company/iste-nith/',
name: 'LinkedIn'
},
{
href: 'https://www.facebook.com/teamistenith/',
name: 'Facebook'
},
{
href: 'https://www.instagram.com/teamistenith',
name: 'Instagram'
}
];

const footerStyles = {
paddingTop: '10rem',
};

<div className="footer__social-links margin-about col-lg-4">
<h4>Connect with Us</h4>
<div className="socialmedia">
<a
href="https://www.instagram.com/teamistenith/"
target="_blank"
rel="noreferrer"
>
<img
src={instagramIcon}
alt="Instagram"
className="footer__social-icon"
/>
</a>
<a
href="https://www.linkedin.com/company/iste-nith/"
target="_blank"
rel="noreferrer"
>
<img
src={linkedinIcon}
alt="LinkedIn"
className="footer__social-icon"
/>
</a>
<a
href="https://www.facebook.com/teamistenith/"
target="_blank"
rel="noreferrer"
>
<img
src={facebookIcon}
alt="Facebook"
className="footer__social-icon"
/>
</a>
<a
href="https://github.com/istenith"
target="_blank"
rel="noreferrer"
>
<img
src={githubIconDark}
alt="GitHub"
className="footer__social-icon"
/>
</a>
<a
href="https://twitter.com/IsteNith"
target="_blank"
rel="noreferrer"
>
<img
src={twitterIcon}
alt="Twitter"
className="footer__social-icon"
/>
</a>
</div>
</div>
const containerStyles = {
maxWidth: '1440px',
margin: '0 auto',
padding: '0 1rem',
color: '#f3f4f6',
};

<div className="footer__content ">
<div className="footer__logo margin-about col-lg-4">
<img src={BlueLogo} alt="ISTE Logo" />
</div>
</div>

const logoContainerStyles = {
marginTop: '1.5rem',
marginBottom: '1.5rem',
textAlign: 'center',
maxWidth: '28rem',
margin: '0 auto',
};

const logoStyles = {
width: '8rem',
margin: '0 auto',
};


const bottomContainerStyles = {
marginTop: '2.5rem',
paddingTop: '2.5rem',
paddingBottom: '2.5rem',
borderTop: '1px solid #e5e7eb',
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
flexWrap: 'wrap',
};

</div>
const ulStyles = {
display: 'flex',
flexWrap: 'wrap',
marginTop: '1.5rem',
marginBottom: '0',
fontSize: '0.875rem',
};

<hr />
<h6 className="rights">All rights reserved by ISTE NITH@{new Date().getFullYear()}</h6>
const liStyles = {
color: '#f3f4f6',
transition: 'color 0.15s',
};

const aStyles = {
color: '#f3f4f6',
textDecoration: 'none',
};




</div>
return (
<footer style={footerStyles}>
<div style={containerStyles}>
<div style={logoContainerStyles}>
<img
src={BlueLogo}
alt="ISTE Logo"
style={logoStyles}
/>
<p>
ISTE NITH
</p>
</div>
<div style={bottomContainerStyles}>
<p>© 2024 All rights reserved.</p>
<ul style={ulStyles}>
{
footerNavs.map((item, idx) => (
<li
key={idx}
style={liStyles}
onMouseEnter={e => e.target.style.color = '#6b7280'}
onMouseLeave={e => e.target.style.color = '#f3f4f6'}
>
<a style={aStyles} href={item.href}>
{item.name}
</a>
</li>
))
}
</ul>
</div>
</div>
<style jsx>{`
@media (max-width: 600px) {
ul {
gap: 0.1px;
}
}
@media (min-width: 601px) {
ul {
gap: 2rem;
}
}
`}</style>
</footer>
);
};

export default Footer;

0 comments on commit 97a1210

Please sign in to comment.