投稿時間:2023-08-30 10:18:50 RSSフィード2023-08-30 10:00 分まとめ(22件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 「iPhone 15」の発表イベント『Wonderlust』のロゴを使った壁紙公開 https://taisy0.com/2023/08/30/176019.html apple 2023-08-30 00:46:17
IT 気になる、記になる… Google、サブスクリプションサービス「Pixel Pass」を終了 https://taisy0.com/2023/08/30/176016.html pixel 2023-08-30 00:34:26
IT 気になる、記になる… 9月13日の「iPhone 15」発表イベントでは充電ケースにUSB-Cポートを採用した新型「AirPods」も発表される模様 https://taisy0.com/2023/08/30/176014.html airpods 2023-08-30 00:16:53
ROBOT ロボスタ 『DENSO OPEN INNOVATION PROJECT』第4期の共創パートナー募集 ロボット×自働化、住民×自治体連携、事業創造を加速 https://robotstart.info/2023/08/30/4th-denso-open-innovation-project.html 2023-08-30 00:42:42
Google Google Japan Blog 生成 AI による検索体験 (SGE) のご紹介 http://japan.googleblog.com/feeds/757533362199576091/comments/default また、概要にある情報をより掘り下げて調べられるよう、ウェブサイトへのリンクも表示されます。 2023-08-30 09:10:00
デザイン コリス CSSの新機能@scopeが便利すぎる! セレクタの適用範囲を設定できる、@scopeの基礎知識と使い方 https://coliss.com/articles/build-websites/operation/css/about-css-scope.html 続きを読む 2023-08-30 00:36:48
js JavaScriptタグが付けられた新着投稿 - Qiita Node.js APMエージェントをどうしても試してみたいので、Node-Redにエージェント導入を試みる https://qiita.com/khara-nrkk/items/50b4c87b9c29d5fdd529 newrelic 2023-08-30 09:35:34
Docker dockerタグが付けられた新着投稿 - Qiita EC2上のRHEL8 にDockerコンテナ作る https://qiita.com/kiyomasa05/items/7b20210be2249c9208a6 linuxr 2023-08-30 09:32:58
golang Goタグが付けられた新着投稿 - Qiita GoでCSVの内容をデータベースに保存する https://qiita.com/igossou/items/611b7d7341a4c83a952a 機能 2023-08-30 09:36:44
Ruby Railsタグが付けられた新着投稿 - Qiita 【Rails】マイグレーション履歴を正しくしてみた https://qiita.com/oimasa/items/aaf17be3b9fb77839d7e rails 2023-08-30 09:50:06
技術ブログ Developers.IO [アップデート] AWS User Notifications で Amazon OpenSearch Serverless の OCU 上限に関する通知設定が簡単に行えるようになりました https://dev.classmethod.jp/articles/opensearch-serverless-user-notifications-ocu/ amazon 2023-08-30 00:06:15
海外TECH DEV Community How to use Tailwind CSS with Svelte https://dev.to/alakkadshaw/how-to-use-tailwind-css-with-svelte-1an1 How to use Tailwind CSS with SvelteIn this article we are going to learn about how to use tailwind with svelteCreating a Svelte AppInstalling and Configuring Tailwind in Svelte AppCreating re usable button with Svelte and tailwindDifferent customization options with tailwind CSS and SvelteComponent design with tailwind css and SvelteState and event management in Svelte components with TailwindIntegrating Tailwind CSS utility classes with Svelte animationsConclusionIn this article we are going to learn about how to use tailwind css with svelte Creating a Svelte appLet us create a Svelte app and then add tailwind to it Type the below code to initialize a new projectnpm init svelte latest demo appcd demo appIt is going to ask you some questions and you can select the options based on your preferences Once you have installed the app run Once you have installed the app runnpm installto install all the dependenciesthen run the below commandnpm run devto start the applicationthis will start your application in localhost Installing and Configuring Tailwind in Svelte AppWe have our Svelte app running let s add tailwind to the projectStep to install the tailwind type this code in your terminalnpm install D tailwindcss postcss autoprefixernpx tailwindcss init p Step then open the file svelte config jsthere import the vitePreprocess and add the preprocess in the config like soimport adapter from sveltejs adapter auto import vitePreprocess from sveltejs kit vite type import sveltejs kit Config const config kit adapter auto only supports some environments see for a list If your environment is not supported or you settled on a specific environment switch out the adapter See for more information about adapters adapter adapter preprocess vitePreprocess export default config Step After this open the tailwind config js file to configure the template paths likeThis article is brought to you by DeadSimpleChat Chat API and SDK for your website and app type import tailwindcss Config export default content src html js svelte ts theme extend plugins Step After this create a new file named app css in the src folder tailwind base tailwind components tailwind utilities Step Create a svelte file named layout svelte in the src routes layout svelte and import the app css file lt script gt import app css lt script gt lt slot gt Step Run the applicationnpm run startStep Start using tailwind in your applicationWhen using Tailwind remember to add lang postcss for any lt style gt blocks that needs to be processed by tailwind lt h class text xl font bold underline gt We are running tailwind in Svelte lt h gt lt style lang postcss gt global html background color theme colors indigo lt style gt Example Creating a Reusable button with tailwind and SvelteLet us create a reusable button with tailwind and Svelte KitStep Creating a button component fileIn our Svelte application create in new Svelte component file and name it Button svelte Create this file inside src lib folder You can do this through UI in VS Code or use the terminaltouch src lib Button svelteStep Creating the componentIn the file Button svelte write the below codeThis article is brought to you by DeadSimpleChat Chat API and SDK for your website and app lt script gt export let buttonText Reusable Button export let buttonStyle bg blue hover bg blue focus outline none focus ring focus ring blue export let textSize base lt script gt lt style gt base apply text white font bold py px rounded cursor pointer sm apply text sm base apply text base lg apply text lg lt style gt lt button class textSize buttonStyle gt buttonText lt button gt What we are doing here We are exporting three props here buttonText for the text that is displayed on the button buttonStyle To define button style textSize The size of the text inside the buttonIn the style section we have the tailwind utility classes for the buttonWe are using the directive here to apply the tailwind utility classesLastly we are defining the button with the tailwind classes and the buttonTextStep Using the Button component in our Svelte pageWe are going to use the button component that we just created in our svelte pageopen the page svelte and import the Button svelte in itlike lt script gt import Button from lib Button svelte lt script gt lt main class space y gt lt Button buttonText Primary Button buttonStyle bg blue hover bg blue size sm gt lt Button buttonText Secondary Button buttonStyle bg green hover bg green focus ring green gt lt Button buttonText Danger Button buttonStyle bg red hover bg red size lg gt lt main gt In this example we have created the svelte app and created three button with tailwind css Different customization options with tailwind CSS and SvelteChanging button ColorsEasily customize the button color by using built in tailwind CSS color classes you can also create custom colors using the configuration file lt main class space y gt lt Button buttonText Primary Button buttonStyle bg blue hover bg blue gt lt Button buttonText Secondary Button buttonStyle bg green hover bg green gt lt Button buttonText Danger Button buttonStyle bg red hover bg red gt lt Button buttonText Info Button buttonStyle bg indigo hover bg indigo gt lt main gt Adding icons to the buttonsYou can easily added icons to the buttons as well To do this install the heroicons npm packagenpm install svelte hero iconsNow let us modify our Button svelte component to accept the new icon prompt and include the icon in the markup lt script gt Importing from svelte her icons import Icon ArrowUp from svelte hero icons export let buttonText Reusable Button export let buttonStyle bg blue hover bg blue focus outline none focus ring focus ring blue export let textSize base lt script gt lt style gt base apply text white font bold py px rounded cursor pointer sm apply text sm base apply text base lg apply text lg lt style gt lt button class textSize buttonStyle gt lt Icon src ArrowUp size gt buttonText lt button gt In the above example we have imported the heroicons package and added the arrow icons to our buttons Component design with tailwind css and Svelte kitIn this section we will explore component design with tailwind and Svelte KitWe are going to learn component design with the help of an exampleStep Card ComponentIn our project let us create an new file Card svelte in the directory src libtouch src lib Card svelteStep Creating the component into small reusable partsTo improve component design we will design our component into smaller reusable parts Let us create the parts of out card component CardHeader CardBody CardFooterLet us create separate files for these components in the src lib directorytouch src lib CardHeader sveltetouch src lib CardBody sveltetouch src lib CardFooter svelteStep Creating the Sub ComponentWe will create sub components using slots that will help us creating customizable components and with content injection as wellCardHeader svelte lt script gt export let title Card Title lt script gt lt header class bg blue text white p gt lt h class text xl font bold gt title lt h gt lt slot name actions gt lt header gt CardBody svelte lt div class p gt lt slot gt lt div gt CardFooter svelte lt footer class border t p gt lt slot gt lt footer gt Step Creating the main Card ComponentNext we will combine the subcomponents to create the main svelte component fileWe will be using Svelte slots to be able to inject the sub components into the main componentmain svelte lt script gt import CardHeader from CardHeader svelte import CardBody from CardBody svelte import CardFooter from CardFooter svelte lt script gt lt div class w full md w lg w border shadow lg rounded overflow hidden gt lt slot name header gt lt CardHeader gt lt slot gt lt slot name body gt lt CardBody gt lt slot gt lt slot name footer gt lt CardFooter gt lt slot gt lt div gt Now we will use the main card component on a svelte page lt script gt import Card from lib Card svelte import CardHeader from lib CardHeader svelte import CardBody from lib CardBody svelte import CardFooter from lib CardFooter svelte lt script gt lt style gt button apply bg blue py px text white rounded mt lt style gt lt main class flex space x gt lt Card gt lt CardHeader slot header title Header Slot gt lt CardBody slot body gt lt p gt Some Card Component goes here lt p gt lt CardBody gt lt CardFooter slot footer gt lt button class button gt Footer lt button gt lt CardFooter gt lt Card gt lt card example gt lt Card gt lt CardHeader slot header gt lt h class text xl font bold text blue gt No actions lt h gt lt CardHeader gt lt CardBody slot body gt lt p gt Some next card component goes here lt p gt lt CardBody gt lt Card gt lt main gt In the above example we added the card component into separate configurationsThus we are able to re use and maintain the single card component on multiple places and different configurationsThus creating smaller re usable components and later joining them to create larger components leads to more flexible design Integrating Tailwind utility Classes with Svelte AnimationsWe have built in animation and transition support in Svelte Let us see how we can integrate tailwind utility classes with svelte animations Step Importing Svelte animation and easingTo add animations to Svelte we have import the animations and easing functions from svelte animate and svelte easing modules lt script gt import fly from svelte animate import cubicOut from svelte easing lt script gt Step Adding Tailwind utility classes to Svelte animationsWe have to define the animation config using the animate directive in our component markup and apply the utility classes as we want to lt div class bg blue text white text center py px my rounded shadow in fly y duration easing cubicOut out fly y duration easing cubicOut gt Animating the text fly lt div gt We are appling the tailwind CSS bg blue text red px and other tailwind utility classes for styling at the same time we are using Svelte fly animation for in and out transitions Step Animate multiple elements at the same timeWe can create concurrent animations using svelte and tailwind To do this we need to use each blocks along with the animate directive lt script gt let notifications New website Svelte Tailwind utility classes We are animating the classes lt script gt each notifications as notification index index lt div class bg green text white text center py px my rounded shadow in fly y duration delay index easing cubicOut out fly y duration delay index easing cubicOut key index gt notification lt div gt each Here we created a list of notifications and used each to render the elementsWe are notifications has the fly animations while enteringand leavingWe are integrating Tailwind CSS utility with Svelte Using this you can create awesome animations and do performance optimization as well Benefits and advantages of using Svelte with TailwindLastly let us consider some of the benefits and advantages of using svelte with tailwindHaving a utility first approachScoped styles and ability to make componentsEasy to structure responsive designSmall CSS bundle sizeFully integrated developer experience Having a utility first approach Tailwind has a utility first approach This gives you control over styling and makes for easy styling and better consistency through the project lt Styling a button with tailwind gt lt button class bg blue hover bg blue text white font bold py px rounded gt Super Buy Now lt button gt Scoped Styles and ability to make components Using tailwind with Svelte you can directly apply utility classes to Svelte components giving you the ability to encapsulate the styles for a perticular component Thus creating individually styled and scoped components lt Button svelte with tailwind gt lt style gt container apply bg blue hover bg blue text white font bold py px rounded lt style gt lt button class container gt Buy Now lt button gt Create Responsive designs Svelte has responsive and reactive components built in and tailwind also supports responsive design with easy to use breakpoints lt Tailwind responsive layout gt lt div class container mx auto px md px gt lt div class grid grid cols md grid cols gap gt lt div class bg white p shadow rounded gt lt Svelte Component or content here gt lt div gt lt Other columns gt lt div gt lt div gt Minimized CSS bundle size In tailwind only the classes that are being used are included in the bundle thus reducing the size of the CSS bundle also in Tailwind with purge css the size of the css bundle is significantly reduced Integrated developer experience With Svelte and tailwind can be easily integrated into a single development file thus avoids switching between CSS files and Svelte filesmodule exports plugins require tailwindcss require autoprefixer State and event management in Svelte components with tailwindIn this section we will look at state and event management in Svelte components that are using tailwind for stylingTo read the complete article go to our website DeadSimpleChat How to use Tailwind CSS with Svelte 2023-08-30 00:15:41
ニュース BBC News - Home James Cleverly visits Beijing as MPs criticise China strategy https://www.bbc.co.uk/news/uk-politics-66651355?at_medium=RSS&at_campaign=KARANGA approach 2023-08-30 00:33:30
ニュース BBC News - Home The Papers: Stranded travellers 'out of pocket' and Ulez revolt https://www.bbc.co.uk/news/blogs-the-papers-66653777?at_medium=RSS&at_campaign=KARANGA papers 2023-08-30 00:18:07
ニュース BBC News - Home US Open 2023 results: Andy Murray, Katie Boulter, Cameron Norrie, Dan Evans, Jack Draper through https://www.bbc.co.uk/sport/tennis/66652365?at_medium=RSS&at_campaign=KARANGA US Open results Andy Murray Katie Boulter Cameron Norrie Dan Evans Jack Draper throughAndy Murray is one of five British players to win their first round matches on day two of the US Open in New York 2023-08-30 00:15:06
ビジネス ダイヤモンド・オンライン - 新着記事 大気汚染、喫煙よりも寿命縮める=シカゴ大研究所 - WSJ発 https://diamond.jp/articles/-/328417 大気汚染 2023-08-30 09:06:00
ビジネス 東洋経済オンライン 映画「バービー」をビジネス視点で見たら凄かった 発売元マテル社の戦略はこうやって読み解く | 映画・音楽 | 東洋経済オンライン https://toyokeizai.net/articles/-/697795?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-08-30 09:40:00
ビジネス 東洋経済オンライン トップ層の東大生が起業を選ぶようになった必然 官僚輩出は今は昔、ベンチャー企業の聖地へ | リーダーシップ・教養・資格・スキル | 東洋経済オンライン https://toyokeizai.net/articles/-/697739?utm_source=rss&utm_medium=http&utm_campaign=link_back 中央省庁 2023-08-30 09:20:00
ビジネス プレジデントオンライン キリンの交尾を「へたくそ」と笑うな…122回マウントしても挿入できないオスがいたほど難易度が高いワケ - 元飼育員が語る「12年間キリンの交尾をウォッチした驚きの結果」 https://president.jp/articles/-/73088 京都市動物園 2023-08-30 09:40:00
マーケティング MarkeZine アーティストのチャンネル登録者属性から探る、「YouTubeで音楽を楽しむZ世代」の特徴 http://markezine.jp/article/detail/42780 アーティストのチャンネル登録者属性から探る、「YouTubeで音楽を楽しむZ世代」の特徴テレビに並ぶ主要メディアにまで成長したYouTubeは、音楽界においても大きな役割を果たしている。 2023-08-30 09:30:00
マーケティング AdverTimes 共有カレンダーを有効活用 少人数広報の業務効率化アイデア https://www.advertimes.com/20230830/article431431/ 情報収集 2023-08-30 01:00:02
ニュース THE BRIDGE SaaSはフィンテックと融合するーーALL STAR SAAS FUNDが新ファンド、運用総額は1,300億円に https://thebridge.jp/2023/08/all-star-saas-fund-launched-3rd-fund-raising-110m SaaSはフィンテックと融合するーALLSTARSAASFUNDが新ファンド、運用総額は億円に日本、インド、東南アジアでスタートアップへの投資を手掛けるBEENEXTCapitalManagementPteLtd以下BEENEXTは月日、同社が運営する特化型ファンド「ALLSTARSAASFUNDTHREEPTELTD」以下ALLSTARSAASFUNDTHREEが約億円の資金調達を完了したことを発表した。 2023-08-30 00:30:55

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)