投稿時間:2022-12-30 02:10:55 RSSフィード2022-12-30 02:00 分まとめ(10件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT InfoQ Presentation: How SeatGeek Successfully Handle High Demand Ticket On-Sales https://www.infoq.com/presentations/ticketing-system-virtual-waiting-room/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global Presentation How SeatGeek Successfully Handle High Demand Ticket On SalesAnderson Parra Vitor Pellegrino discuss how their ticketing systems work and cover the virtual waiting room the primary component that allows them to handle high traffic ticket on sales By Anderson Parra Vitor Pellegrino 2022-12-29 16:05:00
海外TECH DEV Community Stylify CSS: Code your Remix website faster with CSS-like utilities https://dev.to/machy8/stylify-css-code-your-remix-website-faster-with-css-like-utilities-56op Stylify CSS Code your Remix website faster with CSS like utilities IntroductionStylify is a library that uses CSS like selectors to generate optimized utility first CSS based on what you write CSS like selectorsNo framework to studyLess time spent in docsMangled amp Extremely small CSSNo CSS purge neededComponents Variables Custom selectorsSplit CSS for pages layoutsAlso we have a page about what problems Stylify CSS solves and why you should give it a try InstallationBecause Remix doesn t have any plugins support yet we need to use Stylify CSS Bundler directly So let s install the stylify bundler package first using NPM or Yarn npm i D stylify bundleryarn add D stylify bundlerAlso for the watch mode we need to run two parallel tasks This can be solved using concurrently yarn add D concurrentlynpm i concurrentlyNext create a file for example stylify js const Bundler require stylify bundler const isDev process argv process argv length w const bundler new Bundler watchFiles isDev Optional compiler mangleSelectors isDev variables variables macros macros components components This bundles all CSS into one file You can configure the Bundler to bundle CSS for each page separately See bundler link belowbundler bundle files app tsx outputFile app styles stylify css When the bundler is configured add the path to Stylify CSS in the app root tsx import styles from styles stylify css export function links return rel stylesheet href styles And the last step is to add scripts into the package json scripts build yarn stylify build amp cross env NODE ENV production remix build dev concurrently yarn stylify dev cross env NODE ENV development remix dev stylify build node stylify js stylify dev node stylify js w Styling First PageIf we now edit the app routes index tsx and run the yarn dev command the CSS will be generated export default function Index return lt h className font size px font family arial color steelblue gt Stylify Remix lt h gt Defining Components and VariablesWe can also define Components and Variables Within a file where they are used or in a global config In the code below we use the configuration within a file where the component is used stylify variables blue steelblue stylify variablesstylify components title font size px font family arial color blue stylify components export default function Index return lt h className title gt Stylify Remix lt h gt Production CSS and JSX outputThe JSX and CSS can be mangled in production configured by the compiler mangleSelectors If so the output is even smaller and looks similar to the one below For the first example with utilitiesexport default function Index return For utilities from first example lt h className a b c gt Stylify Remix lt h gt a font size px b font family arial c color steelblue Stackblitz PlaygroundGo ahead and try Stylify CSS Remix on Stackblitz You can customize the build above however you want ConfigurationThe examples above don t include everything Stylify can do Define componentsAdd custom selectorsConfigure your macros like ml px for margin leftDefine custom screensYou can map nested files in the templateAnd a lot moreFeel free to check out the docs to learn more Let me know what you think If you like the idea let me know that by starring Stylify repo ️ I will be happy for any feedback The Stylify is still a new Library and there is a lot of space for improvement 2022-12-29 16:50:29
海外TECH DEV Community How to build a dropdown filter component with Tailwind CSS and Flowbite https://dev.to/themesberg/how-to-build-a-dropdown-filter-component-with-tailwind-css-and-flowbite-34cj How to build a dropdown filter component with Tailwind CSS and FlowbiteToday I am going to show you how you can build a dropdown filter component using Tailwind CSS and Flowbite to allow users to query through search results in your application based on checkbox and radio components Tailwind CSS is a popular utility first CSS framework that can help you get started building UI interfaces faster by using utility classes directly inside your HTML Flowbite is a popular component library built on top of Tailwind CSS featuring interactive components like navbars dropdowns and modals to speed up your development We are going to use both of these technologies today to build the following dropdown filter component The code will support dark mode responsive and you will also be able to position it anyhow you want using the Flowbite JS API and data attributes Let s get started Tailwind CSS Filter DropdownFirst of all make sure that you have both Tailwind CSS and Flowbite installed in your local project so that the utility classes and the data attributes that show and hide the dropdown will work Please follow the guides here Install Tailwind CSSInstall FlowbiteAfter you have them installed in your project let s now set up the basic HTML markup Let s first start by setting up the button that will trigger the dropdown lt button id dropdownDefault data dropdown toggle dropdown class text white bg primary hover bg primary focus ring focus outline none focus ring primary font medium rounded lg text sm px py text center inline flex items center dark bg primary dark hover bg primary dark focus ring primary type button gt Filter by category lt svg class w h ml aria hidden true fill none stroke currentColor viewBox xmlns gt lt path stroke linecap round stroke linejoin round stroke width d M l gt lt path gt lt svg gt lt button gt I ve already added in the utility classes and notice how we also set an id and a data dropdown toggle data attribute that will select and toggle the dropdown component as we click on the button Next let s actually code the dropdown content and the checkbox filter items and the form component that will be used to query through the search results lt Dropdown menu gt lt div id dropdown class z hidden w p bg white rounded lg shadow dark bg gray gt lt h class mb text sm font medium text gray dark text white gt Category lt h gt lt ul class space y text sm aria labelledby dropdownDefault gt lt li class flex items center gt lt input id apple type checkbox value class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for apple class ml text sm font medium text gray dark text gray gt Apple lt label gt lt li gt lt li class flex items center gt lt input id fitbit type checkbox value class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for fitbit class ml text sm font medium text gray dark text gray gt Fitbit lt label gt lt li gt lt li class flex items center gt lt input id dell type checkbox value class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for dell class ml text sm font medium text gray dark text gray gt Dell lt label gt lt li gt lt li class flex items center gt lt input id asus type checkbox value checked class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for asus class ml text sm font medium text gray dark text gray gt Asus lt label gt lt li gt lt li class flex items center gt lt input id logitech type checkbox value checked class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for logitech class ml text sm font medium text gray dark text gray gt Logitech lt label gt lt li gt lt li class flex items center gt lt input id msi type checkbox value checked class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for msi class ml text sm font medium text gray dark text gray gt MSI lt label gt lt li gt lt li class flex items center gt lt input id bosch type checkbox value checked class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for bosch class ml text sm font medium text gray dark text gray gt Bosch lt label gt lt li gt lt li class flex items center gt lt input id sony type checkbox value class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for sony class ml text sm font medium text gray dark text gray gt Sony lt label gt lt li gt lt li class flex items center gt lt input id samsung type checkbox value checked class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for samsung class ml text sm font medium text gray dark text gray gt Samsung lt label gt lt li gt lt li class flex items center gt lt input id canon type checkbox value class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for canon class ml text sm font medium text gray dark text gray gt Canon lt label gt lt li gt lt li class flex items center gt lt input id microsoft type checkbox value class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for microsoft class ml text sm font medium text gray dark text gray gt Microsoft lt label gt lt li gt lt li class flex items center gt lt input id razor type checkbox value class w h bg gray border gray rounded text primary focus ring primary dark focus ring primary dark ring offset gray focus ring dark bg gray dark border gray gt lt label for razor class ml text sm font medium text gray dark text gray gt Razor lt label gt lt li gt lt ul gt lt div gt lt div gt After putting these together make sure that you have Flowbite s JS file included somewhere in your HTML template so that the toggle will work If you turn on dark mode with Tailwind CSS the component s appearance will automatically switch More examplesIf you want to check out more examples of dropdown filter components you can check out the full collection on the Flowbite website Advanced filter by keywordsSource code and preview Filter by categorySource code and preview Filter by propertiesSource code and previewYou can view all of the Tailwind CSS Filters examples here CreditsThis resource could not have been done without the open source frameworks and libraries Tailwind CSSFlowbiteFlowbite BlocksTailwind CSS Filter 2022-12-29 16:26:17
海外TECH DEV Community The Benefits of Using CSS Preprocessors https://dev.to/omerwow/the-benefits-of-using-css-preprocessors-1ldl The Benefits of Using CSS PreprocessorsIn this blog post we ll take a detailed look at each of these benefits and see how using a CSS preprocessor can help make your life as a web developer easier What is a CSS preprocessor A CSS preprocessor is a program that lets you generate CSS from the preprocessor s own unique syntax There are many different CSS preprocessors available such as Less Sass and PostCSS Each preprocessor has its own syntax and features For example Less has features such as variables and mix ins while Sass has features such as nesting and partials What are the benefits of using a CSS preprocessor There are many benefits to using a CSS preprocessor One benefit is convenience With a CSS preprocessor you can write your CSS in the preprocessor s syntax which can be more convenient than writing plain CSS Another benefit is efficiency A CSS preprocessor can help you be more efficient in your CSS development by allowing you to use features such as variables and mix ins CSS preprocessors can also be used to improve the organization of CSS code They can help to keep code DRY Don t Repeat Yourself by allowing the reuse of code snippets Preprocessors can also help to make code more readable by adding comments and using variables CSS preprocessors can help with cross browser compatibility issues by providing a way to test code in different browsers Preprocessors can also automate vendor prefixes for CSS properties Time saving featuresOne of the biggest benefits of using a CSS preprocessor is the time saving features it offers For example you can use mix ins to create groups of CSS declarations that you can reuse throughout your stylesheet This is especially handy when you want to apply a certain style to multiple elements Nesting is another time saving feature offered by some preprocessors This lets you write your CSS in a more structured way which can be easier to read and maintain The ability to use features that are not yet supported by all browsersAnother great benefit of using a CSS preprocessor is that it gives you the ability to use features that are not yet supported by all browsers For example with Sass you can use the parent selector which is not yet supported by all browsers This means that you can write your CSS using these new features and the preprocessor will take care of making sure that the correct code is generated for older browsers that don t support them This feature is similar to JS and TS transpilation which lets you use the latest JS features even if they are unsupported in all browsers A large community of users and developersFinally another big advantage of using a CSS preprocessor is the large community of users and developers who can offer support and advice If you re ever stuck or need help with something chances are there s someone out there who can help you Preprocessors such as Sass and Less have been around for many years and have been used on some big projects by some very experienced developers This means there s a wealth of knowledge and experience to draw from if you ever need it There s no doubt that CSS preprocessors have a lot of benefits They can make your code more maintainable and easier to read help you use CSS features that are not yet supported by all browsers and make it easier to share code between projects However at the end of the day it s up to you whether or not you want to use a CSS preprocessor If you re happy with the way your CSS is currently written there s no need to switch things up But if you re looking for a way to make your CSS development workflow easier a preprocessor may be worth considering Star our Github repo and join the discussion in our Discord channel to help us make BLST even better Test your API for free now at BLST 2022-12-29 16:02:45
Apple AppleInsider - Frontpage News New York passes functionally toothless Right to Repair bill https://appleinsider.com/articles/22/12/29/new-york-passes-functionally-toothless-right-to-repair-bill?utm_medium=rss New York passes functionally toothless Right to Repair billNew York is the first US state to pass a Right to Repair bill but it has been watered down to effectively make it worthless for consumers Apple Repair ProgramFollowing its passage through the New York State Senate in New York has now officially passed an electronics Right to Repair bill It will concern electronic devices with certain exceptions that are sold for the first time in New York from July Read more 2022-12-29 16:32:35
Apple AppleInsider - Frontpage News Apple Watch sensor has racial bias, claims new lawsuit https://appleinsider.com/articles/22/12/27/apple-watch-sensor-has-racial-bias-claims-new-lawsuit?utm_medium=rss Apple Watch sensor has racial bias claims new lawsuitA new class action lawsuit against Apple alleges that the Apple Watch blood oxygen sensor is racially biased against people with dark skin tones Blood oxygen sensorPlaintiff Alex Morales says he purchased an Apple Watch between and He says that he was aware that the device has pulse oximetry features and believed it did this without regard to skin tone Read more 2022-12-29 16:41:30
海外科学 NYT > Science SpaceX’s Launch Control Room: 3 Rocket Missions in 31 Hours https://www.nytimes.com/2022/12/29/science/spacex-launch-mission-control.html SpaceX s Launch Control Room Rocket Missions in HoursA reporter got an inside look at SpaceX s attempt to launch and land three rockets in less than two days in October part of the company s bid to make spaceflight appear almost routine 2022-12-29 16:18:18
海外科学 NYT > Science As Covid-19 Continues to Spread, So Does Misinformation About It https://www.nytimes.com/2022/12/28/technology/covid-misinformation-online.html itdoctors 2022-12-29 16:03:19
ニュース BBC News - Home EU calls screening of travellers from China 'unjustified' https://www.bbc.co.uk/news/world-europe-64119080?at_medium=RSS&at_campaign=KARANGA china 2022-12-29 16:24:13
北海道 北海道新聞 旭川で線路内に乗用車が侵入 JR宗谷線、4本運休 https://www.hokkaido-np.co.jp/article/782236/ 旭川市永山町 2022-12-30 01:11:52

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)