Commit Graph

43 Commits

Author SHA1 Message Date
bdc305a77a Fix some responsive and style
All checks were successful
continuous-integration/drone/push Build is passing
- Fullscreen: center image + add a background color
- Carousel: don't cut informations
- Title location font size
- Style location line height
- Photo reveal effect
- Photo has now a transparent png
2020-04-04 20:35:09 +02:00
b80941a0df Temporarily disable the globe 2020-04-04 12:46:46 +02:00
37c5cb2c4e Bring back the sapper-noscroll attribute
All checks were successful
continuous-integration/drone/push Build is passing
Window scroll is now been triggered manually during the page transition and not automatically by Sapper
2020-04-04 11:46:17 +02:00
7e0d1e33fb ⚠️ Rework completely how transitions works
- Use Svelte/Sapper native if and transitions to show either the page content or the loader, then load each page animationIn
- Code is safe on SSR side, using process.browser on this if
- The <main> element is on position absolute to fade nicely the different pages
- Code cleaning
2020-04-03 23:02:17 +02:00
5a49bc7b5f Globe: Add country slug
Some checks failed
continuous-integration/drone/push Build is failing
2020-04-02 21:08:46 +02:00
2064885997 WIP Interactive globe from Nico's sources
- The globe is a bit small? Ability to control the max-min size potentially
- Is there a reason why `globe.update()` runs every second? Sounds like a lot of resources?
- Have the ability to control the `addEventListener` of the markers to do whatever (in this case, going to a route by clicking on a link with a sapper-noscroll attribute + changing the href attribute on click - the method `goto` from Sapper scrolls back to top / maybe something to fix with the current transition issues?)
- Edited in `./index.js`:
    1. Using the class as `export default WebglGlobe` instead of Window (as Svelte or Sapper doesn't likayt)
- Edited in `Camera.js`:
    1. Commented line 218: `e.preventDefault();` would cause this error: `[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>`
2020-04-02 20:59:40 +02:00
88186f479c Photo: Code optimization
All checks were successful
continuous-integration/drone/push Build is passing
- Avoid double declaration of sources
- Use class over an HTML tag for image reveal animation
2020-03-31 17:55:32 +02:00
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
3e6a35f78f Photo: Fix usage of same ID for transition 2020-03-29 19:20:48 +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
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
7d8285ac6d Photo: Fix number positioning and parallax effect
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-25 12:28:47 +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
29834a5b95 Fix some accessibility issues on links without text 2020-03-11 10:31:11 +01:00
debd9a41c1 Place: Add photo Transition In, Add Illustration system, Visual fixes
- Add a transition in on each photo component (scale down + fade in), TODO: Parallax on number
- Illustration takes two images and changes the source depending on the viewport size
2020-03-10 21:25:48 +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
debf8bb747 Avoid route change scroll when clicking on links
sapper-noscroll here for the rescue, keeps the scroll position and loads the new page content
2020-03-06 11:06:35 +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
905fbb3bfe Temporary Interactive globe 2020-03-02 22:25:10 +01:00
8a4faa616e Fix components imports
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-29 21:15:17 +01:00
faa16d1b16 Fix BEM misuse 2020-02-29 19:19:25 +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
62611a5559 Prefetch links on hover 2020-02-29 10:50:00 +01:00
4d8493e407 Credits: Add temporary globe at bottom 2020-02-29 10:47:01 +01:00
a73d9ff71c Tabs to spaces and code cleaning 2020-02-27 23:08:13 +01:00
e212829db5 Add a link with a translate transirion 2020-02-27 23:05:42 +01:00
ba36c9a8b6 Fix photos list and add currentPhotos store
Go from one object to two to avoid issues when using an object key
2020-02-26 15:59:44 +01:00
c9b1f63c64 Fix the locations list filters and add reveal transitions
Typically add a delay between two click (Limiter) to click again. Thanks Nico!
2020-02-26 15:56:22 +01:00
042440188e Add a credit page and make style reusable 2020-02-26 15:52:13 +01:00
afb087408c Optimize components
- Use class attribute over className
- Code cleaning
2020-02-26 15:49:56 +01:00
8ccdac64d3 Use Lazy Loading for photos 2020-02-20 19:01:54 +01:00
f1af0806f1 WIP for the locations list
Needs some fixes for the appearing items
2020-02-17 22:39:40 +01:00
615182d6fb Add parallax and reveal effects + performances on transitions 2020-02-17 22:38:51 +01:00
7c3d782260 Switcher: Add a link to homepage 2020-02-14 12:39:20 +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
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