Skip to content

Commit

Permalink
Added pages: About TMEIT, Documents, along with mobile fixes to the u…
Browse files Browse the repository at this point in the history
…ser menu (#196)

* Have started to work on a new documents-page. I will have to figure out how to import the module to the app

* tmp

* Added the About TMEIT-page

* About page and documents page done - for now

* updated version number

Co-authored-by: Sebbe <[email protected]>
  • Loading branch information
Sebbedi and Sebbe authored Jan 8, 2023
1 parent 57d1150 commit 510c4ce
Show file tree
Hide file tree
Showing 13 changed files with 74 additions and 6 deletions.
2 changes: 1 addition & 1 deletion back/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tmeit_backend"
version = "1.0.2"
version = "1.0.3"
description = "Python backend for the TMEIT website"
authors = ["TraditionsMEsterIT"]
license = "AGPL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/tmeit-se/postgres/set_image_tag.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{
"op": "replace",
"path": "/spec/jobTemplate/spec/template/spec/containers/0/image",
"value": "ghcr.io/tmeit/db-backup-agent:1.0.2"
"value": "ghcr.io/tmeit/db-backup-agent:1.0.3"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{
"op": "replace",
"path": "/spec/template/spec/containers/0/image",
"value": "ghcr.io/tmeit/tmeit-run-migrations:1.0.2"
"value": "ghcr.io/tmeit/tmeit-run-migrations:1.0.3"
}
]
2 changes: 1 addition & 1 deletion deploy/kubernetes/tmeit-se/tmeit-app/set_image_tag.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{
"op": "replace",
"path": "/spec/template/spec/containers/0/image",
"value": "ghcr.io/tmeit/tmeit-app:1.0.2"
"value": "ghcr.io/tmeit/tmeit-app:1.0.3"
}
]
2 changes: 1 addition & 1 deletion deploy/kubernetes/tmeit-se/tmeit-worker/set_image_tag.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{
"op": "replace",
"path": "/spec/template/spec/containers/0/image",
"value": "ghcr.io/tmeit/tmeit-worker:1.0.2"
"value": "ghcr.io/tmeit/tmeit-worker:1.0.3"
}
]
4 changes: 4 additions & 0 deletions docs/Sitemap and page design ideas.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@
* Must sign up with a kth email, masters/marskalk can bypass this
* Proper GDPR consent
* Make sure to rate limit signups

## Documents
* Links to Reglemente, Meeting protocols (limit availability of Meeting protocols to members only?)
* Random trivia like on the old website?
2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sideEffects": [
"*.css"
],
"version": "1.0.2",
"version": "1.0.3",
"description": "Front-end for the TMEIT website.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions front/src/app/components/HeaderFooter/MobileHeaderMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ function MobileHeaderMenu({className}) {
const menuItems = [
[meData, (meData? <Link to={`/profile/${meData.short_uuid}/${meData.first_name}_${meData.last_name}`}><MenuItem>My Profile</MenuItem></Link>: null)],
[isAdmin, (<Link to={"/master"}><MenuItem>Master Menu</MenuItem></Link>)],
[true, (<Link to={"/"}><MenuItem>Home</MenuItem></Link>)],
[true, (<Link to={"/events"}><MenuItem>Events</MenuItem></Link>)],
[true, (<Link to={"/team"}><MenuItem>Team</MenuItem></Link>)],
[true, (<Link to={"/about"}><MenuItem>About TMEIT</MenuItem></Link>)],
[true, (<MenuItem onClick={() => logOut(navigate)}>Log Out</MenuItem>)],
]

Expand Down
1 change: 1 addition & 0 deletions front/src/app/components/HeaderFooter/navs/HeaderNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const getHeaderNavItems = (wrapInMenuItem) => {
const links = {
"/events": "Events",
"/team": "Team",
"/about": "About TMEIT",
"/join_tmeit": "Join",
}
if(wrapInMenuItem) {
Expand Down
2 changes: 2 additions & 0 deletions front/src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ const router = createBrowserRouter([{
children: [
{ path: "/", element: <routes.Home.component />, loader: routes.Home.loader },
{ path: "/events", element: <routes.Events.component />, loader: routes.Events.loader },
{ path: "/about", element: <routes.About.component />, loader: routes.About.loader },
{ path: "/documents", element: <routes.Documents.component />, loader: routes.Documents.loader},
{ path: "/team", element: <routes.Team.component />,
loader: async ({ params }) => {
await routes.Team.loader();
Expand Down
25 changes: 25 additions & 0 deletions front/src/app/layouts/About.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import styled from "@emotion/styled";
import {Link} from "react-router-dom";

import Centered from "../components/Centered.js";
import TextSummary from "../components/TextSummary.js";

const StyledAbout = styled(About)({
[TextSummary]: {
maxWidth: "80em",
margin: "2em"
}
});

function About({className}){
return(
<Centered className={className}>
<TextSummary>
<h1>About TMEIT</h1>
<p>* <Link to="/documents">Documents</Link></p>
<p>* TMEIT's history</p>
</TextSummary>
</Centered>
);
}
export default StyledAbout
24 changes: 24 additions & 0 deletions front/src/app/layouts/Documents.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import styled from "@emotion/styled";

import Centered from "../components/Centered.js";
import TextSummary from "../components/TextSummary.js";

const StyledDocuments = styled(Documents)({
[TextSummary]: {
maxWidth: "80em",
margin: "2em"
}
});

function Documents({className}){
return(
<Centered className={className}>
<TextSummary>
<h1>Documents</h1>
<p>* Reglemente - for now you can find the reglemente in google drive, click "Meeting Protocols"</p>
<p>* <a target="_blank" href="https://drive.google.com/drive/folders/16nr4Zem5E2HfjWQ135W_fiy7F58fCFDk?usp=share_link">Meeting protocols</a></p>
</TextSummary>
</Centered>
);
}
export default StyledDocuments
8 changes: 8 additions & 0 deletions front/src/app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ const routes = {
"component": lazy(() => import("./layouts/Team")),
"loader": async () => await import("./layouts/Team"),
},
"About": {
"component": lazy(() => import("./layouts/About")),
"loader": async () => await import("./layouts/About"),
},
"Documents": {
"component": lazy(() => import("./layouts/Documents")),
"loader": async () => await import("./layouts/Documents"),
},
"Profile": {
"component": lazy(() => import("./layouts/Profile")),
"loader": async () => await import("./layouts/Profile"),
Expand Down

0 comments on commit 510c4ce

Please sign in to comment.