Skip to content

Commit

Permalink
Merge pull request #15 from hmallen99/fix-scrolling
Browse files Browse the repository at this point in the history
Update CSS with em values
  • Loading branch information
hmallen99 authored Aug 5, 2023
2 parents d4eea23 + 2fc6718 commit 40f89e6
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 60 deletions.
19 changes: 8 additions & 11 deletions src/FilterNavigator/FilterNavigator.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
flex-direction: column;
justify-content: flex-start;
align-items: center;
gap: 10px;
gap: 1em;
padding: 1em;
}

.filter-list-container {
display: flex;
flex-direction: column;
padding: 10px;
padding-bottom: 15px;
min-width: 250px;
min-width: 17em;
border-radius: 12px;
background-color: white;
box-shadow: 1px 4px 6px 0px rgba(0, 0, 0, 0.20000000298023224);
Expand All @@ -23,8 +22,8 @@
.search-cell {
display: flex;
flex-direction: column;
padding: 10px;
min-width: 250px;
padding: 0.5em;
min-width: 16em;
border-radius: 12px;
background-color: white;
box-shadow: 1px 4px 6px 0px rgba(0, 0, 0, 0.20000000298023224);
Expand All @@ -37,7 +36,7 @@
border-radius: 12px;
background-color: white;
box-shadow: 1px 4px 6px 0px rgba(0, 0, 0, 0.20000000298023224);
padding: 5px;
padding: 0.5em;
border-color: rgb(80, 80, 80);
}

Expand All @@ -48,14 +47,12 @@

.filter-list-cell {
width: 90%;
padding-top: 10px;
padding-bottom: 10px;
padding-top: 0.5em;
padding-bottom: 0.5em;
border-top: 1px solid rgba(111, 111, 111, 1);
font-family: "Roboto", sans-serif;
font-size: 20px;
border-radius: 12px;
padding-left: 10px;
padding-right: 10px;
color: rgba(111, 111, 111, 1);
margin: 0 auto;
}
Expand Down
17 changes: 8 additions & 9 deletions src/Loading/Loading.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
.loading-container {
display: flex;
flex-direction: row;
width: calc(100% - 30px);
padding: 10px;
gap: 10px;
max-height: 85vh;
justify-content: center;
overflow-x: hidden;
}
display: flex;
flex-direction: row;
width: calc(100% - 2em);
padding: 0.5em;
gap: 0.5em;
justify-content: center;
overflow-x: hidden;
}
27 changes: 12 additions & 15 deletions src/Projects/Projects.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
.projects-container {
display: flex;
flex-direction: row;
width: calc(100% - 30px);
padding: 10px;
gap: 10px;
max-height: 85vh;
justify-content: center;
overflow-x: hidden;
width: 100%;
}

.project-list-content {
display: flex;
flex-direction: column;
padding: 10px;
gap: 10px;
padding: 1em;
gap: 0.5em;
border-radius: 12px;
overflow-y: scroll;
flex-grow: 1;
Expand All @@ -22,14 +19,14 @@
.projects-list-cell {
display: flex;
flex-direction: row;
padding: 10px;
gap: 10px;
padding: 0.5em;
gap: 0.5em;
border-top: 1px solid rgba(111, 111, 111, 1);
font-family: "Roboto", sans-serif;
font-size: 20px;
border-radius: 12px;
padding-left: 10px;
padding-right: 10px;
padding-left: 0.5em;
padding-right: 0.5em;
color: rgba(111, 111, 111, 1);
margin: 0 auto;
background-color: rgb(255, 255, 255);
Expand All @@ -45,7 +42,7 @@
}

.project-list-title {
max-width: 300px;
max-width: 15em;
color: rgba(111, 111, 111, 1);
font-size: 20px;
letter-spacing: 0%;
Expand All @@ -64,8 +61,8 @@
.project-content {
display: flex;
flex-direction: column;
padding: 10px;
gap: 10px;
padding: 0.5em;
gap: 0.5em;
border-radius: 12px;
background-color: white;
box-shadow: 1px 4px 6px 0px rgba(0, 0, 0, 0.20000000298023224);
Expand All @@ -85,7 +82,7 @@
}

.project-thumbnail {
width: 100px;
height: 100px;
width: 5em;
height: 5em;
border-radius: 12px;
}
7 changes: 3 additions & 4 deletions src/Resume/Resume.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
.resume-container {
display: flex;
flex-direction: row;
width: calc(100% - 30px);
width: calc(100% - 2em);
height: 100vh;
padding: 10px;
gap: 10px;
max-height: 85vh;
padding: 1em;
gap: 1em;
justify-content: center;
overflow-x: hidden;
}
Expand Down
11 changes: 2 additions & 9 deletions src/TopBarContainer.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,17 @@
align-items: flex-start;
}


.top-bar {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
padding-top: 1em;
padding-left: 1em;
padding-right: 1em;
padding-bottom: 1em;
gap: 1em;
width: 100%;
}

@media (max-width: 50em) {
.top-bar {
justify-content: center;
align-items: center;
}
/* width: 100%; */
}

.top-bar-title {
Expand Down
18 changes: 6 additions & 12 deletions src/TopBarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,17 @@ import PlatformContext, { FormFactor } from "./Platform/PlatformContext";
export default function TopBarContainer() {
const platformInfo = React.useContext(PlatformContext)

const isWideMode = platformInfo.formFactor === FormFactor.Wide
const titleContent = platformInfo.formFactor === FormFactor.Wide ? "henry.allen" : "h.a"

return (
<>
<div className="top-bar-container">
<div className="top-bar">
{
isWideMode ?
<PlainLink to="/">
<div className="top-bar-title">
henry.allen
</div>
</PlainLink>
: null
}
<PlainLink to="/">
<div className="top-bar-title">
{titleContent}
</div>
</PlainLink>
<PlainLink to="/pages/projects">
<div className="top-bar-button">
Projects
Expand All @@ -33,8 +29,6 @@ export default function TopBarContainer() {
</div>
</PlainLink>
</div>


<Outlet />
</div>
</>
Expand Down

0 comments on commit 40f89e6

Please sign in to comment.