Skip to content

Commit

Permalink
upload the new styling with the necessary changes made in the navbar …
Browse files Browse the repository at this point in the history
…for the image and also have changes the navbar components and alo did make a few css additions with the css class name by repacing the tailwind
  • Loading branch information
gaureshpai committed May 19, 2024
1 parent 2cee836 commit 51de5b9
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 16 deletions.
31 changes: 16 additions & 15 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,28 @@ export default function Navbar() {
return (
<nav className="bg-blue-800">
<div className="container mx-auto flex justify-between items-center p-4">
<Link href="/" className="text-white text-2xl font-bold">
GGReplicater
<Image
src="https://raw.githubusercontent.com/gaureshpai/GGReplicater/main/src/components/logo.png"
alt="GGReplicater Logo"
width={32} // Set the width of the image
height={32} // Set the height of the image
className="ml-2" // Add additional classes if needed
/>
</Link>

<div className="flex items-center"> {/* New div to contain the logo and text */}
<a href="/" className="titleb"> {/* Anchor tag wrapping both Image and Link */}
<Image
src="https://raw.githubusercontent.com/gaureshpai/GGReplicater/main/public/logo.png"
alt="GGReplicater Logo"
width={32} // Set the width of the image
height={32} // Set the height of the image
className="mr-2" // Add margin to separate the logo from the text
/>
GGReplicater
</a>
</div>

<div className="flex space-x-4">
<div className="button-container">
{/* Buttons for website, Twitter, and GitHub */}
<a href="https://gauresh.vercel.app" target="_blank" rel="noopener noreferrer" className="text-white hover:text-gray-200">
<a href="https://gauresh.vercel.app" target="_blank" rel="noopener noreferrer" className="buttons">
Website
</a>
<a href="https://twitter.com/hseruag" target="_blank" rel="noopener noreferrer" className="text-white hover:text-gray-200">
<a href="https://twitter.com/hseruag" target="_blank" rel="noopener noreferrer" className="buttons">
Twitter
</a>
<a href="https://github.com/gaureshpai" target="_blank" rel="noopener noreferrer" className="text-white hover:text-gray-200">
<a href="https://github.com/gaureshpai" target="_blank" rel="noopener noreferrer" className="buttons">
GitHub
</a>
</div>
Expand Down
45 changes: 44 additions & 1 deletion src/components/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ footer a:hover {
}

/* Button styles */
button {
.button {
cursor: pointer;
padding: 8px 16px;
border: none;
Expand Down Expand Up @@ -102,4 +102,47 @@ main {

.title-link:hover {
color: var(--title-hover-color);
}

/* components.css */

.titleb {
display: flex;
align-items: center;
text-decoration: none;
/* Remove default underline */
color: white;
font-size: 2rem;
font-weight: bold;
}

.titleb:hover {
opacity: 0.8;
text-decoration: none;
color: #f3f87a;
/* Reduce opacity on hover */
}

.buttons {
color: white;
text-decoration: none;
padding: 0.5rem 1rem;
/* Adjust padding as needed */
border-radius: 0.25rem;
/* Add some border radius */
transition: background-color 0.3s ease;
/* Smooth transition for hover effect */
}

.buttons:hover {
background-color: #4f46e5;
text-decoration: none;
color: #f3f87a;
/* Change background color on hover */
}

.button-container {
display: flex;
gap: 1rem;
/* Adjust the gap between buttons */
}

0 comments on commit 51de5b9

Please sign in to comment.