2021-07-01ãã1ã¶æéã®è¨äºä¸è¦§
ä¼ç¤¾å¤ãã ã£ãããã¯ãååã®Googleã«ã¬ã³ãã¼ã確èªã§ããã®ã§ã空ãã¦ãæéãæ¢ããããæ¢ãã¦ãããããããã®ã§ãããããªã¼ã©ã³ã¹ã§ãªã¢ã¼ãã§ä»äºãé²ãã¦ããã¨ãããã¯ãããããªã³ã©ã¤ã³ãã¼ãã£ã³ã°ã®æ¥ç¨ãåãããã®ããã大å¤ã ã£ãããã¾ãâ¦
forwardRefã¯ã以åãåã³ã³ãã¼ãã³ãã®ã¡ã½ãããå©ããã¨ããã¨ãã«ä½¿ã£ããã¨ãããã®ã§ãããä»åã¯åç´ã«refã渡ãã ãã®è¨äºã§ããblog.kimizuka.orgãã ãå ¬å¼ããã¥ã¡ã³ãã«ãããããããè¨äºãããã®ã§ããã¡ããè¦ãæ¹ãæ©ããããããªãã§ããjâ¦
ãã¨ã®çºç«¯ ãããããã±ã¼ã¹ã ã¨ã¯æãã®ã§ãããæè¿ãã¹ãã¼ã¸ã³ã°ã¨æ¬çªã®URLã«ã¼ãã®ãã¹ãéãç°å¢ã§Next.jsã使ãæ©ä¼ãããã¾ããããã£ããããã¨ã æ¬çª https:/kimizuka.fm/production/ ã¹ãã¼ã¸ã³ã° https:/kimizuka.fm/staging/ ã¿ãããªæãã§â¦
creareRefã使ã£ã¦refãè¦ç´ åã¤ããã®ãè¯ãã¿ããã§ãã import { createRef, useRef } from 'react'; const list = ['', '', '']; export default function Indexpage() { const listRefs = useRef([]); list.forEach((_, i) => { listRefs.current[i] = â¦
developer.mozilla.orgAndroid Chromeã§ã¯ã¢ã³ãã¼ã©ã¤ã³ã表示ãããã®ã«ãiOSã®Safariã§ã¯è¡¨ç¤ºãããªãã¨ããäºæ ã«ç´é¢ãã¾ãã¦ããããã調ã¹ã¦ã¿ãã¨ãtext-decorationãä¸æ¬æå®ããã¨ãSafariã§è¡¨ç¤ºãããªããªããã¨ã«æ°ã¥ãã¾ãããiOSã§ãMacOSã§ãâ¦
以åä½ã£ãã«ã¹ã¿ã ããã¯ãè¤éãããã®ã§ã·ã³ãã«çãä½ãã¾ãããblog.kimizuka.org useScroll.tsx import { useEffect, useState } from 'react'; export default function useScroll() { const [ scrollTop, setScrollTop ] = useState(0); const [ scrâ¦
ãã®ãããä¹ ãã¶ãã«Express + Socket.ioã§ã¦ã§ããµã¤ããä½ã£ãã®ã§ãæé ãã¡ã¢ãã¦ããã¾ãã â» Node.js v14.15.0ãyarn 1.22.5 ã§ä½æ å¿ è¦ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã« yarn add express socket.io app.jsãä½æ const express = require('express'); câ¦
ãããªéè¦ããããã¯ãããã¾ããããåã åã¨ååã®è¨äºãä½µããã°å®ç¾ã§ãã¾ããblog.kimizuka.org blog.kimizuka.orgã¤ã¾ããéæãªãªãã¸ã§ã¯ãã«å¯¾ãã¦castShadowãæå¹ã«ãã¦ãããã°å½±ã ããæå½±ãããã®ã§ãã éæãªã®ã«å½±ãæ ãã®ã¯ããããæ°ãâ¦
Three.jsã§ã©ã¤ãï¼AmbientLight以å¤ï¼ã使ãã¨ãå¹å¸ã®ãããªãã¸ã§ã¯ãã«ã¯å½±ã表示ããã¾ãã ããä»ã®ãªãã¸ã§ã¯ãã«å¯¾ãã¦ã¯å½±ãè½ã¡ã¾ãããä»ã®ãªãã¸ã§ã¯ãã«å½±ãè½ã¨ãããã«ã¯ãããããè¨å®ãå¿ è¦ã ã£ãã®ã§ã¾ã¨ãã¦ããã¾ãã WebGLRenderer.shaâ¦
ãããªã¢ã«ã®å¤æ´ã¯ä»¥å調ã¹ã ãããªããªããã®æãåéæã«ãããã大ä¸å¤«ã§ããããblog.kimizuka.orgã¨æã£ã¦ãåãçµãã ã®ã§ãããããã£ãã®ã§ã¡ã¢ãæ®ãã¦ããã¾ããã¾ããglbãã¡ã¤ã«ãèªã¿è¾¼ã¿ã¾ããååã®è¨äºãåèã«materialãéæã«ãã¾ãã â¦
DEMO 解説 clip-pathã«SVGã®IDï¼æ£ç¢ºã«ã¯SVGå ã®å³å½¢ã®IDï¼ã渡ãã¦ãããã°ãã®å³å½¢ããã¹ã¯ã«ãããã¨ãã§ãã¾ããdeveloper.mozilla.orgã¾ããSVGãã¿ã°ãªã®ã§CSSã¢ãã¡ã¼ã·ã§ã³ã§åãããã¨ãã§ãã¾ãã ããããã¨ãåããæã§ãã¹ã¯ãã¢ãã¡ã¼ã·ã§ã³ãâ¦
ⶠposition: fixedã®è¦ç´ ãç¨æãã â· â¶ã§ç¨æããè¦ç´ ã«èæ¯è²ãè¨å®ãã ⸠â¶ã§ç¨æããè¦ç´ ã®åè¦ç´ ãç¨æãã â¹ â¸ã§ç¨æããè¦ç´ ãY軸ã§180度å転ãããï¼è£è¿ãï¼ã¨ããå¦çãã¤ã¾ãã³ã¼ãã§æ¸ãã¨ã HTML <div> <p></p> </div> CSS div { position: fixed; background-colâ¦
Next 11ã使ã£ã¦ã¦ã§ããµã¤ããæ§ç¯ãã yarn buildã§æ¸ãåºããã¨æã£ãã®ã§ããã Error: Do not use . Use Image from 'next/image' instead. See https://nextjs.org/docs/messages/no-img-element. @next/next/no-img-element ã¨ã¨ã©ã¼ãåºã¾ãããæ示â¦
Next.js + styled-componentsã§ã¦ã§ããµã¤ããä½ãå§ãã¦ããããã¼ã£ã¨æ°ã«ãªã£ã¦ãã¾ããã ãã¼ã¸è¡¨ç¤ºæã«ä¸ç¬ã¹ã¿ã¤ã«ãå½ãã£ã¦ãªãç¶æ ã表示ã®ããããã¤ãã«ããã®è§£æ±ºæ¹æ³ãè¦ã¤ãã¾ããããã®ããµã¼ããµã¤ãã¬ã³ããªã³ã°ã使ãã°è§£æ±ºãã¾ããstyleâ¦
_headerã§è¨å®ã§ãã¾ããblog.kimizuka.org è¨å®æ¹æ³ ⶠPro以ä¸ã®ãã©ã³ã«ã¢ããã°ã¬ã¼ãããwww.netlify.comâ· _headersãä½æãã /* Basic-Auth: user:passwordâ» ã¦ã¼ã¶ã¼å: user ãã¹ã¯ã¼ã: password ã®ä¾â¸ ã«ã¼ããã£ã¬ã¯ããªã«_headerãç½®ã以ä¸ã§ããâ¦
ãããªæãã§ãé¡ã®å¨ããåãæãã¹ã¯ãªãããæ¸ãã¾ãããgithub.com (function() { window.trimAndResize = trimAndResize; function trimAndResize(canvas, size) { return faceapi.nets.tinyFaceDetector.load('https://justadudewhohacks.github.io/faâ¦
å æ¥ãContentful + Nuxt.jsã§ã¤ãã£ããµã¤ãã®APIãã¼ã®é è½ã試ã¿ã¾ããããä»åã¯ãã®ãµã¤ããAmplifyã使ã£ã¦å ¬éããéã®.envã®ä½ææ¹æ³ãã¾ã¨ãã¦ããã¾ããå ¬å¼ãµã¤ãã«æ¸ãã¦ããéãã®æ¹æ³ã§ããdocs.aws.amazon.com ⶠç°å¢å¤æ°ãè¨å® Amplifyã³ã³â¦
â» Contentful 㨠Nuxt.js ã®èª¬æã¯çãã¾ããwww.contentful.com ja.nuxtjs.orgContentfulã¨Nuxt.jsãã¤ãã£ã¦ã¦ã§ããµã¤ãã使ãå ´åããã¡ãã®å ¬å¼ã®ããã¥ã¡ã³ããåèã«ãã¦ãã¾ãããwww.contentful.comããNuxt.jsã®2.13ããdotenvã®æ±ãããã便å©ã«â¦
2022å¹´ã«çµäºã¨åã®Android Thingsãdeveloper.android.comAndroid Thingsã®ããããªã®ãã¯ããããªãã§ãããIoTç³»ã®ãããã¯ãã§OSã«Androidãæ¡ç¨ãã¦ãããã®ã¯ãã¾ãã¾ãå¤ãããã«æãã¾ããæè¿ãOSãAndroidã®IoTæ©å¨ã®ãã©ã¦ã¶ã§ãMediaDevices.getâ¦
base64 ð ãã¡ããhrefã«base64ãè¨å®ããaã¿ã°ã§ãã <a href="data:image/png;base64,..." target="_blank">base64</a> ãã®ãªã³ã¯ãã¿ããããæã®æåããiOS13 â ç»åãéã iOS14 â ãã©ã³ã¯ã®ãã¼ã¸ãéãã¨ãªã£ã¦ãããã¨ã«æ°ã¥ãã¾ãããæ°ã¥ããçç±ã¨ãã¦ã¯ãååã®è¨äºã®ç¶ãã§ãiOS13ã§ã®ãã¦ã³ãã¼ãå±æ§â¦