Commit Graph

90 Commits

Author SHA1 Message Date
Ondřej Machota
a1efc2117c Resolves #16 2020-10-18 17:33:24 +02:00
Greenscreener
d914a323f1 Merge branch 'gs/online-only-notice' into 'master'
Suggestion: Add online-only notice.

See merge request patek-devs/patek.cz!39
2020-10-18 11:14:04 +00:00
Greenscreener
2fbd3f949f Added programmatic switching of online mode to config. 2020-10-15 12:32:09 +02:00
Greenscreener
610bb62f30 Added online-only notice. 2020-10-15 12:12:41 +02:00
Vojtěch Káně
9230d8e16c Merge branch 'vojta001/grey-text' into 'master'
Make `.has-text-grey` constrast enought with white to pass the WCAG AA requirements

See merge request patek-devs/patek.cz!42
2020-10-07 16:10:49 +00:00
Vojtěch Káně
edf81d21bb Merge branch 'vojta001/darkmode-toggle-button' into 'master'
Add a button to toggle dark mode and polish darkmode in general.

Closes #14 and #3

See merge request patek-devs/patek.cz!38
2020-10-07 14:28:04 +00:00
Greenscreener
8518c3ce41 Unified darkmode and footer link colour. 2020-10-07 12:29:01 +02:00
Vojtěch Káně
c3aec2e29f Make .has-text-grey constrast enought with white to pass the WCAG AA requirements
While being unspottable with the naked eye, this will make some pages of your site formally accessible (blog listing for example).
2020-10-07 11:54:07 +02:00
Greenscreener
80ac584b16 Resolved #14. 2020-10-07 11:34:41 +02:00
Greenscreener
33d2332e3e Fixed classes on dark-mode-toggler. 2020-10-07 11:25:31 +02:00
Vojtěch Káně
eb6f8be3b4 Add lang attribute to the <html> element
This should improve SEO and accessibility.
2020-10-07 11:18:44 +02:00
Vojtěch Káně
4160dc3a25 Replace custom styles on dark mode button with Bulma's is-arrowless 2020-10-07 11:03:04 +02:00
Vojtěch Káně
f1c790f63e Improve accessibility of the dark mode button 2020-10-07 10:59:44 +02:00
Vojtěch Káně
b3617e4ef0 Set the moon icon using a CSS class
This ensures higher compatibility and better code readability
2020-10-07 10:55:55 +02:00
Greenscreener
5cbe7b14f9 Fixed grammar. 2020-10-06 16:08:31 +02:00
Greenscreener
a33eaeeedb Fixed color of pagination link. 2020-10-06 15:19:32 +02:00
Greenscreener
1eeff69f75 Changed icon to moon. 2020-10-06 15:14:45 +02:00
Greenscreener
9edf9edaba Remove unused commented out code. 2020-10-05 03:01:29 +02:00
Greenscreener
8136844c3e Fixed ugly pagination. 2020-10-05 02:31:49 +02:00
Greenscreener
08bc849323 Replaced emoji with FontAwesome icon. 2020-10-05 02:07:46 +02:00
Vojtěch Káně
10977c2e55 Add a button to toggle dark mode
Also drop support for setting it through the URL query parameter
2020-09-30 22:15:54 +02:00
Vojtěch Káně
90357b5e2c Merge branch 'vojta001/datetime' into 'master'
Add a machine readable time representation to <time> tags

