- 11
- 3 367
Jean-Philippe Trinh
France
Приєднався 21 тра 2020
Hi! I'm a WeWeb freelancer.
Nested components in WeWeb
Learn how to create powerful, reusable nested components for your web applications made in WeWeb. In this tutorial, we'll walk through building a card component with customizable buttons, showing you how to:
0:00 Intro
0:38 Basic button component overview
1:22 Creating a card component
2:16 Customize nested instances independently
6:50 Adding custom actions
8:23 Creating custom triggers
9:15 Implementing event emission
10:53 Testing different instances
12:36 Outro
Nested components are a perfect method to build more maintainable and scalable web applications!
Try WeWeb now: t.ly/YEPDr
I used Tella to record these videos: tella.tv/?via=jptrinh
Visit my portfolio: jptrinh.com/
Get in touch: jptrinhh
0:00 Intro
0:38 Basic button component overview
1:22 Creating a card component
2:16 Customize nested instances independently
6:50 Adding custom actions
8:23 Creating custom triggers
9:15 Implementing event emission
10:53 Testing different instances
12:36 Outro
Nested components are a perfect method to build more maintainable and scalable web applications!
Try WeWeb now: t.ly/YEPDr
I used Tella to record these videos: tella.tv/?via=jptrinh
Visit my portfolio: jptrinh.com/
Get in touch: jptrinhh
Переглядів: 75
Відео
How to add keyboard shortcuts in WeWeb
Переглядів 1192 місяці тому
Keyboard shortcuts allow your users to navigate and control your application faster. In this video, I'm showing you how to implement custom keyboard shortcuts in your WeWeb application. 00:00 Intro 00:35 Toggling the color theme 07:10 Display a quick search bar 09:46 Outro Try WeWeb now: t.ly/YEPDr I used Tella to record these videos: tella.tv/?via=jptrinh Visit my portfolio: jptrinh.com/ Get i...
How to make a section fill the page in WeWeb
Переглядів 2097 місяців тому
In this video, I'll guide you through how to fill the entire page with your section to avoid awkward spacing issues at the bottom. We are going to use the CSS calc() function to adjust the section's min-height, taking into account the height of your header. developer.mozilla.org/en-US/docs/Web/CSS/calc 00:00 Intro 00:10 App background 00:23 Min-height property 00:50 calc() 01:40 Get the height ...
How to implement a signature pad in WeWeb
Переглядів 3947 місяців тому
A signature pad allows your users to sign official document right inside your application. In this video, I'm showing you how to implement the signature_pad library (made by Szymon Nowak) in WeWeb. 00:00 Intro 00:32 Canvas element 01:37 NPM Plugin 01:53 Initialize the instance 07:06 Customize the stroke 07:44 Get the signature 10:35 Clear the pad 11:30 Event Listener 13:44 Outro github.com/szim...
Memory game in WeWeb
Переглядів 1708 місяців тому
I created a memory card game in WeWeb. In this video, I cover how I made a flipping card component, how to generate them randomly, keeping a score, adding animation and micro-interaction, and how to implement the gsap library. 0:00 How i t works 1:13 Generating the cards 1:38 Card component 2:11 Card rotation 3:19 Slide in animation with GSAP 4:47 Compare cards 5:29 Outro Try WeWeb now: t.ly/YE...
How to create a Masonry grid in WeWeb
Переглядів 2769 місяців тому
A Masonry grid is a great way to showcase images of different aspect ratio. In this video, I take you through how to create one in WeWeb. 00:00 Why use a Masonry grid 00:25 Install NPM plugin and MiniMasonry package 01:05 Prepare the layout 01:57 Initialize the instance 03:54 Remove side gutters 04:22 Editor bug 04:40 Outro spope.github.io/MiniMasonry.js/ Try WeWeb now: t.ly/YEPDr Visit my port...
Create a checkbox component in WeWeb
Переглядів 2799 місяців тому
Reusable components are a great to speed up your speed in WeWeb. But when you create one out of a functional component like a checkbox, you lose access to the variable that was exposed. In this video, we are going to see how to create a reusable checkbox and how to have access to its value. 0:08 Checkbox component standalone 3:30 Checkbox component in a collection Try WeWeb now: t.ly/YEPDr Visi...
Build your first component in WeWeb
Переглядів 5289 місяців тому
In this video, I’m taking you through the creation of a component in WeWeb. Components are reusable elements to help you build your web application better and faster. WeWeb documentation: docs.weweb.io/components/intro-to-components.html 00:00 What are components? 1:22 The Design 2:10 Building the card 3:36 Creating the component 5:09 Text properties 6:53 Number property 7:47 Image property 8:3...
How to use the grid property in WeWeb
Переглядів 55110 місяців тому
The grid display is a great way to create beautifully structured lists and layouts that are both responsive and visually appealing. In this video, I'm showing you how to use that display property in WeWeb. CSS Grid Guide: coderpad.io/blog/development/a-very-very-in-depth-guide-on-css-grid/ Try WeWeb now: t.ly/YEPDr Visit my portfolio: jptrinh.com/ Get in touch: jptrinhh
How to create Airbnb page layout in WeWeb
Переглядів 38410 місяців тому
Airbnb layout is a great way to list a collection of houses while having the map on the right. This video is a walkthrough of how to reproduce this structure in WeWeb. Try WeWeb now: t.ly/YEPDr Visit my portfolio: jptrinh.com/ Get in touch: jptrinhh
How to create a Skeleton loader in WeWeb
Переглядів 49010 місяців тому
A skeleton is a component to show that the content is loading. In WeWeb, you can add these component when a collection is fetching so that the user knows that something is cooking behind the scene! Snippets used in the tutorial: doc.jptrinh.com/weweb-tutorials/skeleton-loader Try WeWeb now: t.ly/YEPDr Visit my portfolio: jptrinh.com/ Get in touch: jptrinhh
It blows my mind that you don't have more subscribers - keep at it!
Thanks a lot, I will do my best!
This is great! I wasn't able to find anything like this elsewhere and it is a great way to get some structure on my site!
great video. Is that possible to use components inside components ? If so, it would be great to have a vid 👌
Thanks Matt! Yes it's possible. There are 2 ways of doing that depending on the use case: include it directly in your main component, or use dropzones. I can cover that in a future video :)
@@jptrinhh very interested to see that in a future video :)
Bonjour Jean-Philippe et merci pour cette vidéo qui m'a grandement aidé sur mon projet. Cependant j'ai une question concernant l'élément "text" de chaque checkbox. Je n'arrive pas à binder la valeur textuelle issue de mon tableau d'objet, chaque objet contient un "material" qui correspond à une matière et un "status" true ou false. J'aimerais que chaque checkbox ait en valeur texte, un material mais quand j'essaye cela m'affiche tous les material de mon tableau sur ma checkbox et pour chacune d'entres elles (checkox 1 : tous les materials, checkbox 2 : tous les materials etc...). Aurais tu stp une astuce pour y arriver ? Merci encore ;)
J'ai trouvé ! Il faut juste ajouté une flexbox supplémentaire. Donc 1 flexbox avec un array bind dessus. Une flexbox qui contient les checkbox component et l'élément text. Ensuite ils suffit de binder la data sur l'élément text et de display none le texte initial de la checkbox
J'ai du mal à tout comprendre mais content que tu ais pu trouver la solution :) Desfois il suffit de binder le bon objet et potentiellement aller chercher des éléments un peu nesté
@@jptrinhh En gros mon layout était comme dans ta vidéo : [ flexbox > [ checkbox-component] ] et j'essayais de bind une data de mon tableau sur le texte qui est par défaut "Checkbox" (dans le composant checkbox). J'ai ajouté une flexbox qui contient le checkbox-component et un élément texte comme ceci dans mon layout : [ 1ere flexbox > [ 2ieme flexbox > [ checkbox-component ] + [ text] ] ] Grace à cette structure j'ai pu récupérer la data de mon tableau pour la bind sur mon élément texte, puis j'ai caché le texte par défaut contenu dans le composant checkbox. J'espère que je suis plus clair que dans mon 1er commentaire, j'avoue avoir du mal à m'exprimer par moment ^^* En tout cas merci à toi, bonne continuation ;)
@@ThomAtome3D Ah yes, je viens de voir en plus ton post sur le forum WeWeb :) Merci pour le partage de la solution et bon projet !
@@jptrinhh Yes ;) c'est normal, merci et bonne continuation
Also what happens when quoting the NPM and it says "{empty}" next to it?
Hi Jean-Philippe.. does this work we CMS content?
Many thanks for this Jean-Philippe! I was struggling with it
Many thanks!
showww
Good morning, my friend. Could you make a video teaching how to create a fully functional dropdown component? The dropdown from WeWeb has some significant limitations... One of the issues I face is that their native component doesn't have a variable to close the dropdown, and many times it goes off the screen. 😟
Great suggestion! When it goes off the screen, do you mean for example, if the component is placed at the edge of the page, then the content that is revealed can go out of the screen?
@@jptrinhh I mean, for example, if I have a table that fills my entire screen with 16 rows, the rows further down that have dropdowns, when I open them, my screen will increase in size and create a scroll. Additionally, the dropdowns will go off the screen if I remove the scroll.
JP, thanks for the video, you do some interesting stuff. It would be great if your voice was louder.
Thanks for the feedback! I will improve that on the next ones :)
Incredible 🎉
The Sticky value is really handy for these kinds of layouts. Good job buddy!
Good tutorial JP! Maybe I'll try WeWeb somedays, it looks cool! :D
You know where to find me if you have any questions :)
Would love to see the stuff you post on Twitter as videos here! Great work!
Thank you! What would you like to see? How to reproduce the components? Or in-depth demos?
So glad you doing tutorials Ive seeing your work on X and I know learning from you will take my weweb dev to next level
Thank you for your support! Let me know if there is anything you would like to see
Omg keep making videos please. Not a lot of good WeWeb content, and their own content is not great unless you want to watch 50 hours of Office Hours videos hoping to stumble across what you're looking for. I'm trying to learn grids and responsive layout techniques currently and your video is super helpful. EDIT: (I would LOVE if you would do a video about responsive data heavy tables where the columns extend past the visible screen space. That's my major challenge right now. We build data heavy internal business applications, and tables are critical and the biggest challenge so far)
Thank you for your comment, it keeps me motivated to share what I learn! Tables are often used, and hard to design/implement when there are a lot of data. I will add that to my list!
@@jptrinhh I've got everything working now, except... And this is so silly... The row border lines and header column bgs stop before the end of the table when you scroll the table to the right. Tried for hours with Claude and ChatGPT and couldn't figure it out lol.
@@SmashTheCache Huum hard to tell. You can ping me on X or the WeWeb forum with screenshots if you want!
Amazing job! Make it look so easy!
This is so helpful!!! Thanks Jean!!
I'm glad you found that helpful!
Lovely man, keep going!
Thanks bro! 🔥
Amazing JP ! Really love your example! I've got a question : you have <style> element. Why do you need this element in your section? Thanks a lot for your work. I'm a fan!
Thank you Milan!! It was to add the line-clamp property to the card description. So when the description has over 3 lines, the rest would be hidden behind ellipses (you can see that at the end after binding the collection). I had to add that to in a style tag because of the wrappers WeWeb generates around elements.
Awesome job JP! What about when building a component and you lose the ability to scroll? That's my current struggle.
@@jptrinhh all right thanks JP !!
Thank you Anthony! Hard to tell without more element. I think you can seek help in the WeWeb Community forum with more details (you can tag me there too if you want 🙂)! @@anthonysmith1213
Keep these videos coming, Jean!! I'm lovin' them.
Beautiful! Congrats on the amazing work JP 👏👏👏
Thank you for your support!
Great video Jean! What software did you use the record this video and make these great transitions and zoom on screen?
Thank you! I used Screen Studio for recording.
Love it! Thank you for putting this together, JP. Great work as always 😀👏