forked from Seneca-CDOT/telescope
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Seneca-CDOT#647 from miggs125/restructureFrontEnd
Restructure front end. closes Seneca-CDOT#583 Seneca-CDOT#584
- Loading branch information
Showing
37 changed files
with
181 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/frontend/src/components/Backdrop.js → ...tend/src/components/Backdrop/Backdrop.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Backdrop from './Backdrop.jsx'; | ||
|
||
export default Backdrop; |
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
.../src/components/shared/HamburgerButton.js → ...nents/HamburgerButton/HamburgerButton.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import HamburgerButton from './HamburgerButton.jsx'; | ||
|
||
export default HamburgerButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
.header { | ||
background-color: #242424; | ||
margin: 2rem 0; | ||
width: 100vw; | ||
height: 7vh; | ||
color: #a4d4ff; | ||
} | ||
.header.sticky { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
margin-top: 0; | ||
} | ||
.header__navigation { | ||
display: flex; | ||
align-items: center; | ||
height: 100%; | ||
padding: 0 1rem; | ||
} | ||
.header__navigation-items { | ||
font-size: 1.8rem; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
} | ||
.header__navigation-item { | ||
padding: 0 0.5rem; | ||
} | ||
.header__navigation-item a { | ||
text-decoration: none; | ||
} | ||
.header__navigation-item a:hover, | ||
.header__navigation-item a:active { | ||
outline: none; | ||
} | ||
.header__navigation-item a:visited { | ||
color: #a4d4ff; | ||
} | ||
.header__navigation .spacer { | ||
flex: 1; | ||
} | ||
.header__title { | ||
margin-left: 1rem; | ||
color: #a4d4ff; | ||
} | ||
.header__title a { | ||
text-decoration: none; | ||
font-size: 3rem; | ||
} | ||
.header__title a:active, | ||
.header__title a:hover { | ||
outline: none; | ||
} | ||
.header__title a:visited { | ||
color: #a4d4ff; | ||
} |
6 changes: 4 additions & 2 deletions
6
src/frontend/src/components/Header.js → ...frontend/src/components/Header/Header.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Header from './Header.jsx'; | ||
|
||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.main { | ||
margin-top: 10rem; | ||
justify-content: center; | ||
} | ||
.main__logo { | ||
text-align: center; | ||
width: 100%; | ||
} | ||
.main__logo img { | ||
max-height: 30rem; | ||
margin: auto; | ||
} |
16 changes: 8 additions & 8 deletions
16
src/frontend/src/components/layout.js → src/frontend/src/components/Layout/Layout.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Logo from './Logo.jsx'; | ||
|
||
export default Logo; |
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Post from './Post.jsx'; | ||
|
||
export default Post; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.sidedrawer { | ||
background-color: rgba(36, 36, 36, 0.9); | ||
width: 20vw; | ||
height: 100vh; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
z-index: 200; | ||
max-width: 400px; | ||
padding: 10px; | ||
transform: translateX(-100%); | ||
transition: transform 0.3s ease-out; | ||
padding-top: 5rem; | ||
} | ||
.sidedrawer__logo { | ||
text-align: center; | ||
max-height: 20rem; | ||
} | ||
.sidedrawer__logo img { | ||
height: 10rem; | ||
} | ||
.sidedrawer.open { | ||
transform: translateX(0); | ||
} | ||
.sidedrawer__navigation-items { | ||
height: 100%; | ||
list-style: none; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.sidedrawer__navigation-item { | ||
margin: 5px 5px; | ||
text-align: justify; | ||
} | ||
.sidedrawer__navigation-item a { | ||
display: inline-block; | ||
width: 100%; | ||
color: #cccccc; | ||
font-size: 1.7rem; | ||
text-decoration: none; | ||
border-bottom: 1px solid rgba(204, 204, 204, 0.2); | ||
} |
6 changes: 4 additions & 2 deletions
6
src/frontend/src/components/SideDrawer.js → .../src/components/SideDrawer/SideDrawer.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import SideDrawer from './SideDrawer.jsx'; | ||
|
||
export default SideDrawer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.text-area { | ||
width: 80vw; | ||
background: rgba(255, 255, 255, 0.7); | ||
margin: 3rem auto 0; | ||
font-size: 1.7rem; | ||
padding: 0rem 10rem; | ||
} | ||
.text-area .post { | ||
padding: 3rem; | ||
text-align: center; | ||
} |
4 changes: 3 additions & 1 deletion
4
src/frontend/src/components/TextArea.js → ...tend/src/components/TextArea/TextArea.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import TextArea from './TextArea.jsx'; | ||
|
||
export default TextArea; |
File renamed without changes.
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import ListItem from './ListItem.jsx'; | ||
|
||
export default ListItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import List from './List.jsx'; | ||
|
||
export default List; |
Oops, something went wrong.