Skip to content

fix: issue#130 color of social media logos in header #423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
36 changes: 36 additions & 0 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"dev": {
"name": "dev",
"command": "yarn dev",
"runAtStart": true,
"preview": {
"port": 3000
}
},
"build": {
"name": "build",
"command": "yarn build",
"runAtStart": false
},
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": false
},
"lint": {
"name": "lint",
"command": "yarn lint",
"runAtStart": false
}
}
}
28 changes: 18 additions & 10 deletions components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ const NAV__LINK = [
{
path: "/",
display: "Home",
openInNewPage:false,
openInNewPage: false,
},
{
path: "/#courses",
display: "Courses",
openInNewPage:false,
openInNewPage: false,
},
{
path: "/gears",
display: "My Gears",
openInNewPage:false,
openInNewPage: false,
},
{
path: "https://blog.piyushgarg.dev",
display: "Blogs",
openInNewPage:true,
openInNewPage: true,
},
];

Expand Down Expand Up @@ -112,11 +112,19 @@ const Header = () => {
key={index}
className={`${classes.mobile__menuDiv} cursor-pointer`}
>
<Link aria-label={item.display} href={item.path} target={`${item.openInNewPage?'_blank':'_self'}`}>
<Link
aria-label={item.display}
href={item.path}
target={`${item.openInNewPage ? "_blank" : "_self"}`}
>
<p className={`${classes.mobile__menu}`}>{icons[index]}</p>
</Link>

<Link aria-label={item.display} href={item.path} target={`${item.openInNewPage?'_blank':'_self'}`}>
<Link
aria-label={item.display}
href={item.path}
target={`${item.openInNewPage ? "_blank" : "_self"}`}
>
<span className=" text-[#808dad] hover:text-green-400">
{item.display}
</span>
Expand Down Expand Up @@ -166,7 +174,7 @@ const Header = () => {
target="_blank"
title="Youtube Channel"
id="youtube-channel"
className={`cursor-pointer text-[#ffffff] hover:text-[--site-theme-color] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
className={`cursor-pointer text-[#ffffff] hover:text-[#CD201F] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
rel="noreferrer"
>
<RiYoutubeFill />
Expand All @@ -177,7 +185,7 @@ const Header = () => {
target="_blank"
title="Github Account"
id="github-account"
className={`cursor-pointer text-[#ffffff] hover:text-[--site-theme-color] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
className={`cursor-pointer text-[#ffffff] hover:text-[white] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
rel="noreferrer"
>
<RiGithubFill />
Expand All @@ -188,7 +196,7 @@ const Header = () => {
target="_blank"
title="Twitter Account"
id="twitter-account"
className={`cursor-pointer text-[#ffffff] hover:text-[--site-theme-color] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
className={`cursor-pointer text-[#ffffff] hover:text-[#00ACEE] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
rel="noreferrer"
>
<RiTwitterFill />
Expand All @@ -199,7 +207,7 @@ const Header = () => {
target="_blank"
title="LinkedIn Account"
id="linkedin-account"
className={`cursor-pointer text-[#ffffff] hover:text-[--site-theme-color] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
className={`cursor-pointer text-[#ffffff] hover:text-[#0A66C2] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
rel="noreferrer"
>
<RiLinkedinFill />
Expand Down
5 changes: 4 additions & 1 deletion components/Layout/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ const Layout = (props) => {
return (
<Fragment>
<Header />

<div>{props.children}</div>
<Footer />
<div>
<Footer />
</div>
</Fragment>
);
};
Expand Down
79 changes: 44 additions & 35 deletions components/UI/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import classes from "../../styles/contact.module.css";
import Form from "./Form";
import axios from "axios";
import { useState } from "react";
import { RiYoutubeFill, RiGithubFill, RiTwitterFill, RiLinkedinFill } from "react-icons/ri";
import {
RiYoutubeFill,
RiGithubFill,
RiTwitterFill,
RiLinkedinFill,
} from "react-icons/ri";
const Contact = () => {
const [submitted, setSubmitted] = useState(false);
const handleSubmit = async (event) => {
Expand Down Expand Up @@ -35,7 +40,6 @@ const Contact = () => {
<Container>
<Row className="flex justify-between flex-col md:flex-row ">
<Col lg="4" md="6">

<h3 className="mt-4 mb-4 text-2xl">Connect with me</h3>

<ul className={`${classes.contact__info__list}`}>
Expand Down Expand Up @@ -101,40 +105,45 @@ const Contact = () => {
</div>
) : (
<>
<div className="mt-4 mb-4 text-2xl"><SectionSubtitle subtitle="Contact me" /></div>

<form className="flex flex-col space-y-4" onSubmit={handleSubmit}>
<input
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
type="text"
name="name"
placeholder="Your Full Name"
required
autoComplete="off"
/>
<input
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
type="email"
name="email"
placeholder="Your Email"
required
autoComplete="off"
/>
<textarea
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
name="message"
placeholder="Your Message"
required
rows="4"
autoComplete="off"
></textarea>
<button
type="submit"
className="bg-blue-500 text-white px-4 py-2 rounded-md hover:bg-blue-600"
<div className="mt-4 mb-4 text-2xl">
<SectionSubtitle subtitle="Contact me" />
</div>

<form
className="flex flex-col space-y-4"
onSubmit={handleSubmit}
>
Send Message
</button>
</form>
<input
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
type="text"
name="name"
placeholder="Your Full Name"
required
autoComplete="off"
/>
<input
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
type="email"
name="email"
placeholder="Your Email"
required
autoComplete="off"
/>
<textarea
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
name="message"
placeholder="Your Message"
required
rows="4"
autoComplete="off"
></textarea>
<button
type="submit"
className="bg-blue-500 text-white px-4 py-2 rounded-md hover:bg-blue-600"
>
Send Message
</button>
</form>
</>
)}
</Col>
Expand Down