Rhidian
(Rhidian Bramley)
2020 年 5 月 4 日午後 6:30
1
Star Wars theme
What better way to celebrate Star Wars day then with a Star Wars theme. This theme gives a parallax star background and a traditional star wars theatrical crawl on the site FAQ page.
The Git repo includes the sound files to accompany the intro (browser dependent). Please feel free to modify, pull requests welcome
Resources
Demo: Preview this theme
Git repo: https://github.com/naidihr/discourse-star-wars-theme
How do I install a Theme or Theme Component?
「いいね!」 45
Rhidian
(Rhidian Bramley)
2020 年 5 月 4 日午後 6:42
2
Please could we enable upload of sound files (mp3, ogg) to assets on the theme creator site?
@Johani @awesomerobot
「いいね!」 11
david
(David Taylor)
2020 年 5 月 4 日午後 6:46
3
done
Awesome theme component BTW! May the fourth be with you
「いいね!」 18
Rhidian
(Rhidian Bramley)
2020 年 5 月 25 日午後 6:32
5
I’ve updated this theme to coincide with the anniversary of the release of Star Wars on 25 May 1977.
New jump to light speed and hyperspace effect (hold down left mouse button or long touch on screen)
Improved rendering of FAQ crawl on mobile devices
New lightsaber to conduct the orchestral opening
Admins renames on the About page
Iris wipe effect on privacy page (experimental)
Demo: Preview this theme
「いいね!」 12
Top marks for doubling the days of the year you have the perfect excuse to use your great theme Very cool Rhidian!
「いいね!」 7
Rhidian
(Rhidian Bramley)
2020 年 11 月 3 日午前 11:31
7
Thanks for the T-shirt @HAWK
Cool
「いいね!」 16
Heliosurge
(Dan DeMontmorency)
2020 年 11 月 7 日午後 9:58
8
Very sweet theme! Awesome
「いいね!」 2
Rhidian
(Rhidian Bramley)
2020 年 11 月 29 日午前 9:42
9
RIP Dave Prowse (Darth Vader) . One of the greatest villains of all time.
「いいね!」 7
nickirwin
(Nick Irwin)
2020 年 12 月 2 日午前 7:39
10
This is lit Thanks for sharing!
「いいね!」 3
Rhidian
(Rhidian Bramley)
2021 年 5 月 4 日午後 9:06
11
Happy Star Wars day. One year on
「いいね!」 7
Rhidian
(Rhidian Bramley)
2021 年 5 月 5 日午前 7:50
12
This theme is now generating and error on the theme creator and the theatrical crawl isn’t displaying. The theme hasn’t been changed and it still works on the latest stable version of Discourse.
@david can you tell if this is this an issue with the theme creator demo site (and/or discourse version it is running on) or the theme?
「いいね!」 2
Probably breaking on this:
api.onPageChange(() => {
//reset
$('div.starwars').html('').hide();
stopJump();
$("html").css("cursor","auto");
//append star wars crawl to FAQ page
selector = 'body.static-faq div[itemprop="mainContentOfPage"]';
if ($(selector).length && !$('div.star-wars-intro').length){
var crawl='<div class="parallax">Test</div>';
var intro = '<div class="star-wars-intro">A long time ago in a galaxy far, far away...</div>';
var audio = '<audio autoplay>';
audio += '<source src="' + settings.theme_uploads.Star_Wars_original_opening_crawl_1977_ogg + '" type="audio/ogg" />';
audio += '<source src="' + settings.theme_uploads.Star_Wars_original_opening_crawl_1977_mp3 + '" type="audio/mpeg" />';
audio += '</audio>';
Because of this: JavaScript "use strict"
「いいね!」 2
Rhidian
(Rhidian Bramley)
2021 年 5 月 5 日午前 8:02
14
Thanks @merefield . That’s fixed it .
When did the JavaScript “use strict” requirement come in?
「いいね!」 3
Only a few weeks ago if that
「いいね!」 4
nolo
(Manuel)
2021 年 5 月 5 日午前 8:14
16
That’s the topic explaining the changes:
Next week I’m going to merge this PR that allows themes and components to have QUnit tests, but it also changes how themes JavaScript is processed/transpiled by Discourse. Making those changes in a backward-compatible manner is very difficult without reworking lots of code in core (which may very well introduce other backward-incompatible changes), so the changes may break the JavaScript of your themes/components when you upgrade your site.
In this post I’m going to explain what the changes are…
「いいね!」 5
Wow! Quite an interesting theme! May The Fourth be with all of you too!
「いいね!」 5
png
(Portable Network Graphics)
2021 年 5 月 5 日午後 2:10
18
Amazing theme! The only issue I have with it though is that the text scrolls quite rapidly, if you could slow it down a bit, that would be great.
「いいね!」 3
Thanks for fixing it! Strictness is a new rule that benefits everyone in the long run
「いいね!」 6
f1r4s
(Eddie)
2022 年 2 月 19 日午前 10:44
20
@Rhidian , is there a way to add custom word or logo beside the star war effect in about page. or in tos page ?
「いいね!」 1