Skip to content

Commit e2363f4

Browse files
committed
Update: X Logo Added to Sidebar/Socials
1 parent e63ffb6 commit e2363f4

File tree

10 files changed

+32
-2356
lines changed

10 files changed

+32
-2356
lines changed

--yarn.lock

Lines changed: 0 additions & 2325 deletions
This file was deleted.

components/misc/SidebarFooter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React from "react";
22
import Link from "next/link";
33
import GitHubIcon from "./GitHubIcon";
4-
import TwitterIcon from "./TwitterIcon";
4+
import XIcon from "./XIcon";
55

66
const SidebarFooter = () => {
77
return (
88
<div className={`z-40 flex flex-col px-6 gap-y-2`}>
99
<article className="flex gap-x-2 items-center">
1010
<GitHubIcon />
11-
<TwitterIcon />
11+
<XIcon />
1212
</article>
1313

1414
<p className="text-xs text-white dark:text-white mb-0">

components/misc/TwitterIcon.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

components/misc/XIcon.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from "react";
2+
3+
const XIcon = () => {
4+
return (
5+
<a
6+
href="http://www.twitter.com/danielcranney"
7+
target="_blank"
8+
rel="noreferrer"
9+
className="no-underline"
10+
>
11+
<svg
12+
role="img"
13+
viewBox="0 0 24 24"
14+
className="w-5 h-5 group mt-auto fill-white opacity-70 group-hover:opacity-100 transition-all duration-150 ease-in-out"
15+
>
16+
<path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" />
17+
</svg>
18+
</a>
19+
);
20+
};
21+
22+
export default XIcon;

components/sections/Badges.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ const Badges = React.forwardRef((props, ref) => {
338338
});
339339
}}
340340
>
341-
add your Twitter profile
341+
add your X profile
342342
</a>{" "}
343343
in the socials section.
344344
</p>

components/sections/Socials.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const Socials = React.forwardRef((props, ref) => {
6161
section={"socials"}
6262
account={"twitter"}
6363
inputPlaceholder={"yourname"}
64-
formLabelText={"Twitter profile:"}
64+
formLabelText={"X profile:"}
6565
linkPrefix={state.socials.twitter.linkPrefix}
6666
action={ACTIONS.ADD_SOCIAL_PROFILE}
6767
/>

middleware/storeStateMiddleware.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {STORED_STATE_KEY} from "../pages/_app";
1+
import { STORED_STATE_KEY } from "../pages/_app";
22

33
export default (action, state) => {
4-
localStorage.setItem(STORED_STATE_KEY, JSON.stringify(state));
5-
};
4+
localStorage.setItem(STORED_STATE_KEY, JSON.stringify(state));
5+
};

pages/_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ const initialState = {
924924
},
925925
twitter: {
926926
path: "https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/twitter.svg",
927-
linkPrefix: "https://www.twitter.com/",
927+
linkPrefix: "https://www.x.com/",
928928
linkSuffix: "",
929929
},
930930
hashnode: {

pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ Web Developer
500500
src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/twitter.svg"
501501
width="100%"
502502
className="scale-100 transition-all duration-300 hover:scale-125 ease-in-out"
503-
alt="Twitter"
503+
alt="X"
504504
/>
505505
</div>
506506

public/icons/socials/twitter.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)