Skip to content

Commit

Permalink
More device accessiable
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustRushG committed Nov 7, 2022
1 parent 2b46299 commit 638fb53
Show file tree
Hide file tree
Showing 3 changed files with 480 additions and 67 deletions.
8 changes: 4 additions & 4 deletions start_page/src/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Header = () => {
<header className='Header'>
<Link to='/' style={{color:'black'}}><h1 className='RecordIt'>RecordIt</h1></Link>

{isMobileOrTablet && !auth?.user && !dashboardRego() &&
{isMobileOrTablet && !auth?.user && !dashboardRego() &&
<div className="dropDownContainer">
<Dropdown id='dropdown' align="end">
<Dropdown.Toggle variant="warning" id="dropdown-basic">
Expand Down Expand Up @@ -116,21 +116,21 @@ const Header = () => {
</div>
}

{isLaptop && dashboardRego() &&
{isLaptop && !isMobileOrTablet && dashboardRego() &&
<>
<Button variant="warning" id='LogOut' onClick={signOut}>Logout</Button>
<Button variant="warning" id='About' onClick={()=>navigate("About")}>About</Button>
</>
}
{isLaptop &&!auth?.user && !dashboardRego() &&
{isLaptop && !isMobileOrTablet &&!auth?.user && !dashboardRego() &&
<>
<Button variant="warning" id='LogIn' onClick={()=>navigate("LogIn")}>LogIn</Button>
<Button variant="warning" id='SignUp' onClick={()=>navigate("Register")}>SignUp</Button>
<Button variant="warning" id='About' onClick={()=>navigate("About")}>About</Button>
</>
}

{isLaptop &&auth?.user && !dashboardRego() &&
{isLaptop && !isMobileOrTablet &&auth?.user && !dashboardRego() &&
<>
<Button variant="warning" id='dashboard' onClick={()=>navigate(-1)}>Dashboard</Button>
<Button variant="warning" id='About' onClick={()=>navigate("About")}>About</Button>
Expand Down
191 changes: 133 additions & 58 deletions start_page/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,63 @@ button:active {
}


@media screen
and (min-device-width: 2560px)
and (-webkit-min-device-pixel-ratio: 1) {

.Header h1{
position: relative;
left: 2vw;
top: 1vh;

}

#LogIn,#SignUp,#About{

position: relative;

top: -6vh;
height: 5vh;


}

#LogOut{
position: relative;
top: -6vh;
left: 90vw;
height: 5vh;

}




}

@media screen
and (min-device-width: 1200px)
and (max-device-width: 1600px)
and (-webkit-min-device-pixel-ratio: 1){

#LogIn,#SignUp,#About{

width: 6vw;


}

#LogOut{

width: 6vw;

}



}


@media all and (min-width:1024px) {


Expand Down Expand Up @@ -197,68 +254,86 @@ button:active {

}

@media all and (max-width:400px){
.Header h1{

position: absolute;
left: 2vw;
top: 1vh;

@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2) {

.Header h1{

font-family: 'Allerta Stencil', sans-serif;
font-weight: 400;
font-size: 150%;
line-height: 61px;
position: absolute;
left: 2vw;
top: 1vh;

font-family: 'Allerta Stencil', sans-serif;
font-weight: 400;
font-size: 8vw;
line-height: 61px;

color: #000000;

color: #000000;
}

}

.SignUp{

position: absolute;
width: 8vw;
right: 20.5vw;
top: 2.5vh;
margin-left: 1vw;


}

.LogIn,.Account{

position: absolute;

width: 8vw;

right: 30.5vw;
top: 2.5vh;
margin-left: 2vw;

}

.About{
position: absolute;
width: 8vw;
right: 4vw;
top: 2.5vh;
margin-left: 5vw;
}

#LogOut{
position: absolute;
width: fit-content;
height: 4.5vh;
right: 14vw;
top: 2.5vh;
margin: auto;
.SignUp{

position: absolute;
width: 8vw;
right: 20.5vw;
top: 2.5vh;
margin-left: 1vw;


}

.LogIn,.Account{

position: absolute;

width: 8vw;

right: 30.5vw;
top: 2.5vh;
margin-left: 2vw;

}

.About{
position: absolute;
width: 8vw;
right: 4vw;
top: 2.5vh;
margin-left: 5vw;
}

#LogOut{
position: absolute;
width: fit-content;
height: 4.5vh;
right: 14vw;
top: 2.5vh;
margin: auto;

font-family: 'Inter', sans-serif;
font-size: 100%;
color: #000000;
text-align: center;

}

.dropDownContainer{

position: absolute;
left: 75vw;
top: 2.5vh;


width: 5vw;
height: 9vh;

}


font-family: 'Inter', sans-serif;
font-size: 100%;
color: #000000;
text-align: center;

}


}

Expand Down
Loading

0 comments on commit 638fb53

Please sign in to comment.