Giter VIP home page Giter VIP logo

Comments (25)

gauravmahto avatar gauravmahto commented on May 28, 2024 1

@peterpeterparker I would like to contribute. Could you please guide me?
P.S. Your article on dev.to inspired me to contribute.

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024 1

OK. Cool!
I'll start to look into this. If I need any further help, I guess I would ping you?

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024 1

@gauravmahto you too! thx for the PR 👍

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024 1

Ohh, now I see that, let me take care of that.

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024 1

Thx a lot for the effort! Will have a look as told above.

Happy weekend

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024 1

Thx you for the PR @gauravmahto, I've now merged it 😃👍

After merge I allowed my self to make several changes, I hope you don't mind. Summarized these are the following:

  • Simplified the layout which has for effect to have less CSS. Used a grid and centered the countdown. I also added some more CSS variables as I was already there

  • I converted the "Hours", "Minutes" and "Seconds" text to slots as you might want to display there in another languages

  • I added some missing slots (background, actions and notes) which are default slots of the core and renamed the package and component file name. Exactly the kind of thing I should document to help contributors to create their own templates, thx for pointing this out ;)

  • Refactored the code and notably the render function to avoid to have multiples times the same one and also converted some methods to promises

  • Maybe the most important change: instead of parsing (innerHTML = ...) the values to display I converted the mHours, mMinutes and mSeconds to state. It gives the advantages to avoid repaint problem (using innterHtml values might get lost) and also has for side effect to shorten the code

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024 1

@peterpeterparker Thanks! for taking care of the issues. :)
P.S. This was my very first Stencil project. Having said that, I'll take a look into what you've changed which would really help me better understand the contracts.

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024 1

@gauravmahto thx for the positive feedback, really happy to hear that and it's super cool that this feature makes you then discover stencil 😃

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024

@gauravmahto excellent 👍

sure I could and I think we should also use the learning to create a small documentation to explain how additional templates could be created, that would be neat

Furthermore the above description, what information are you missing to get started?

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024

@peterpeterparker Thanks! I was crawling through the sources and it looks like I would have to use stencil to create the required web component?
By documentation, you mean to create some markdown file which will explain something like creating a basic 'Hello world!' core component?

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024

Yes, all our frontend apps and web components are developed with StencilJS

It's what I meant yes, but I could take care of the documentation, no worries about that

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024

Sure 👍

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024

@peterpeterparker Hey, I'm done with the initial work on the countdown slide. How would you like to review my changes? Should I create a pull request?

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024

Cool!

A PR sounds fine to me. If it's a very first draft I should review, you could also ping me with an url to your fork. As you rather like :)

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024

Great. Since, this is a draft version, sharing the link sounds fine to me.

gauravmahto@0c1be2d

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024

@gauravmahto haha looks cool and despite my small description, you exactly understood my idea 👍

only one important thing, which I may have mentioned way earlier, sorry for that, could you remove gsap or the lato reference please?

as much as possible, our components should remain agnostic. it makes the things a bit more challenging I'm agree, but that's the cool part of it.

maybe instead of this we could simply display a text, that would be enough for a first version and add some CSS4 variables to let user styles it. but I'm open to any other any idea which doesn't include a reference on a third party library.

if you would not have time, no worries, I'm already super happy with your contribution. I could take over and replace the display, but of course if you have time, that's super!

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024

@peterpeterparker Let me see what I can do. Also, what kind of CSS4 vars should be added? I guess vars for background and foreground would be sufficient? Also, most probably I'll be looking into this during the weekend.

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024

@gauravmahto probably background, foreground and maybe font-size?

we could always add more variables, no need to add to much at the startup

coolio

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024

@peterpeterparker Hey, Hi. I've removed the gsap module and added the CSS custom properties for font-size, clock face background and foreground colours.
Should I create a pull request? Here is the link for comparison master...gauravmahto:master

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024

@gauravmahto wow super cool 👍

sure go for a PR 🚀

p.s.: I'm off for the day in a couple of minutes, will try to review the PR tomorrow or begin of next week. Thx a lot

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024

Thanks! Here is the PR - #216

BTW, wishing you a nice weekend. :)

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024

@gauravmahto before I have a look/merge your PR. could you rebase/sync it with master? that would help for the review, thx.

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024

@peterpeterparker I think I have already done the rebase. Or maybe I'm mistaken?

from deckdeckgo.

peterpeterparker avatar peterpeterparker commented on May 28, 2024

@gauravmahto look like not. for example it push outdated modifications in README or package.json (the component highlight-code has been updated with new features in master)

monorepo...

from deckdeckgo.

gauravmahto avatar gauravmahto commented on May 28, 2024

There was something odd with my repo. So, I've created another PR and closed the other one.

from deckdeckgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.