Commit Graph

33 Commits

Author SHA1 Message Date
5ac5d6803f Use Destructuring variables to avoid repetitions
- Easier to read and write
- Also fixes fullscreen when leaving the viewer, my bad
2020-03-31 10:35:51 +02:00
2dc51a167a ⚠️ Use alias Rollup plugin to omit full imports
All checks were successful
continuous-integration/drone/push Build is passing
- Define entries (utils, animations, etc) in the Rollup config in order to omit the whole back path (../../) when importing a file
- Global revoleExtensions in the config (to avoid duplicates)
2020-03-30 23:53:01 +02:00
3b93e5e994 Fix error when leaving Viewer
The carousel would go to a photo that doesn't exists
2020-03-29 19:40:32 +02:00
86a38c8987 Carousel: Add rel attributes to controls
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-29 18:45:15 +02:00
ca07fe364e Viewer: Finally fix Carousel navigation depending on URL
- Instead of detecting every case using popState event or whatnot, used a Sapper page stores subscribe to go to the current photo from the URL param (findIndex in photos)
- No page transition when navigating between photos in Viewer, but runs In and Out
- Also shortened dispatches to direct value over an object
2020-03-29 18:13:27 +02:00
0ebd6b2601 Homepage: Enable Fullscreen on Carousel
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-28 22:09:27 +01:00
40811ab21e Carousel: Use swipe-listener for proper swipe gesture
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-28 20:02:02 +01:00
0635b65abf Add Fullscreen in viewer, Track links with Google Analytics, Use .env file
All checks were successful
continuous-integration/drone/push Build is passing
- Fullscreen is a component that watches a store value set by the Carousel component on a picture click
- Use a .env file for API and website related settings and informations
- Google Analytics is now in place, tracking each routes link and viewer photo change
2020-03-28 15:21:51 +01:00
3a4b1c2c85 Carousel: Fix dispatch default parameter value
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-27 11:23:04 +01:00
ebf1d99645 Code clean 2020-03-27 11:14:16 +01:00
f11185e940 Pagination dots: Add class as a prop
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-25 14:26:31 +01:00
498f3c0c17 Use a component for carousel dots
- Show 5 dots by default
- First and last one from current index are smaller
- Other ones are hidden
2020-03-25 12:19:48 +01:00
9965c9dec3 Rework API calls and each loops 2020-03-16 12:57:53 +01:00
8aa2524e7f Cleanup 2020-03-11 17:23:58 +01:00
8c9000a7c9 Carousel: Fix animation import
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-11 15:02:38 +01:00
cc0d6c1dcd Carousel: Use the counter as a component
- Add animation when changing photos
- Reusable and scalable to more than XX photos
2020-03-10 21:22:53 +01:00
a60a67a892 Scope animations 2020-03-10 21:18:25 +01:00
9ffc210c02 WIP Animations all over site
- Run a transition In for each page
- Involve a "loader" panel on page change
- TODO: tweak the animations and finish the concept
2020-03-06 14:22:51 +01:00
adf2563eb8 Reorganise functions, Use custom Format Date/Relative Time over dayjs 2020-03-06 14:14:17 +01:00
636685c86e Fix carousel buttons snap scroll when hovering areas
Buttons would trigger a nasty scroll due to the `.focus` on them on hover
2020-03-06 11:08:52 +01:00
d823f28054 Restructure utility files, Use a bundle.css to fix CSS issues
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-03 15:36:57 +01:00
804880a908 Temporary browsable Carousel on photo page
Stuff to be fixed/work on:
- Why is currentPhoto only triggered at the second photo and not the first?
- popState events (prev/next on browser) not working - detect URL changes and change the currentIndex
2020-03-02 22:30:36 +01:00
76c8c31c89 Readapt the misuse of BEM, Code organization
- -- is only for a modifier, not a child "child". Use master__child without the parent__ in it to make it more readable.
https://www.smashingmagazine.com/2016/06/battling-bem-extended-edition-common-problems-and-how-to-avoid-them/
- Redefine atom design components
2020-02-29 18:32:32 +01:00
fd45ce1731 Carousel: Rewrite some classes 2020-02-29 10:47:46 +01:00
3857223a54 Carousel: Working dots 2020-02-27 23:06:52 +01:00
fab89736ed Carousel: Add a transition on title when changing photo 2020-02-26 15:58:22 +01:00
afb087408c Optimize components
- Use class attribute over className
- Code cleaning
2020-02-26 15:49:56 +01:00
6fb6937c1a Create a functioning carousel
Thanks a million to Grafikart!
2020-02-17 22:33:44 +01:00
3badc0c1d6 Load different images sizes depending on the screen size
Use responsive images `<picture>` to load different sizes
2020-02-14 12:38:48 +01:00
450de171e6 Code optimization and fixes 2020-02-14 12:37:35 +01:00
dfcc3f9f7a Carousel: Create a bigger hover/click area for controls 2020-02-14 10:13:20 +01:00
ef23d90eb6 WIP 2020-02-13 22:24:28 +01:00
9b0c154f61 WIP React > Svelte
Put most of the developed design into Svelte
2020-02-11 15:09:32 +01:00