Skip to content

Commit 6056279

Browse files
Austin HutchenAustin Hutchen
Austin Hutchen
authored and
Austin Hutchen
committed
fft
1 parent 5af8b07 commit 6056279

File tree

2 files changed

+7
-25
lines changed

2 files changed

+7
-25
lines changed

src/components/common/navbar.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,20 @@ export const NavBar: React.FC = () => {
6363
<img src={home} width={icon_width} height={icon_height} alt="home" />
6464
<h3>Home</h3>
6565
</Button>
66+
</NavItem>
67+
<NavItem className="nav-item justify-center items-center">
68+
<Button style={{ backgroundColor:'rgba(255, 0, 0, 0.5)',border: '1px solid gold' }} onClick={() => nav('/Resume')}>
69+
<img src={resume} width={icon_width} height={icon_height} alt="resume" />
70+
<h3>Resume</h3>
71+
</Button>
6672
</NavItem>
6773
<NavItem className="nav-item justify-center items-center">
6874
<Button style={{ backgroundColor:'rgba(255, 0, 0, 0.5)',border: '1px solid gold' }} onClick={() => nav('/AboutMe')}>
6975
<img src={about} width={icon_width} height={icon_height} alt="about" />
7076
<h3>About</h3>
7177
</Button>
7278
</NavItem>
73-
<NavItem className="nav-item justify-center items-center">
74-
<Button style={{ backgroundColor:'rgba(255, 0, 0, 0.5)',border: '1px solid gold' }} onClick={() => nav('/Resume')}>
75-
<img src={resume} width={icon_width} height={icon_height} alt="resume" />
76-
<h3>Resume</h3>
77-
</Button>
78-
</NavItem>
79+
7980
<NavItem className="nav-item justify-center items-center">
8081
<Button style={{ backgroundColor:'rgba(255, 0, 0, 0.5)',border: '1px solid gold' }} onClick={() => nav('/Projects')}>
8182
<img src={projects} width={icon_width} height={icon_height} alt="projects" />

src/components/pages/projects.tsx

-19
Original file line numberDiff line numberDiff line change
@@ -257,26 +257,7 @@ const ProjectItem: React.FC<ProjectItemProps> = ({ project }) => {
257257
// Main Projects Component
258258
export const Projects: React.FC = () => {
259259
const [audioStream, setAudioStream] = useState<MediaStream | null>(null);
260-
useEffect(() => {
261260
// Request microphone access
262-
const getMicrophoneAccess = async () => {
263-
try {
264-
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
265-
setAudioStream(stream);
266-
} catch (error) {
267-
console.error("Error accessing microphone:", error);
268-
}
269-
};
270-
271-
getMicrophoneAccess();
272-
273-
// Cleanup: Stop microphone stream when component unmounts
274-
return () => {
275-
if (audioStream) {
276-
audioStream.getTracks().forEach((track) => track.stop());
277-
}
278-
};
279-
}, []);
280261

281262
return (
282263
<div>

0 commit comments

Comments
 (0)