-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from OmkumarMangukiya/main
Improved ui for Fulltack->React+Nodejs
- Loading branch information
Showing
15 changed files
with
474 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 13 additions & 41 deletions
54
template/FullStack/React(Frontend)+Nodejs(Backend)/client/src/components/Footer.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,22 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; // Import Link from react-router-dom | ||
|
||
const Footer = () => { | ||
return ( | ||
<footer style={styles.footer}> | ||
|
||
<div style={styles.textContainer}> | ||
<p style={styles.copyright}>© 2024 Universal-Box</p> | ||
<footer className="bg-gray-900 text-white py-[14px]"> | ||
<div className="container mx-auto px-4"> | ||
<div className="flex flex-col md:flex-row justify-between items-center"> | ||
<div className="mb-4 md:mb-0 pt-[40px]"> | ||
<p>© 2024 Your Website Name. All rights reserved.</p> | ||
</div> | ||
<nav className="flex space-x-4 items-center "> | ||
<Link to="/privacy" className="text-white hover:scale-105 no-underline transition duration-200">Privacy Policy</Link> | ||
<Link to="/terms" className="text-white hover:scale-105 no-underline transition duration-200">Terms of Service</Link> | ||
<Link to="/contactus" className="text-white hover:scale-105 no-underline transition duration-200">Contact Us</Link> | ||
</nav> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
}; | ||
|
||
const styles = { | ||
footer: { | ||
backgroundColor: '#f8f9fa', | ||
padding: '20px', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
flexDirection: 'column', | ||
borderTop: '1px solid #e7e7e7', | ||
position: 'fixed', | ||
bottom: 0, | ||
width: '100%', | ||
}, | ||
logoContainer: { | ||
marginBottom: '10px', | ||
}, | ||
logo: { | ||
width: '50px', | ||
height: '50px', | ||
}, | ||
textContainer: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: '10px', | ||
}, | ||
text: { | ||
fontSize: '16px', | ||
color: '#555', | ||
}, | ||
copyright: { | ||
fontSize: '16px', | ||
color: '#555', | ||
alignItems: 'left', | ||
}, | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
template/FullStack/React(Frontend)+Nodejs(Backend)/client/src/components/card.tsx
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
template/FullStack/React(Frontend)+Nodejs(Backend)/client/src/components/ui/Button.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
const Button= ({ name, onClick, className, children }) => { | ||
return ( | ||
<button | ||
onClick={onClick} | ||
className={`relative inline-flex items-center justify-center overflow-hidden border-2 border-black py-2 px-4 rounded-lg transition duration-200 shadow-md group ${className}`}> | ||
|
||
<span className="relative z-10"> | ||
{children ? children : name} | ||
</span> | ||
|
||
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-white to-transparent opacity-50 transform -skew-x-12 -translate-x-full group-hover:translate-x-full transition-transform duration-[700ms]"></div> | ||
|
||
</button> | ||
); | ||
}; | ||
|
||
export default Button; |
14 changes: 14 additions & 0 deletions
14
template/FullStack/React(Frontend)+Nodejs(Backend)/client/src/components/ui/Card.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
|
||
const Card = ({ item }) => { | ||
return ( | ||
<div className="bg-white p-6 rounded-lg shadow-lg"> | ||
<h3 className="text-xl font-semibold mb-4">Feature {item}</h3> | ||
<p className="text-gray-600"> | ||
Your features details | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Card; |
Oops, something went wrong.