Made site more mobile compatible
Fixed some mobile css issues Moved Navbar to bottom on mobile
This commit is contained in:
parent
4657f60136
commit
5416eaae58
|
|
@ -1,5 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
||||||
|
import "./css/App.css";
|
||||||
import Navigation from './Navigation';
|
import Navigation from './Navigation';
|
||||||
import Home from './Home';
|
import Home from './Home';
|
||||||
import Github from './Github';
|
import Github from './Github';
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
|
||||||
import './css/Social.css';
|
import './css/Social.css';
|
||||||
import Card from './subcomponents/Card';
|
|
||||||
import Theater from './subcomponents/Theater';
|
import Theater from './subcomponents/Theater';
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -20,11 +18,11 @@ class Social extends React.Component {
|
||||||
/>
|
/>
|
||||||
<div className="links">
|
<div className="links">
|
||||||
<a href="https://github.com/RaspberryProgramming" target="_blank" rel="noreferrer">
|
<a href="https://github.com/RaspberryProgramming" target="_blank" rel="noreferrer">
|
||||||
<img src="/img/github.webp"/>
|
<img src="/img/github.webp" alt="Github"/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="https://www.linkedin.com/in/camerin-figueroa-2662bb157/" target="_blank" rel="noreferrer">
|
<a href="https://www.linkedin.com/in/camerin-figueroa-2662bb157/" target="_blank" rel="noreferrer">
|
||||||
<img src="/img/linkedin.webp"/>
|
<img src="/img/linkedin.webp" alt="linked in"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
.About {
|
.About {
|
||||||
background-color: #3F3F4A;
|
background-color: #3F3F4A;
|
||||||
color: #AA9AA0
|
color: #AA9AA0;
|
||||||
|
padding-bottom: 5.5rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.About .title {
|
.About .title {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
.App {
|
||||||
|
display:flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
|
.App {
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
.card {
|
.card {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding: 50px;
|
padding: 10px;
|
||||||
width: 75vw;
|
width: 85vw;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,10 +59,13 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
width: 100%;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repo .language {
|
.repo .language {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
margin: 2px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: #AAAAAA;
|
background-color: #AAAAAA;
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
.Navigation {
|
.Navigation {
|
||||||
|
z-index:9;
|
||||||
height: 63px;
|
position: relative;
|
||||||
|
height: 4rem;
|
||||||
|
width: 100vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
background-color: #3F3F4A;
|
background-color: #3F3F4A;
|
||||||
border-color: gray;
|
|
||||||
border-bottom-style: solid;
|
|
||||||
margin:0;
|
margin:0;
|
||||||
padding:0;
|
padding:0;
|
||||||
}
|
}
|
||||||
|
|
@ -25,7 +25,9 @@
|
||||||
text-align:center;
|
text-align:center;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
height: 60px;
|
padding-right: 10px;
|
||||||
|
padding-left: 10px;
|
||||||
|
height: 4rem;
|
||||||
border: none;
|
border: none;
|
||||||
color: #CFC0C0 !important;
|
color: #CFC0C0 !important;
|
||||||
|
|
||||||
|
|
@ -33,7 +35,7 @@
|
||||||
|
|
||||||
.Navigation a:hover, .Navigation button:hover {
|
.Navigation a:hover, .Navigation button:hover {
|
||||||
background-color: #2F2F32;
|
background-color: #2F2F32;
|
||||||
height: 90px;
|
height: 5rem;
|
||||||
transition: background-color 300ms ease-out, height 300ms ease-out;
|
transition: background-color 300ms ease-out, height 300ms ease-out;
|
||||||
border-bottom-left-radius: 5px;
|
border-bottom-left-radius: 5px;
|
||||||
border-bottom-right-radius: 5px;
|
border-bottom-right-radius: 5px;
|
||||||
|
|
@ -50,3 +52,24 @@
|
||||||
height: 24px;
|
height: 24px;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
|
.Navigation {
|
||||||
|
position: fixed;
|
||||||
|
bottom:0;
|
||||||
|
left:0;
|
||||||
|
height: 5.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Navigation a, .Navigation button {
|
||||||
|
height: 5.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Navigation a:hover, .Navigation button:hover {
|
||||||
|
background-color: #2F2F32;
|
||||||
|
height:5.5rem;
|
||||||
|
transition: background-color 300ms ease-out;
|
||||||
|
border-top-left-radius: 5px;
|
||||||
|
border-top-right-radius: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2,6 +2,9 @@
|
||||||
background-color: #3D3C3F;
|
background-color: #3D3C3F;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
color: #AA9AA0;
|
color: #AA9AA0;
|
||||||
|
width:100vw;
|
||||||
|
display:flex;
|
||||||
|
flex-direction:column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Social .links {
|
.Social .links {
|
||||||
|
|
@ -9,16 +12,16 @@
|
||||||
flex-direction:row;
|
flex-direction:row;
|
||||||
align-content:center;
|
align-content:center;
|
||||||
justify-content:center;
|
justify-content:center;
|
||||||
align-items:start;
|
align-items: flex-start;
|
||||||
width:75vw;
|
width:75vw;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Social .links img {
|
.Social .links img {
|
||||||
height: 10vh;
|
width: 10rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Social .links * {
|
.Social .links * {
|
||||||
margin: 25px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue