Beyond Dark Mode (Read Article)
Creating more than one color scheme with Tailwind and Next.js
Creating more than one color scheme with Tailwind and Next.js
Creating a reliable link component for any type of url
| remote: npm ERR! install Couldn't read dependencies | |
| remote: npm ERR! Error: ENOENT, open '/var/sites/twentyoverten.com/templates/t1/package.json' | |
| remote: npm ERR! If you need help, you may report this log at: | |
| remote: npm ERR! <http://github.com/isaacs/npm/issues> | |
| remote: npm ERR! or email it to: | |
| remote: npm ERR! <[email protected]> | |
| remote: | |
| remote: npm ERR! System Linux 3.2.0-23-virtual | |
| remote: npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" | |
| remote: npm ERR! cwd /var/sites/twentyoverten.com/templates/t1 |
| $('.add-coupon').each(function() { | |
| $(this).click(function() { | |
| var couponVal = $('.coupon', this).val(); | |
| $('span', this).text('Applying'); | |
| $.getJSON('/check-coupon', { | |
| coupon: couponVal | |
| }, function(data) { | |
| // Invalid | |
| if (!data.valid) { |
| app.get('/check-coupon', function(req, res, next) { | |
| stripe.coupons.retrieve(req.body.coupon, function(err, coupon) { | |
| if (err) return res.json({ valid: false }); | |
| res.json({ valid: true }); | |
| }) | |
| }) |
| /*-----Scaffolding-----*/ | |
| .header { | |
| background: #2d2d2d; | |
| } | |
| .content { | |
| background: #2d2d2d; | |
| } |