-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign homepage by upgrading to Bootstrap 5 #810
base: main
Are you sure you want to change the base?
Conversation
Personally, I think we've accrued too much technical debt on this site, so I appreciate your efforts to move things forward. I think the site works well without the icons, but if we decide on this direction, it would be worth looking at either Font Awesome, or to see about using native Bootstrap icons. |
Thank you for an update. The site is indeed ancient, but has held up well!
|
@davidlehn Thanks for the extra context!
I'm a bit confused by this point, as there are no CSS updates in this PR, except for obviously referencing CSS that is within Bootstrap.
Happy to put the icons back in, though I still think it looks a bit odd. Will update the PR with them and let you decide. All in all, what are the immediate next steps with this? Does it make sense for me to continue updating the rest of the website to Bootstrap 5? The homepage at least wasn't too difficult to update, so I'm happy to have a crack at updating the other pages, even if it is just an interim solution until/if we upgrade to some theme system from a site generator. |
By CSS I meant the general theme of the site. Main layout HTML, CSS, menus, etc, should be in one theme in one place. There should be no need to update pages by hand. This site predates mostly all modern static site generators and we've never tackled the update. I'm suggesting not spending the time with manual updates since that will all get dropped when a better system is adopted. The updates done here could be a base for that updated theme. It should only need to be done once and every page will inherit it. |
@davidlehn Thanks for clearing things up. Judging by #461, that effort has taken/is taking a long time, and I don't particularly want to embark on rehauling the whole site architecture (at least at the moment). Upgrading to Boostrap 5 isn't much effort, as its mostly a find-and-replace job of updating class names. My original motivations for this PR are to:
What you're mentioning seems to also make it easier to contribute to the website. I definitely think this is important, but can be done in a separate PR via the usage of some static site generator. If it's just a concern of increased effort from my part, then I'll happily continue working on this, because I'd rather sink some time into upgrading to Bootstrap 5 and having it merged, than migrating over to 11ty or Jekyll and have the PR sit open for a long time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @veyndan! Even though the website has needed a complete redesign, that effort has long been stalled. In the mean time, making incremental improvements, such as updating the bootstrap version, goes a long way towards reducing the technical debt.
@gkellogg @davidlehn I've upgraded the other pages to use Bootstrap 5. Please see the updated screenshot table!
|
I can live without the icons, and it actually gives the site a bit more modern look to not have them. The playground is also a bit fiddly, and really needs its own overhaul (see various issues).
|
Awesome! I just removed them in the latest commit. Thanks for the detailed list of follow ups. Deleting code is always fun, so I'll happily pick that up after this PR is merged.
I went to https://json-ld.org/dev but am getting a 404. Are you referring to a different |
That should be |
As recommended by json-ld#810 (comment).
@gkellogg Just updated |
As the author of #461 (which got bogged down in fiddly complexity...), I'm in favor of getting this merged to move forward (as I don't want this PR to end up in the same state that my hard work did). We can revisit the move to 11ty in #461 (and deal with the list of "blockers" in this comment) over there or in separate issues/PRs. Mainly, we just need this site to move forward for the good of the community and the Web, so thank you @veyndan this PR! Let's merge it! |
@davidlehn can we discuss this one soon? I don't want it to end up in the same fate as #461. |
I think we just need to merge and move on. It makes a definite improvement. @davidlehn? |
I'm ok with the bootstrap update in theory. However I'm not as enthusiastic about the arbitrary style changes. And there are quite a few problems. Did others test this out or only look at the images? I fired this up locally to compare side by side. @veyndan: Can you please fix the conflicts. Some updates I did caused them, my bad.
"modern" is a hard word to interpret in any context. I'd prefer something timeless myself. :-) Not sure why icons are not as popular anymore. Maybe mobile spacing? Maybe hard to find appropriate icons? I did prefer them, and think they are useful for quick visual recognition, and are a hint for those that don't speak our un-internationalized labels. I guess I won't fight everyone on this. Note the screenshot images don't reflect the removed icons. |
|
||
<link rel="shortcut icon" href="favicon.ico" /> | ||
|
||
<!-- Script tags --> | ||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" async></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://getbootstrap.com/docs/5.3/getting-started/introduction/#quick-start
Are the quick start docs considered best practice? They use integrity
and crossorigin
attributes. Is async
ok here? It's not in the quick start docs. Does that cause issues with timing and ordering? (Same issue in other files too.)
<div class="col-md-3 gy-3"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<h3 class="card-title">Javascript</h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<h3 class="card-title">Javascript</h3> | |
<h3 class="card-title">JavaScript</h3> |
@@ -1397,12 +1390,13 @@ | |||
}) | |||
.appendTo(idWrap); | |||
|
|||
iconCloudDownload.after(" Load"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indent and use spaces.
@@ -1397,12 +1390,13 @@ | |||
}) | |||
.appendTo(idWrap); | |||
|
|||
iconCloudDownload.after(" Load"); | |||
|
|||
const iconCloudUpload = $("<i/>", {"class": "icon icon-cloud-upload"}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indent and use spaces.
@@ -1411,6 +1405,8 @@ | |||
}) | |||
.appendTo(descWrap); | |||
|
|||
iconCloudUpload.after(" Create") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indent and use spaces.
}) | ||
.appendTo(descWrap); | ||
|
||
const iconCloudDownload = $("<i/>", {"class": "icon icon-cloud-download"}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indent and use spaces.
|
json-ld.org is using Bootstrap 2.x, which is about 10 years old as of now. In an attempt to give the website a fresh lick of paint, I upgraded the
homepagewebsite from Bootstrap 2.x to 5.3.1.As I only ugpraded the Bootstrap version for the homepage in this PR, navigating between sub pages will look a bit odd, as the other pages are still using Bootstrap 2.x. I wanted to create this PR so I can get opinions on whether such a change would be accepted, before I go and upgrade the whole site to 5.x!PS: One notable difference is that the icons have been removed. Glyphicons are no longer bundled within Bootstrap, and from what I can tell, getting them from Glyphicons directly costs money. If we wanted to re-add the icons, we would need to get it from another source (e.g., Font Awesome or Bootstrap Icons). I tried using Bootstrap Icons, but I found the icons to look out of place in the redesign, so decided to just rip them out.