Skip to content

Commit 953daad

Browse files
authored
Cleanup + Reorganisation (#3)
* Experiment with rewriting the UI in React * Reimplement existing UI in React * Slight Organisation/Renaming/Clean Up
1 parent 98a5d98 commit 953daad

File tree

11 files changed

+35
-281
lines changed

11 files changed

+35
-281
lines changed

css/Easel.module.css

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,24 @@
8181
}
8282

8383
.Header {
84-
font-size: 20px;
85-
padding: 10px 20px;
86-
margin: 0;
84+
display: flex;
85+
flex-direction: row;
86+
justify-content: space-between;
87+
88+
padding: 0 20px;
8789
background-color: #111;
90+
}
91+
92+
.HeaderText {
93+
margin: 0;
94+
padding: 0;
95+
font-size: 24px;
96+
line-height: 50px;
97+
}
98+
99+
.HeaderCredit,
100+
.HeaderCredit a {
101+
font-size: 14px;
102+
line-height: 50px;
103+
color: rgba(255,255,255,0.8);
88104
}

css/easel.css

Lines changed: 0 additions & 95 deletions
This file was deleted.

css/video.css

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -3,62 +3,7 @@
33
margin: 0;
44
}
55

6+
/* Make the background black so changing pages is not as jarring */
67
body {
78
background: black;
89
}
9-
10-
/*.video-container {
11-
position: fixed;
12-
width: 100vw;
13-
height: 100vh;
14-
// border: 5px solid blue;
15-
box-sizing: border-box;
16-
background-color: #222;
17-
}
18-
19-
.video-container button {
20-
background-color: #111;
21-
color: white;
22-
padding: 8px;
23-
margin: 5px;
24-
border: 1px solid black;
25-
border-bottom: 3px solid black;
26-
border-radius: 2px;
27-
transition: background-color 0.15s ease-out;
28-
}
29-
30-
.video-container button:hover {
31-
background-color: #222;
32-
}
33-
34-
.video-container button:active {
35-
background-color: #222;
36-
border-bottom: 1px solid black;
37-
position: relative;
38-
top: 2px;
39-
}
40-
41-
video {
42-
display: block;
43-
height: 80%;
44-
background-color: black;
45-
}
46-
47-
nav {
48-
display: flex;
49-
color: white;
50-
font-size: 120%;
51-
line-height: 120%;
52-
padding: 10px 30px;
53-
justify-content: space-between;
54-
}
55-
56-
nav .credit {
57-
font-size: 60%;
58-
display: inline;
59-
color: rgba(255,255,255,0.4) !important;
60-
}
61-
62-
nav .credit a {
63-
color: inherit;
64-
} */

html/easel.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Easel - Lecture Recordings (UoA)",
4-
"version": "0.2",
4+
"version": "0.2.1",
55
"author": "Matt Jakeman",
66
"description": "An unofficial enhancement suite for watching Lecture Recordings at the University of Auckland.",
77

@@ -14,13 +14,13 @@
1414
"content_scripts": [
1515
{
1616
"matches": ["*://mediaplayer.auckland.ac.nz/*", "*://mediastore.auckland.ac.nz/*"],
17-
"js": ["dist/videoenhance.js"],
17+
"js": ["dist/video.js"],
1818
"css": ["css/video.css"],
1919
"all_frames": true
2020
},
2121
{
2222
"matches": ["*://learningtools.auckland.ac.nz/ltr/home/index/*"],
23-
"js": ["dist/course.js"],
23+
"js": ["dist/recordings.js"],
2424
"all_frames": true
2525
}
2626
],
@@ -34,5 +34,5 @@
3434
"unlimitedStorage",
3535
"storage"
3636
],
37-
"web_accessible_resources": ["html/easel.html", "html/error.html"]
37+
"web_accessible_resources": ["html/error.html"]
3838
}

screenshot.png

123 KB
Loading

src/components/Header.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ export class Header extends React.Component<HeaderProps, {}> {
1010
let courseText = (this.props.courseName !== undefined)
1111
? "(" + this.props.courseName + ")"
1212
: "";
13-
return <h1 className={Style.Header}>Easel - Lecture Recording Manager {courseText}</h1>;
13+
return <header className={Style.Header}>
14+
<h1 className={Style.HeaderText}>Easel - Lecture Recording Manager {courseText}</h1>
15+
<p className={Style.HeaderCredit}>Created by <a href="https://www.mattjakeman.com/">Matt Jakeman</a></p>
16+
</header>;
1417
}
1518
}

src/easel.ts

Lines changed: 0 additions & 96 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)