Skip to content

Commit

Permalink
Add a footer to all the pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Jan 26, 2023
1 parent ed5ed06 commit 368cd72
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/client/components/Footer/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<footer class="footer">
<div class="content has-text-centered" v-if="user">
Logged in as: {{ user.name }} (@{{ user.username }})
</div>
<div class="content has-text-centered">
User authentication source: {{ userSourceDescription }}
</div>
<div class="content has-text-centered">
<p>
<strong>TCQ</strong> is open source software, and was originally developed by <a href="https://github.com/bterlson/tcq">Brian Terlson</a> for <a href="https://github.com/tc39/how-we-work">TC39</a>.
This fork is maintained by <a href="https://github.com/rpavlik/tcq">Ryan Pavlik</a> (<a href="https://collabora.com">Collabora</a>) for the use of <a href="https://khronos.org">the Khronos Group</a>.
You are welcome and encouraged to <a href="https://github.com/rpavlik/tcq">get the source and contribute</a>.
</p>
</div>
</footer>
1 change: 1 addition & 0 deletions src/client/components/Footer/footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import '~bulma';
18 changes: 18 additions & 0 deletions src/client/components/Footer/footer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Vue from 'vue';
import './footer.scss';
import template from './footer.html';

const Footer = template(
Vue.extend({
props: {
user: undefined,
userSourceDescription: undefined,
},
created() {
this.userSourceDescription = (window as any).userSourceDescription;
this.user = (window as any).user;
},
})
);

export default Footer;
2 changes: 2 additions & 0 deletions src/client/pages/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TCQ Speaker Queue - Home</title>
<!--
<script>
var appInsights=window.appInsights||function(config){
Expand Down Expand Up @@ -60,5 +61,6 @@ <h1 class="title">Well let me finish! As I was going to say... TCQ helps:</h1>
to get started!</a>
</div>
</section>
<footer></footer>
</body>
</html>
3 changes: 3 additions & 0 deletions src/client/pages/home/home.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
import Footer from '../../components/Footer/footer';
import './home.scss';

new Footer({ el: 'footer' });
2 changes: 2 additions & 0 deletions src/client/pages/meeting/meeting.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TCQ Speaker Queue - Meeting</title>
<!--
<script>
var appInsights=window.appInsights||function(config){
Expand All @@ -21,6 +22,7 @@
<div id="app">

</div>
<footer></footer>
</body>

</html>
3 changes: 3 additions & 0 deletions src/client/pages/meeting/meeting.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import App from '../../components/App/app';
import Footer from '../../components/Footer/footer';
import './meeting.scss';

// apply template
new App({ el: '#app' });
new Footer({ el: 'footer' });
2 changes: 2 additions & 0 deletions src/client/pages/new/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TCQ Speaker Queue - Welcome</title>
<!--
<script>
var appInsights=window.appInsights||function(config){
Expand Down Expand Up @@ -42,5 +43,6 @@
</div>
</div>
</section>
<footer></footer>
</body>
</html>
2 changes: 2 additions & 0 deletions src/client/pages/new/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Vue from 'vue';
import './new.scss';
import { NewMeeting } from '../../components/NewMeeting/NewMeeting';
import { JoinMeeting } from '../../components/JoinMeeting/JoinMeeting';
import Footer from '../../components/Footer/footer';

new NewMeeting({ el: '#new-meeting' });
new JoinMeeting({ el: '#join-meeting' });
new Footer({ el: 'footer' });

0 comments on commit 368cd72

Please sign in to comment.