summaryrefslogtreecommitdiffstats
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
...
* chore(toolbar): close modals on click/focus outsideArmand Philippot2022-01-143-16/+94
|
* fix: remove focus on route changeArmand Philippot2022-01-131-1/+10
|
* chore: add feed formats to document headArmand Philippot2022-01-131-0/+22
|
* fix(toc): render on each route change and exclude aside titlesArmand Philippot2022-01-111-3/+0
| | | | | | On subject pages for example, the table of contents was not updated on route change. So I added router.asPath as dependency of useEffect. I also changed the query to exclude all titles in aside (ToC, widgets).
* fix(widget): remove items limit for ThematicsList and TopicsListArmand Philippot2022-01-112-10/+2
| | | | | | | By default WPGraphQL gets only the 10 first items if first is not specified. So some subjects was not displayed. I also add an order by title to the query. So I no longer need to sort arrays inside components.
* chore(widget): add a related thematics widgetArmand Philippot2022-01-113-1/+36
|
* chore(widget): pass title to TopicsList as parameterArmand Philippot2022-01-111-3/+12
| | | | | I also choose to no display the current topic in the list if the current page is a subject.
* chore(widget): add a related topics widgetArmand Philippot2022-01-116-9/+33
|
* chore(meta): display subjects instead of thematics on Thematic pagesArmand Philippot2022-01-112-3/+29
|
* chore(widgets): pass title to thematics list as parameterArmand Philippot2022-01-111-4/+12
| | | | | If the current page is a thematic, I also choose to not display the current thematic in the list.
* fix(back-to-top): set translate with percentageArmand Philippot2022-01-111-6/+5
| | | | | With px/rem, on zoom the arrow head is not positionned correctly. Using percentage fix this issue.
* refactor(sidebar): use a component to avoid styles repetitionArmand Philippot2022-01-115-10/+75
| | | | | | I also fix some overflow/sticky issues. I have to set overflow auto only when there is no button-like links otherwise, with translate, the button is cropped on hover.
* chore: add PDF and image format to CV pageArmand Philippot2022-01-103-1/+51
|
* chore: add a social media widget on contact and cv pagesArmand Philippot2022-01-103-1/+121
|
* refactor(aside): move width from aside to sharing widgetArmand Philippot2022-01-103-1/+3
| | | | Only the Sharing widget needs the "min-content" width.
* refactor(styles): use css grid to stylize post headerArmand Philippot2022-01-102-13/+35
| | | | | By using pseudo elements instead of background with padding, it is easier to control the look of posts header.
* refactor(styles): use compose to declare grid layouts onceArmand Philippot2022-01-104-15/+7
| | | | | | | I'm using same grid layouts in multiple places. To avoid maintenance issue, I think it is better to declare the grid once and to import its declaration where it is needed. Thanks to CSS modules, I can use compose to do that.
* refactor: improve button-like links stylesArmand Philippot2022-01-086-63/+29
| | | | | | | The goal was to replace the "read more articles about" links with button-like links to keep a certain consistence between buttons. The hasIcon variable was useless so I update some components and especially the back to top link.
* chore: ensure 100vh height and improve Header/Footer stylesArmand Philippot2022-01-084-4/+17
|
* chore: update homepage stylesArmand Philippot2022-01-081-1/+5
|
* chore: adjust h2 stylesArmand Philippot2022-01-082-1/+6
|
* chore(widget): improve recent posts stylesArmand Philippot2022-01-081-5/+36
|
* chore: improve search box and add button interactions on hover/focusArmand Philippot2022-01-075-17/+90
|
* chore: add article header stylesArmand Philippot2022-01-074-16/+67
|
* chore: add main nav link statesArmand Philippot2022-01-072-4/+140
|
* chore: improve comment sectionArmand Philippot2022-01-0710-67/+136
| | | | I also adjust styles for all forms and primary buttons.
* fix: check for undefined meta in post headerArmand Philippot2022-01-071-1/+11
| | | | | The meta object can exists but its properties can be undefined. So I don't want to display the dl if all properties are undefined.
* chore: add a widget to list all blog topicsArmand Philippot2022-01-073-1/+44
|
* chore: add a widget to list all blog thematicsArmand Philippot2022-01-073-1/+45
|
* chore: move Main grid to its childrenArmand Philippot2022-01-069-48/+73
| | | | This way I can use full width background for some blocks.
* refactor: reuse PostHeader for all pages except homepageArmand Philippot2022-01-061-5/+7
|
* refactor: reuse PostMeta components on single articles/pagesArmand Philippot2022-01-064-112/+138
|
* chore: replace theme button with settingsArmand Philippot2022-01-0519-173/+137
| | | | | I plan to add more user settings so theme options should be inside settings.
* refactor: move Prism hook from layout to article pageArmand Philippot2022-01-041-17/+1
| | | | | I will not use Prism elsewhere, so it makes more sense to call Prism only inside articles.
* chore: add a recent posts widget to the homepageArmand Philippot2022-01-043-0/+129
|
* refactor(sharing): avoid nested template literalsArmand Philippot2022-01-046-28/+29
| | | | | This improves readability. I also rename a variable to avoid duplicate between global scope and useEffect scope.
* chore: add a back to top linkArmand Philippot2022-01-043-1/+107
|
* chore(icons): add direction to arrow icon and split pathArmand Philippot2022-01-041-3/+66
| | | | I can now animate separatly the arrow head and the arrow body.
* chore(prism): replace Coldark theme with a custom themeArmand Philippot2022-01-031-1/+0
|
* chore: add line numbers to all prism blocks and translate copy buttonArmand Philippot2022-01-031-1/+12
|
* chore: display subjects list under articlesArmand Philippot2022-01-032-3/+60
|
* chore: add prismjs for syntax highlightingArmand Philippot2021-12-301-1/+7
|
* chore: make year sticky in posts listArmand Philippot2021-12-292-4/+25
|
* chore: replace read more link with ButtonLink componentArmand Philippot2021-12-299-79/+106
| | | | | I also fix the load more button position since I removed the margin auto.
* chore: add a button-like component for linksArmand Philippot2021-12-293-1/+86
|
* chore: add a theme toggleArmand Philippot2021-12-2715-9/+306
| | | | Dark theme is not implemented yet.
* chore: display comments as a treeArmand Philippot2021-12-272-7/+19
| | | | | | I was displaying comments without the parent/children link. Now, each child is displayed under its parent. I also remove the reply button for children to avoid too many child depth.
* chore: add a skip to content linkArmand Philippot2021-12-222-1/+3
|
* chore: replace svg imports with componentsArmand Philippot2021-12-2218-28/+498
| | | | It allows me to control the colors of each SVG paths.
* fix: use state to define hostname in sharing componentArmand Philippot2021-12-211-2/+3
| | | | | | The window is not available during build, so an error occured. By using React hooks to set the hostname once in the browser, it works as expected.