Skip to content
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

Added the avatar section #6021

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions src/assets/images/avatar-images/Icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/avatar-images/avatar.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/avatar-images/avatar1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/avatar-images/avatar2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/avatar-images/icon.webp
Binary file not shown.
8 changes: 8 additions & 0 deletions src/pages/projects/sistent/components/avatar/code.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import { AvatarCode } from "../../../../../sections/Projects/Sistent/components/avatar/code.js";

const AvatarCodePage = () => {
return <AvatarCode />;
};

export default AvatarCodePage;
8 changes: 8 additions & 0 deletions src/pages/projects/sistent/components/avatar/guidance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import { AvatarGuidance } from "../../../../../sections/Projects/Sistent/components/avatar/guidance.js";

const AvatarGuidancePage = () => {
return <AvatarGuidance />;
};

export default AvatarGuidancePage;
8 changes: 8 additions & 0 deletions src/pages/projects/sistent/components/avatar/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import SistentAvatar from "../../../../../sections/Projects/Sistent/components/avatar/index";

const SistentAvatarPage = () => {
return <SistentAvatar />;
};

export default SistentAvatarPage;
19 changes: 19 additions & 0 deletions src/sections/Projects/Sistent/components/avatar/code-block.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React, { useState } from "react";
import Code from "../../../../../components/CodeBlock";
export const CodeBlock = ({ name, code }) => {
const [showCode, setShowCode] = useState(false);
const onChange = () => {
setShowCode((prev) => !prev);
};
return (
<div className="show-code">
<input type="checkbox" name={name} id={name} onChange={onChange} />
<label htmlFor={name} className="label">
Show Code
</label>
{showCode && (
<Code codeString={code} language="javascript" />
)}
</div>
);
};
Loading