Skip to content

Commit

Permalink
fixing security issue with a tags
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyNeek committed Jan 26, 2024
1 parent e302905 commit c265de5
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 42 deletions.
99 changes: 57 additions & 42 deletions src/Components/Contact.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,64 @@
import React, {useState} from 'react';
import React, { useState } from "react";

import FormModal from './FormModal';
import FormModal from "./FormModal";

import Container from 'react-bootstrap/Container';
import Col from 'react-bootstrap/Col';
import Row from 'react-bootstrap/Row';
import 'bootstrap/dist/css/bootstrap.css';
import Container from "react-bootstrap/Container";
import Col from "react-bootstrap/Col";
import Row from "react-bootstrap/Row";
import "bootstrap/dist/css/bootstrap.css";

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faLinkedin } from '@fortawesome/free-brands-svg-icons';
import { faGithub } from '@fortawesome/free-brands-svg-icons';
import { faEnvelope } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faLinkedin } from "@fortawesome/free-brands-svg-icons";
import { faGithub } from "@fortawesome/free-brands-svg-icons";
import { faEnvelope } from "@fortawesome/free-solid-svg-icons";

function Contact(){
function Contact() {
const [modalShow, setModalShow] = useState(false);

const [modalShow, setModalShow] = useState(false);

return (
<>
<Container>
<Row>
<Col xs="3">
<a target="_blank" href="https://www.linkedin.com/in/nicholas-aguirre-a23a0616a/" className="contactLink">
<FontAwesomeIcon icon={faLinkedin} id="linkedInIcon" />
<br/>
<p className="iconSubtitle">LinkedIn</p>
</a>
</Col>
<Col xs="3">
<a target="_blank" href="https://github.com/HeyNeek" className="contactLink">
<FontAwesomeIcon icon={faGithub} id="githubIcon" />
<br/>
<p className="iconSubtitle">GitHub</p>
</a>
</Col>
<Col xs="3">
<FontAwesomeIcon onClick={() => setModalShow(true)} icon={faEnvelope} id="emailIcon" />
<br/>
<p onClick={() => setModalShow(true)} className="iconSubtitle">Email</p>
</Col>
</Row>
</Container>
<FormModal show={modalShow} onHide={() => setModalShow(false)} />
</>
)
return (
<>
<Container>
<Row>
<Col xs="3">
<a
target="_blank"
rel="noreferrer"
href="https://www.linkedin.com/in/nicholas-aguirre-a23a0616a/"
className="contactLink"
>
<FontAwesomeIcon icon={faLinkedin} id="linkedInIcon" />
<br />
<p className="iconSubtitle">LinkedIn</p>
</a>
</Col>
<Col xs="3">
<a
target="_blank"
rel="noreferrer"
href="https://github.com/HeyNeek"
className="contactLink"
>
<FontAwesomeIcon icon={faGithub} id="githubIcon" />
<br />
<p className="iconSubtitle">GitHub</p>
</a>
</Col>
<Col xs="3">
<FontAwesomeIcon
onClick={() => setModalShow(true)}
icon={faEnvelope}
id="emailIcon"
/>
<br />
<p onClick={() => setModalShow(true)} className="iconSubtitle">
Email
</p>
</Col>
</Row>
</Container>
<FormModal show={modalShow} onHide={() => setModalShow(false)} />
</>
);
}

export default Contact;
export default Contact;
4 changes: 4 additions & 0 deletions src/Components/Projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function Projects() {
<a
className="card-links"
target="_blank"
rel="noreferrer"
href="https://www.youtube.com/watch?v=oi2WjwFdS8U&ab_channel=NickAguirre"
>
Demo
Expand All @@ -39,6 +40,7 @@ function Projects() {
id="card-github-link"
className="card-links"
target="_blank"
rel="noreferrer"
href="https://github.com/HeyNeek/space-city-coffee"
>
GitHub
Expand All @@ -64,6 +66,7 @@ function Projects() {
<a
className="card-links"
target="_blank"
rel="noreferrer"
href="https://www.youtube.com/watch?v=js5H6XZfNk8&ab_channel=NickAguirre"
>
Demo
Expand All @@ -72,6 +75,7 @@ function Projects() {
id="card-github-link"
className="card-links"
target="_blank"
rel="noreferrer"
href="https://github.com/HeyNeek/character-creator"
>
GitHub
Expand Down

0 comments on commit c265de5

Please sign in to comment.