Skip to content

Commit

Permalink
Merge pull request #14 from stiefeljackal/fix/accessibility
Browse files Browse the repository at this point in the history
fix(accessibility): address web accessibility failures
  • Loading branch information
ProbablePrime authored Nov 22, 2024
2 parents bb7d3e1 + 8f3243e commit ad4e615
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
4 changes: 4 additions & 0 deletions public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
--background-body: #11151d;
}

.subheading {
font-size: 1rem;
}

.center {
display: flex;
flex-wrap: wrap;
Expand Down
6 changes: 4 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index');
res.render('index', {
title: 'go.resonite.com Home'
});
});

router.get('/session/:sessionId', (req,res, next) => handle("session", req, res, next));
Expand Down Expand Up @@ -42,7 +44,7 @@ function getUrl(type, req) {
/**
* Creates an error for the Web response of a failed call to the api.
*
* @param {Response} res The response of the api request.
* @param {SessionInfoA} res The response of the api request.
* @param {('world'|'session')} type The type of information this is whether it is a world or session.
* @returns
*/
Expand Down
2 changes: 1 addition & 1 deletion views/index.pug
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends layout

block content
h1 go.resonite.com
h1 go.resonite.com
p go.resonite.com is used to link to worlds and sessions from the web. It's home page doesn't have any functionality at the moment.

p Would you like to
Expand Down
2 changes: 1 addition & 1 deletion views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ html(lang="en")
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

header.center
img(src='/images/resonite.png')
img(src='/images/resonite.png' alt='Resonite')
body
block content
h1 Placeholder
Expand Down
4 changes: 2 additions & 2 deletions views/session.pug
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ block content
h1 !{name}

.center
img(src=thumbnailUrl)
img(src=thumbnailUrl alt=`A preview image of the '${title}' session.`)

ul
li #[strong Host:] #{hostUsername}
Expand All @@ -24,7 +24,7 @@ block content
p.center
a(href="https://wiki.resonite.com/go.resonite.com") Need Help?

h4 Alternative URLs
h2.subheading Alternative URLs
ul
li #[strong Session Url:] #{`ressession:///${sessionId}`}
li #[strong Connection Urls:]
Expand Down
4 changes: 2 additions & 2 deletions views/world.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ block content
h1 !{name}

.center
img(src=thumbnailUri)
img(src=thumbnailUri alt=`A preview image of the '${title}' world.`)

ul
li #[strong By:] #{ownerName}
Expand All @@ -22,6 +22,6 @@ block content
a.btn(href=`resrec:///${ownerId}/${id}`) Open World!
p.center
a(href="https://wiki.resonite.com/go.resonite.com") Need Help?
h4 Alternative URLs
h2.subheading Alternative URLs
ul
li #[strong Record Url:] #{`resrec:///${ownerId}/${id}`}

0 comments on commit ad4e615

Please sign in to comment.