FA/React

220919 React 타이틀, μ•„μ΄μ½˜ λ°”κΎΈλŠ” 방법

🍍🍍림 2022. 9. 19. 23:05

 

public νŒŒμΌμ— index.htmlνŒŒμΌμ—μ„œ λ°”κΏ”μ£ΌκΈ°

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="theme-color" content="#000000" />
    <meta
      name="description"
      content="Web site created using create-react-app"
    />
    <link rel="shortcut icon" href="./logo.png" />//href에 μ•„μ΄μ½˜ μœ„μΉ˜
    //shortcut을 λ„£μœΌλ©΄ 즐겨찾기 μΆ”κ°€μ‹œμ—λ„ 같은 μ•„μ΄μ½˜μœΌλ‘œ μ‚¬μš©κ°€λŠ₯
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
    <title>React App</title> //μ—¬κΈ° μ•ˆμ— 타이틀 제λͺ© λ„£κΈ°
  </head>
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
  </body>
</html>

 

https://www.favicon-generator.org/

 

Favicon & App Icon Generator

Upload an image (PNG to ICO, JPG to ICO, GIF to ICO) and convert it to a Windows favicon (.ico) and App Icons. Learn more about favicons.

www.favicon-generator.org

μ—¬κΈ°μ„œ 아이폰+ μ•ˆλ“œλ‘œμ΄λ“œ λͺ¨λ“  μ•„μ΄μ½˜ λŒ€μ‘κ°€λŠ₯ν•œ μ•„μ΄μ½˜ λ§Œλ“€ 수 있음

 

1. νŒŒμΌμ„ νƒν•΄μ„œ > Favicon λ§Œλ“€κΈ°ν•˜κ³ 

2. λ„€λͺ¨μΉΈμ•ˆμ— λ‚˜μ˜€λŠ” 것듀 ν—€λ“œμ•ˆμ— μΆ”κ°€ν•˜κ³  Download the generated favicon λˆŒλŸ¬μ„œ λ‹€μš΄λ‘œλ“œν•˜κ³ 

3. public 폴더에 λ‹€μš΄λ°›μ€ 이미지듀 λ‹€ λ„£μ–΄μ£ΌκΈ°

 

 

4. 그럼 μ¨”μŸŒ μ™„μ„± ~