Skip to content

Commit

Permalink
Merge pull request #16 from Here-Charlie/prototype
Browse files Browse the repository at this point in the history
fixed github hyperlink
  • Loading branch information
Larry-Larriee committed May 29, 2024
2 parents d4f5f59 + 69d5278 commit 98bd504
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ mark {
.header-image {
max-width: 2.5rem;
max-height: 2.5rem;

transform: rotate(0deg);
transition: 250ms ease-in-out;
}
.header-image:hover {
cursor: pointer;
transform: rotate(30deg);
transition: 250ms ease-in-out;
}
.header-branding {
display: flex;
Expand Down
9 changes: 8 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import Feature from './components/Feature';

function App() {

const sendToGithub = () => {
window.open('https://github.com/Here-Charlie');
}

return (
// the main container holds all the content while the container helps to center the main container
<div className='container'>
Expand All @@ -23,7 +27,10 @@ function App() {
<img className='header-image' alt='charlie-logo' src={CharlieLogo} />
<p>Here-Charlie</p>
</div>
<img className='header-image' alt='github logo' src={Github} />

<div className='header-image-hyperlink' onClick={sendToGithub}>
<img className='header-image' alt='github logo' src={Github} />
</div>
</section>

<main className='content'>
Expand Down

0 comments on commit 98bd504

Please sign in to comment.