See merge request patek-devs/patek.cz!35
2020-09-07 14:21:18 +00:00
Vojtěch Káně
96a0148a1f Fix partials/linkedContent
There was a forgotten debug constant
2020-09-07 14:22:49 +02:00
Vojtěch Káně
5d2fb163e9 Add a machine readable time representation to <time> tags 2020-09-07 13:02:48 +02:00
Greenscreener
a18c1695ae Added option to explicly set format of blogPhoto. Resolves #12. 2020-06-29 20:12:00 +02:00
Vojtěch Káně
399e503647 Allow slides and recordings be linked to talks 2020-05-21 10:56:05 +02:00
Greenscreener
855562cd3b Pulled new version of logo CustomElement. 2020-05-18 19:46:07 +02:00
Greenscreener
1a76143b6f Modified PSP link, added button. 2020-05-18 12:22:54 +02:00
Greenscreener
8f48a12a63 Added explaining comment. 2020-05-14 18:29:55 +02:00
Greenscreener
b0c1775f10 Added fallback css for the PatekLogos. 2020-05-12 11:31:25 +02:00
Vojtěch Káně
4562b4255d Provide fallback values for <patek-logo>s
This is targeted to browsers without custom elements support, or with
disabled JavaScript.
2020-05-12 08:51:16 +02:00
Vojtěch Káně
ebedef09ab Add link to RSS feed to <head> 2020-05-11 15:29:36 +02:00
Vojtěch Káně
f031cb9826 Add link to original image to blogPhoto shortcode
We might decide to link to still slightly compressed version, but this
currently works fine.
2020-05-05 13:01:23 +02:00
Vojtěch Káně
d10218c320 Merge new blogPhoto shortcode into 'master'
See merge request patek-devs/patek.cz!9
2020-05-04 12:17:57 +00:00
Vojtěch Káně
058de79991 Remove the sizes attribute
It defaults to 100vw, which may be wasteful sometimes, but it guarantees
smooth experience. I am not aware of any simple way of requesting the
current widescreen behavior "make it as wide as possible while not
exceeding 30rem height" using the sizes attribute.

This setting may be especially wasteful for portrait images, as their
rendered width will be much smaller than the viewport width.
2020-05-03 14:55:51 +02:00
Vojtěch Káně
5be48c59c6 Raise the quality of low res images
They might be scaled up by the browser making compression artifacts much
more visible.
2020-05-03 14:47:11 +02:00
Greenscreener
732844863c Added PNG generation to logo generator. 2020-05-01 17:49:54 +02:00
Greenscreener
897eb88bec Merge branch 'gs/darkmode-fix' into 'master'
A big improvement for dakrmode.

Closes #10 and #11

See merge request patek-devs/patek.cz!14
2020-04-28 09:47:52 +00:00
Greenscreener
7bc21cb434 Degeneralized darkmode and added some proper styling for it.
Resolves #11 and #10
2020-04-26 21:05:40 +02:00
Greenscreener
51d60ea121 Removed all .gitkeep files as they are not needed anymore. 2020-04-26 20:13:59 +02:00
Greenscreener
8a376ec7bd Added more specific selector for transition.
This doesn't exactly solve the darkmode issue, it just makes it a little
less noticable.
2020-04-23 17:41:39 +02:00
Greenscreener
db46217d96 Added missing <head> tag
I feel like this doesn't need a MR
2020-04-22 22:07:41 +02:00
Vojtěch Káně
e591d16e9d Use <figure> and <figcaption> in blogPhoto shortcode 2020-04-21 22:55:57 +02:00
Vojtěch Káně
891110771e Include the compressed original image in src/srcset, if it happens to be
smaller than the largest size we resize to.
2020-04-20 23:06:27 +02:00
Vojtěch Káně
315ec5b77b Generalize blogPhoto shortcode
Generate the resized images from simple config array + generate only
those, that are actualy smaller then the original.
2020-04-20 13:54:08 +02:00
Vojtěch Káně
cc5e75e469 Fix blogPhoto shortcode
w unit inside srcset means width in original photo pixels, not height
2020-04-20 13:35:43 +02:00
Vojtěch Káně
0a61815dcb Add blogPhoto shortcode
This shortcode is intended to be used in blogposts to include photos. It
downscales them and uses srcset to serve appropriate sizes to the
browsers.
2020-04-16 23:14:46 +02:00
Greenscreener
61c3516c83 Added swapper, fine tuned svg boundary. 2020-02-23 11:54:16 +01:00
Greenscreener
feea091945 Removed redundant code snippet. 2020-02-22 21:39:47 +01:00
Greenscreener
996ac62e1a Removed console.logs, added default value to svg. 2020-02-22 21:13:21 +01:00