Create "Lights Out" Game - Phoenix LiveView Tutorial [Elixir Language]

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 21

  • @Punzilani
    @Punzilani Рік тому

    in the video you just mentioned that you updated the css in order to color the buttons when clicked 07:52. how exactly did you go about doing that.

  • @jamesdean3787
    @jamesdean3787 2 роки тому +3

    great job dude. I learned a ton.

  • @SowmiyaT-qg4yu
    @SowmiyaT-qg4yu Рік тому +1

    Thanks For Your Video I am The Beginner of the Phoenix Its Very Useful Me

    • @headwayio
      @headwayio  Рік тому

      Good to hear! Happy to help.

  • @chuckirvineks
    @chuckirvineks 2 роки тому +3

    In the video you said that you modified the css to toggle the background color. I don't know how you did this. Can you explain?

    • @hixsonj
      @hixsonj 2 роки тому +2

      Sure. I added a simple selector in app.css which targets “button[data-on]”. When the LiveView state flips to true for the button that style takes over.

  • @midewestmond9442
    @midewestmond9442 Рік тому

    Great video dude love it ❤

  • @shinjisr
    @shinjisr Рік тому +1

    This is amazing! How do you auto-close the HTML tags? Could you please share your neovim config?

    • @headwayio
      @headwayio  Рік тому

      Hey thanks! We’ll have Jesse get back to you with an answer.

  • @shubhisingh6158
    @shubhisingh6158 Рік тому

    I've tried to implement this game, but it doesn't show "You won" when the game is completed, how can I figure it out?

    • @hixsonj
      @hixsonj Рік тому +1

      Hi Shubhi, I talk about this a bit around 12:50. The key is to make sure you have a value for "win" in your socket assigns. That way it can be referenced in the template and in other event handler functions. In your template you can use standard EEx logic blocks like You won or the more compact You won Let me know if you need more help!

    • @shubhisingh6158
      @shubhisingh6158 Рік тому

      @@hixsonj thanks alot! I'll let you know if I need some more guidance on this topic, and thanks again for helping me out :))

  • @chuckirvineks
    @chuckirvineks 2 роки тому +4

    Since your tutorial is new, it would have been useful to have shown it for Phoenix 1.7. As far as I can see there aren't any tutorial for this yet.

    • @headwayio
      @headwayio  2 роки тому

      Thanks for the feedback Charles. Jesse should be able to comment on this next week. What about 1.7 would you have liked to see?

    • @chuckirvineks
      @chuckirvineks 2 роки тому +1

      @@headwayio 1.7 introduces a few changes that would by necessity alter the tutorial. For one thing, Tailwind comes pre-configured with 1.7, so that part of the video would ago away. I'm not positive, but I think layouts have changed a bit, which might also necessitate a tutorial change.

    • @hixsonj
      @hixsonj 2 роки тому +1

      Great feedback! You're right about Tailwind and yes there are some minor layout changes coming with 1.7. The majority of what we covered should still be applicable but maybe we can add a disclaimer to skip the Tailwind stuff after 1.7

  • @neilclay5835
    @neilclay5835 Рік тому +1

    Very powerful

  • @ThiagoRamosal
    @ThiagoRamosal 2 роки тому +1

    Hi, are you using what to auto complete your code? Awesome video btw.

    • @headwayio
      @headwayio  2 роки тому

      Great question, and thanks for the feedback! I'll connect with Jesse so he can jump in here and answer your question.

    • @hixsonj
      @hixsonj 2 роки тому

      Thanks, Thiago! The code completion is done with the Elixir LS plugin for Neovim (VS Code has a similar plugin). I also did some video cuts here and there to eliminate some unnecessary typing.