Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions PTG/src/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,3 @@ p, a{
justify-content: space-evenly;
flex-wrap: wrap;
}

a:hover{
transform: translateY(-8px);
}
35 changes: 13 additions & 22 deletions PTG/src/Header.css
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
.header {
header {
background-color: red;
color: white;
align-items: center;
display: flex;
flex-direction: row;
justify-content: space-between;
}

.name{
margin: 0;
padding: 10px;
align-items: center;
justify-content: center;
width: 100%;
margin-bottom: 5px;
}

.about{
height: 100%;
padding: 10px;
border: 0;
background-color: red;
right: 5%;
position: absolute;
color: white;
transition: transform 0.3s ease-in-out;

margin-top: 5px;
margin-bottom: 5px;
}

.about:hover{
cursor: pointer;
transform: translateY(-8px);
}
.websiteName{
color: white;
margin-top: 5px;
margin-bottom: 5px;

div{
margin-bottom: 10px;
}

@media screen and (max-width: 400px){
Expand Down
9 changes: 5 additions & 4 deletions PTG/src/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import './Header.css'
import { Link } from 'react-router-dom'

export default function Header(){
return(
<div>
<header className="header">
<h1 className="name">Pokémon Team Generator</h1>
<button className='about'>About</button>
<div className="header">
<header>
<Link className="websiteName" to={"/"}>Pokémon Team Generator</Link>
<Link className="about" to={"/about"}>About</Link>
</header>
</div>
);
Expand Down