771 Commits

Author SHA1 Message Date
bf8f4a3f69 fixes for better serving magosit.hu 2024-09-10 21:22:48 +02:00
bfe35a1c5b updated magcms / ppee for newer python infrastructure 2024-09-09 13:45:12 +02:00
dbaf4047b4 first rename WIP 2020-07-12 12:49:32 +02:00
13ea8c1d8b Polaroids are now always spread out in mobile versions (as the default does on PC too) 2020-03-07 00:40:52 +01:00
7cf224cef6 BAD/BUGGY: Trying to make polaroid mobile friendly - this does not works, but idea worth saving. 2020-03-07 00:06:56 +01:00
aa406e688b Updated navmenu for mobile - maybe not latest version... 2020-03-06 23:18:52 +01:00
34b69ac256 Custom css can be added to paragraph now 2020-03-06 19:44:55 +01:00
59d5ce18eb Implemented much of polaroid-group galleries now. By default they are centered, image height maxes out at 85% so text should be visible practically always; "h" and "w" can be added for height and width (accept everything that CSS accepts) and if x, y is provided we use position:absolute. There is margin_bottom if all elements are absolute by your choice but I prefer making one centered and default (just chaning its wdth and height using "w" and "h", and others defined as absolute around it. This way the single centered element makes the width of the whole group. I just wanted to note somewhere this trick. 2020-03-06 17:09:40 +01:00
ebc1e96c76 QUICKFIX: Exchanged 2k and 450p urls in full-image covers as they are the most critical on the fast-path for me now. The current version loads BOTH urls ALWAYS which is awful and not optimized (see network inspector in FF / PM); A real solution would be to use media queries here and only load the appropriate image size according to the display width and such data. That way things could go fast on mobile and on old machines (like my laptop) while still getting 2k plus resolution images for high-end users. Currently I have to use jpg files and it is tolerable this way, but could be made faster as I see on network analysis. 2020-03-06 17:05:49 +01:00
c8f3c91fc2 Added support for margin_bottom in polaroid-group. Accepts all value CSS accepts (like vw, vh, %, px). Tested. 2020-03-06 14:43:19 +01:00
c2ff06cdcc Added overflow: hidden to polaroid link containers or the image. Should not take effect unless some browsers prefer min-width OVER max-width in precedence. Only added for bullet-proofing behaviour is same everywhere. 2020-03-06 14:25:48 +01:00
34e3c4b5c8 First working version. Without further parameters it uses big polaroid images. Parameters not tested; TODO: likely sizing should be made mandatory when positioning and we should add min-height or height of the link based on the image and text sizes calculated in python jinja2 code. 2020-03-04 00:53:06 +01:00
aa3cedeaff First version of "polariod-group" section - untested! 2020-03-03 20:01:59 +01:00
f52d488ddb Fixed layout issues with mobile / tablet views so far 2020-02-28 19:00:31 +01:00
f12451710f Better navmenu css 2020-02-28 17:31:17 +01:00
4c6d8bd381 Revert "Removed email as it was already a bit too much on the navmenu; better for mobile now and email is still there in the "contact" section using mailto"
This reverts commit b957204804c4af38850c1d8d6fe60596951bc9cf.
2020-02-28 17:06:26 +01:00
b957204804 Removed email as it was already a bit too much on the navmenu; better for mobile now and email is still there in the "contact" section using mailto 2020-02-28 17:05:47 +01:00
92fe0a1a47 Further navmenu changes for mobile and table usage 2020-02-28 17:04:39 +01:00
0d3cb12430 Revert "Revert "Bullet point tags work, but mobile is broken; without it padding too much (not padding but seem so). Maybe will revert this commit...""
This reverts commit 77cfeafc8c9f52374ebd2177969770bf462b3a5f.
2020-02-26 13:15:17 +01:00
77cfeafc8c Revert "Bullet point tags work, but mobile is broken; without it padding too much (not padding but seem so). Maybe will revert this commit..."
This reverts commit 8bbe97e08967c9d8eadc8c7958057ed0a798f5c5.
2020-02-24 21:38:46 +01:00
8bbe97e089 Bullet point tags work, but mobile is broken; without it padding too much (not padding but seem so). Maybe will revert this commit... 2020-02-24 21:33:36 +01:00
1baae09e24 Updated TODO.txt - finished task 1 and changed / added tasks 2020-02-24 14:54:31 +01:00
aa070b76f7 Added "ord" to gallery settings.yaml to order them based on that; fixed crash when no date; REM.: You can mix "ord", "date" and the default ordering now, but you can crash it if you mix these and ord is a number not a string or char! This is because python is dynamically typed and lets you fSck this up... well... you either should always use "ord" now, or use it as "0", "1", ... instead of 0, 1, ... 2020-02-24 14:25:05 +01:00
4060eb3eda Fixed email showing up when there is no email but facebook setting 2020-02-24 14:22:03 +01:00
42e82afb0b Added email and phone support in navmenu. TODO: language picker 2020-02-15 00:53:56 +01:00
707a0a5ab6 The navmenu section - first version working. TODO: email, phone and language picker 2020-02-15 00:04:40 +01:00
b30c3cde15 Added header type sections - first version 2020-02-14 16:11:48 +01:00
27794e92b4 Added TODO.txt 2020-02-07 19:28:57 +01:00
139fbf7448 First working version for subgal_section. TODO: Only exposure template exists for now; TODO: maybe using more CSS than it should; TODO: Only one subgal section can be on every gallery page - migth be good idea to support more than one and multiple places 2020-02-05 23:37:32 +01:00
b5e72e4578 First try implementing subgal_section - TODO: untested; TODO: no difference between levels (back button does not exist now); TODO: When there are no sections at all, we should create index as before? 2020-02-05 15:52:52 +01:00
cb49bc5724 Added first version of subgal.html for exposure templates to test my future changes. Taken this from the original index page code 2020-02-05 14:57:44 +01:00
85883687db Fixed typo 2020-02-05 14:56:43 +01:00
Adrien Beudin
ff4ac07f58
Merge pull request #95 from Psycojoker/QSchulz-flex-grow
flex grow
2019-12-20 11:05:44 +01:00
Adrien Beudin
c612bb718f update travis dist 2019-09-25 20:13:56 +02:00
Adrien Beudin
b572e90ef7 [fix]convert bytes to string 2019-09-25 19:36:21 +02:00
Adrien Beudin
86be23bc82 Merge branch 'flex-grow' of git://github.com/QSchulz/prosopopee into QSchulz-flex-grow 2019-09-25 13:40:44 +02:00
Adrien Beudin
1826298328 Release 0.8.2 2019-09-25 11:18:12 +02:00
Adrien Beudin
c7102fdb17 Release 0.8.2 2019-09-25 11:00:29 +02:00
Adrien Beudin
3f484ece0c [fix] encryption page 2019-09-25 10:46:02 +02:00
beudbeud
7bebe0eec3
Merge pull request #90 from QSchulz/fix-internal-url-scheme
themes: fix URI matching used for deciding if URI's local in menu
2019-05-27 11:55:16 +02:00
Quentin Schulz
ecb1cadbee themes: pictures-group: fix alignment when pictures do not fill the flex container
In most cases, a line in a pictures-group contains enough pictures or at
least in the correct format (usually in landscape mode) to actually make
the browser call flex-shrink.

However, in a few specific cases, when pictures do not fill the flex
container, there is some space left on the right side of the line which
could be filled in.

In that case, we can use the flex-grow property. To be able to keep
everything aligned, we need to set the flex-grow property according to
the ratio of the picture so that all pictures in the line are grown
proportionally.

Adding this alignment fix required a bit of re-ordering so we could call
the ratio property for the div of class `picture`.

Fixes #92

Signed-off-by: Quentin Schulz <foss@0leil.net>
2019-05-05 21:21:14 +02:00
Quentin Schulz
54f47ecd06 prosopopee: add ratio property for videos
To prepare for an alignment fix that requires to know the ratio of the
video screenshot, let's add a ratio property.

This property is calling `ffprobe` or `avprobe` depending on whether
ffmpeg or libav-tools was installed. It is not adding a new dependency.

The output of this particular `ffprobe` or `avprobe` returns the width
and height of the video, separated by a comma.

Signed-off-by: Quentin Schulz <foss@0leil.net>
2019-05-05 21:20:04 +02:00
Quentin Schulz
8b4f645a65 prosopopee: add ratio property for images
To prepare for an alignment fix that requires to know the ratio of the
image, let's add a ratio property.

This property is calling `gm identify` which is already a dependency of
prosopopee.

The output of this particular `gm identify` returns the width and height
separated by a comma.

Signed-off-by: Quentin Schulz <foss@0leil.net>
2019-05-05 21:20:04 +02:00
Bram
c0efbba51c
Merge pull request #89 from QSchulz/fix-english
docs: fix a few English mistakes
2019-03-23 04:39:54 +01:00
Quentin Schulz
f4888f6831 themes: fix URI matching used for deciding if URI's local in menu
We want to distinguish between URI references ("local" pages), such as
path/to/another/page/of/my/website, from the other ones, such as
https://example.com in the menu to know how to build the URL.

The issue is that we did the distinction between the two by checking if
the string starts with "http".
Unfortunately, it does not match other valid URI schemes. One example is
mailto:address@example.com to open a mail client with the recipient
being address@example.com.
There are many other valid URI schemes (tel, ftp, irc, ...).
Under the current code, we think anything that isn't started by "http"
is local, i.e. we need to append the string to the parent path of the
current page.
This means that we have
https://mywebsite.example.com/mailto:address@example.com linked in the
menu instead of the expected mailto:address@example.com.

Let's fix that with a very simple test. A URI reference is commonly
detected as anything that does not contain a scheme (which has to be
suffixed by ':') or if it does, that the given path starts with './'.

This is most likely not handling all the cases but at least most of the
common ones.

Please refer to the RFC for further information:
https://www.rfc-editor.org/rfc/rfc3986.txt

Signed-off-by: Quentin Schulz <foss@0leil.net>
2019-03-20 20:56:16 +00:00
Quentin Schulz
43fb5b8104 docs: fix a few English mistakes
Signed-off-by: Quentin Schulz <foss@0leil.net>
2019-03-08 19:48:30 +00:00
Adrien Beudin
dc332f0ea0 [fix] css 2019-03-05 21:45:37 +01:00
Adrien Beudin
262f945835 [fix] add css section for pictures-group 2019-03-05 19:44:24 +01:00
Bram
5b693ca332
Merge pull request #88 from NicolasBrosse/patch-1
update README.md
2018-12-06 18:17:27 +01:00
Nicolas Brosse
369356efe3
update README.md
Tiny grammar error.
2018-12-05 16:18:05 +01:00