Skip to content

Commit

Permalink
Add functionality to contacts page
Browse files Browse the repository at this point in the history
  • Loading branch information
vallieres13 committed Jan 25, 2024
1 parent f29a3c0 commit e456ef0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
Binary file modified src/assets/images/contact/picture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 19 additions & 7 deletions src/pages/Contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,44 @@ const Contact = () => {
{
icon: NumberPad,
title: 'Start A Call',
preferred: false
preferred: false,
disabled: true,
action: () => {}
},
{
icon: Mail,
title: 'Send An E-Mail',
preferred: true
preferred: true,
disabled: false,
action: () => window.location.href = 'mailto:[email protected]?subject=Hi%20Felix,%20let\'s%20work%20together!'
},
{
icon: LinkedIn,
title: 'Message me on LinkedIn',
preferred: true
preferred: true,
disabled: false,
action: () => window.location.href = 'https://www.linkedin.com/in/felixhebgen/'
},
{
icon: Xing,
title: <>Message me on<br />XING</>,
preferred: false
preferred: false,
disabled: false,
action: () => window.location.href = 'https://www.xing.com/profile/Felix_Hebgen'
},
{
icon: Schedule,
title: 'Schedule A Call',
preferred: false
preferred: false,
disabled: true,
action: () => {}
},
{
icon: Postal,
title: 'Postal Address',
preferred: false
preferred: false,
disabled: false,
action: () => alert('Postal address:\n\nFelix Hebgen\nElisabethenstraße 68A\n64283 Darmstadt\nGermany')
}
];

Expand Down Expand Up @@ -167,7 +179,7 @@ const Contact = () => {
</p>
<div className="options">
{contactItems.map((option: any, index: number) =>
<div className="option" key={index}>
<div className={'option' + (option.disabled ? ' disabled' : '')} key={index} onClick={option.action}>
<img src={option.icon} alt={option.title} />
<span>{option.title}</span>
{option.preferred &&
Expand Down
4 changes: 4 additions & 0 deletions src/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,10 @@ header {
transform-style: preserve-3d;
transform: perspective(1000px);

&.disabled {
cursor: not-allowed;
}

> * {
transform: translateZ(20px);
}
Expand Down

0 comments on commit e456ef0

Please sign in to comment.