Skip to content

Commit

Permalink
Added the avatar section
Browse files Browse the repository at this point in the history
Signed-off-by: NishantSinghhhhh <[email protected]>
  • Loading branch information
NishantSinghhhhh committed Oct 22, 2024
1 parent fb25215 commit e8c9fa5
Show file tree
Hide file tree
Showing 13 changed files with 921 additions and 0 deletions.
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

0 comments on commit e8c9fa5

Please sign in to comment.