Comments (25)
@peterpeterparker I would like to contribute. Could you please guide me?
P.S. Your article on dev.to inspired me to contribute.
from deckdeckgo.
OK. Cool!
I'll start to look into this. If I need any further help, I guess I would ping you?
from deckdeckgo.
@gauravmahto you too! thx for the PR 👍
from deckdeckgo.
Ohh, now I see that, let me take care of that.
from deckdeckgo.
Thx a lot for the effort! Will have a look as told above.
Happy weekend
from deckdeckgo.
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.
@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.
@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.
@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.
@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.
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.
Sure 👍
from deckdeckgo.
@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.
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.
Great. Since, this is a draft version, sharing the link sounds fine to me.
from deckdeckgo.
@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.
@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.
@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.
@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.
@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.
Thanks! Here is the PR - #216
BTW, wishing you a nice weekend. :)
from deckdeckgo.
@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.
@peterpeterparker I think I have already done the rebase. Or maybe I'm mistaken?
from deckdeckgo.
@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.
There was something odd with my repo. So, I've created another PR and closed the other one.
from deckdeckgo.
Related Issues (20)
- select deck with additional click on editor
- --deckgo-inline-editor-button-zindex HOT 5
- drr: Flexible positioning of the rotation anchor (top, left, right, bottom) HOT 4
- Question about positioning for inline editor menu HOT 5
- inline Editor in shadow dom: Does not work on iOS HOT 5
- feat(i18n): introduce Dutch as language option HOT 2
- docs(i18n): write down tone of voice for (future) translations
- highlight code fails when main language loads before required languages
- docs 👉 more features and ideas HOT 1
- Internet Computer blocker issues HOT 2
- Internet Computer features HOT 1
- graph patterns
- Zero-width space added to newlines HOT 3
- Questions HOT 1
- bug(a11y): announcement text lacks enough contrast HOT 1
- Long Lines in Code Highlighter Wrap to the Next Line. HOT 2
- is IOS detection would not work any more... HOT 3
- Maintain Aspect Ratio with DRR HOT 1
- [ DRR ] - it's possible to group elements? HOT 1
- lazy-img attributes img-height img-width don't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deckdeckgo.