Jean-Philippe Trinh
Jean-Philippe Trinh
  • 11
  • 3 367
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
Переглядів: 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

КОМЕНТАРІ

  • @BertoHuste
    @BertoHuste День тому

    It blows my mind that you don't have more subscribers - keep at it!

    • @jptrinhh
      @jptrinhh 14 годин тому

      Thanks a lot, I will do my best!

  • @familiekontoen1955
    @familiekontoen1955 Місяць тому

    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!

  • @matt-apollodev
    @matt-apollodev Місяць тому

    great video. Is that possible to use components inside components ? If so, it would be great to have a vid 👌

    • @jptrinhh
      @jptrinhh Місяць тому

      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 :)

    • @matt-apollodev
      @matt-apollodev 28 днів тому

      @@jptrinhh very interested to see that in a future video :)

  • @ThomAtome3D
    @ThomAtome3D 3 місяці тому

    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 ;)

    • @ThomAtome3D
      @ThomAtome3D 3 місяці тому

      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

    • @jptrinhh
      @jptrinhh 3 місяці тому

      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é

    • @ThomAtome3D
      @ThomAtome3D 3 місяці тому

      @@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 ;)

    • @jptrinhh
      @jptrinhh 3 місяці тому

      @@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 !

    • @ThomAtome3D
      @ThomAtome3D 3 місяці тому

      @@jptrinhh Yes ;) c'est normal, merci et bonne continuation

  • @thulosechele701
    @thulosechele701 4 місяці тому

    Also what happens when quoting the NPM and it says "{empty}" next to it?

  • @thulosechele701
    @thulosechele701 4 місяці тому

    Hi Jean-Philippe.. does this work we CMS content?

  • @momuubranding7210
    @momuubranding7210 6 місяців тому

    Many thanks for this Jean-Philippe! I was struggling with it

  • @momuubranding7210
    @momuubranding7210 6 місяців тому

    Many thanks!

  • @arnaldozyl2008
    @arnaldozyl2008 7 місяців тому

    showww

  • @gabdev2891
    @gabdev2891 7 місяців тому

    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. 😟

    • @jptrinhh
      @jptrinhh 7 місяців тому

      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?

    • @gabdev2891
      @gabdev2891 7 місяців тому

      @@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.

  • @lqw34vdfmm
    @lqw34vdfmm 8 місяців тому

    JP, thanks for the video, you do some interesting stuff. It would be great if your voice was louder.

    • @jptrinhh
      @jptrinhh 8 місяців тому

      Thanks for the feedback! I will improve that on the next ones :)

  • @raphaelscottodiperta2116
    @raphaelscottodiperta2116 8 місяців тому

    Incredible 🎉

  • @djayoho
    @djayoho 8 місяців тому

    The Sticky value is really handy for these kinds of layouts. Good job buddy!

  • @djayoho
    @djayoho 8 місяців тому

    Good tutorial JP! Maybe I'll try WeWeb somedays, it looks cool! :D

    • @jptrinhh
      @jptrinhh 8 місяців тому

      You know where to find me if you have any questions :)

  • @micah9462
    @micah9462 8 місяців тому

    Would love to see the stuff you post on Twitter as videos here! Great work!

    • @jptrinhh
      @jptrinhh 8 місяців тому

      Thank you! What would you like to see? How to reproduce the components? Or in-depth demos?

  • @Noirteclabs
    @Noirteclabs 9 місяців тому

    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

    • @jptrinhh
      @jptrinhh 9 місяців тому

      Thank you for your support! Let me know if there is anything you would like to see

  • @SmashTheCache
    @SmashTheCache 10 місяців тому

    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)

    • @jptrinhh
      @jptrinhh 9 місяців тому

      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!

    • @SmashTheCache
      @SmashTheCache 9 місяців тому

      @@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.

    • @jptrinhh
      @jptrinhh 9 місяців тому

      @@SmashTheCache Huum hard to tell. You can ping me on X or the WeWeb forum with screenshots if you want!

  • @ericperu2811
    @ericperu2811 10 місяців тому

    Amazing job! Make it look so easy!

  • @adelanaofficial
    @adelanaofficial 10 місяців тому

    This is so helpful!!! Thanks Jean!!

    • @jptrinhh
      @jptrinhh 10 місяців тому

      I'm glad you found that helpful!

  • @brobroberto
    @brobroberto 10 місяців тому

    Lovely man, keep going!

    • @jptrinhh
      @jptrinhh 10 місяців тому

      Thanks bro! 🔥

  • @MilanBoisgard
    @MilanBoisgard 10 місяців тому

    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!

    • @jptrinhh
      @jptrinhh 10 місяців тому

      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.

    • @anthonysmith1213
      @anthonysmith1213 10 місяців тому

      Awesome job JP! What about when building a component and you lose the ability to scroll? That's my current struggle.

    • @MilanBoisgard
      @MilanBoisgard 10 місяців тому

      @@jptrinhh all right thanks JP !!

    • @jptrinhh
      @jptrinhh 10 місяців тому

      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

  • @adelanaofficial
    @adelanaofficial 10 місяців тому

    Keep these videos coming, Jean!! I'm lovin' them.

  • @weweb
    @weweb 10 місяців тому

    Beautiful! Congrats on the amazing work JP 👏👏👏

    • @jptrinhh
      @jptrinhh 10 місяців тому

      Thank you for your support!

  • @RenatoAsse
    @RenatoAsse 10 місяців тому

    Great video Jean! What software did you use the record this video and make these great transitions and zoom on screen?

    • @jptrinhh
      @jptrinhh 10 місяців тому

      Thank you! I used Screen Studio for recording.

  • @weweb
    @weweb 10 місяців тому

    Love it! Thank you for putting this together, JP. Great work as always 😀👏