๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
"๊ณต๋ถ€" ๐‘Ÿ๐‘’๐‘๐‘œ๐‘Ÿ๐‘‘/๐น๐‘Ÿ๐‘œ๐‘›๐‘ก๐‘’๐‘›๐‘‘

์Šคํƒ€๋ฒ…์Šค ๋žœ๋”ฉ ํŽ˜์ด์ง€ ๊ตฌํ˜„์— ์‚ฌ์šฉ๋œ ์œ ์šฉํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

by เท† Yoni เท† 2022. 1. 18.
728x90

์ด๋ฒˆ ์Šคํƒ€๋ฒ…์Šค ๋žœ๋”ฉํŽ˜์ด์ง€(ํ™ˆํŽ˜์ด์ง€) ๊ตฌํ˜„์—

์‚ฌ์šฉ๋œ ์œ ์šฉํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ค๊ณผ

๋ช‡ ๊ฐ€์ง€ ์‚ฌ์ดํŠธ๋“ค์— ๋Œ€ํ•ด ์ ์–ด๋ณด์•˜๋‹ค.

 

โ•ฐ(โŠก-โŠก)ูˆโœŽโฎน

.

.

.

 

Open Graph Protocol

Open Graph Protocol์€ ํŽ˜์ด์Šค๋ถ์—์„œ ๋งŒ๋“  ๋ฉ”ํƒ€ ํƒœ๊ทธ๋กœ,

์†Œ์…œ ๋ฏธ๋””์–ด ์„œ๋น„์Šค(ํŽ˜์ด์Šค๋ถ, ์นด์นด์˜คํ†ก ๋“ฑ)๋กœ ์›น ์‚ฌ์ดํŠธ๋ฅผ ๊ณต์œ ํ•  ๋•Œ ๋ฏธ๋ฆฌ๋ณด๊ธฐ๋ฅผ ๋งŒ๋“ค์–ด ์ฃผ๋Š” ์—ญํ• ์„ ํ•œ๋‹ค.

 

โ€ป ๋ณธ ๊ตฌํ˜„์—์„  Kakaotalk์˜ Open Graph Protocol์„ ์‚ฌ์šฉํ•˜์˜€๋‹ค.

<!-- Kakaotalk Open Graph protocol -->
  <meta property="og:type" content="website" />
  <meta property="og:site_name" content="Starbucks" />
  <meta property="og:title" content="Starbucks Coffee Korea" />
  <meta property="og:description" content="์Šคํƒ€๋ฒ…์Šค๋Š” ์„ธ๊ณ„์—์„œ ๊ฐ€์žฅ ํฐ ๋‹ค๊ตญ์  ์ปคํ”ผ ์ „๋ฌธ์ ์œผ๋กœ, 64๊ฐœ๊ตญ์—์„œ ์ด 23,187๊ฐœ์˜ ๋งค์ ์„ ์šด์˜ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค." />
  <meta property="og:image" content="./images/starbucks_seo.jpg" />
  <meta property="og:url" content="https://starbucks.co.kr" />

ex) Kakaotalk

 


Twitter Cards

ํŠธ์œ„ํ„ฐ์—๋Š” Twitter Cards๋ผ๋Š” ๊ธฐ๋Šฅ์ด ์žˆ๋‹ค.

140์ž์˜ ํ…์ŠคํŠธ๋งŒ ํ‘œํ˜„ํ•  ์ˆ˜ ์žˆ๋Š” ํŠธ์œ„ํ„ฐ์˜ ์ œ์•ฝ์„ ํ™•์žฅํ•  ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ์œผ๋กœ

์ถ”๊ฐ€์ ์ธ ์ด๋ฏธ์ง€๋‚˜ ๋‚ด์šฉ์„ ๋ฏธ๋ฆฌ๋ณด๊ธฐ์ฒ˜๋Ÿผ ๋ณด์—ฌ์ฃผ๋Š” ๊ธฐ๋Šฅ์ด๋‹ค.

 

โ€ป ๋ณธ ๊ตฌํ˜„์—์„œ ์‚ฌ์šฉ๋œ Twitter Cards ์ฝ”๋“œ

<!-- Twitter Cards -->
  <meta property="twitter:card" content="summary" />
  <meta property="twitter:site" content="Starbucks" />
  <meta property="twitter:title" content="Starbucks Coffee Korea" />
  <meta property="twitter:description" content="์Šคํƒ€๋ฒ…์Šค๋Š” ์„ธ๊ณ„์—์„œ ๊ฐ€์žฅ ํฐ ๋‹ค๊ตญ์  ์ปคํ”ผ ์ „๋ฌธ์ ์œผ๋กœ, 64๊ฐœ๊ตญ์—์„œ ์ด 23,187๊ฐœ์˜ ๋งค์ ์„ ์šด์˜ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค." />
  <meta property="twitter:image" content="./images/starbucks_seo.jpg" />
  <meta property="twitter:url" content="https://starbucks.co.kr" />

ex) Twitter

 


Reset CSS

Reset CSS๋Š” ์›น ๋ธŒ๋ผ์šฐ์ €๋งˆ๋‹ค ๊ฐ๊ธฐ ๋‹ค๋ฅธ default ์Šคํƒ€์ผ์ด ์ง€์ •๋˜์–ด ์žˆ์–ด,

์ด๋ฅผ ์ดˆ๊ธฐํ™”ํ•จ์œผ๋กœ์จ ๋‹ค์–‘ํ•œ ์›น๋ธŒ๋ผ์šฐ์ €์—์„œ๋„ ๋™์ผํ•œ ์Šคํƒ€์ผ์ด ์ ์šฉ๋˜๋„๋ก ํ•˜๋Š” ์„ค์ •์ด๋‹ค.

 

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reset-css@5.0.1/reset.min.css" />

https://www.jsdelivr.com/package/npm/reset-css

 

jsDelivr - A free, fast, and reliable CDN for Open Source

Supports npm, GitHub, WordPress, Deno, and more. Largest network and best performance among all CDNs. Serving more than 80 billion requests per month. Built for production use.

www.jsdelivr.com

 


Google Fonts

Google Fonts๋Š” ๋ผ์ด์„ ์Šค์—์„œ ์ž์œ ๋กœ์šด 952๊ฐœ์˜ ๊ธ€๊ผด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค.

 

โ€ป ๋ณธ ๊ตฌํ˜„์—์„  'Nanum Gothic' ์ฒด๋ฅผ ์‚ฌ์šฉํ•˜์˜€๋‹ค.

 

https://fonts.google.com/

 

Google Fonts

Making the web more beautiful, fast, and open through great typography

fonts.google.com

 


Google Material Icons

Google Material Icons๋Š” ๊ตฌ๊ธ€์ด ์ œ๊ณตํ•˜๋Š” ์•„์ด์ฝ˜ ๋””์ž์ธ ๋ชจ์Œ์ด๋‹ค.

 

https://material.io/resources

 

Material Design

Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences.

material.io

 


lodash.js ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

lodash ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” ๋‹ค์–‘ํ•œ ์œ ํ‹ธ๋ฆฌํ‹ฐ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜๋Š” ๋ชจ๋˜ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค.

array, object, string ๋“ฑ์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์‰ฝ๊ฒŒ ๋‹ค๋ฃฐ ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ค€๋‹ค.

์ด๋Š” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋กœ ๊ฐœ๋ฐœํ•  ๋•Œ ๊ฐ€์žฅ ๋งŽ์ด ์‚ฌ์šฉ๋˜๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ค ์ค‘ ํ•˜๋‚˜๋ผ๊ณ  ํ•œ๋‹ค.

 

<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js" integrity="sha512-WFN04846sdKMIP5LKNphMaWzU7YpMyCU245etK3g/2ARYbPK9Ub18eG+ljU96qKRCWh+quCY7yefSmlkQw1ANQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

https://cdnjs.com/libraries/lodash.js

 

lodash.js - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers

A utility library delivering consistency, customization, performance, & extras. - Simple. Fast. Reliable. Content delivery at its finest. cdnjs is a free and open-source CDN service trusted by over 12.5% of all websites, serving over 200 billion requests e

cdnjs.com

 


GSAP ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

GSAP์€ GreenSock Animation Platform์˜ ์•ฝ์ž๋กœ,

GreenSock์—์„œ ๋งŒ๋“  ํƒ€์ž„๋ผ์ธ ๊ธฐ๋ฐ˜์˜ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค.

์ด GSAP ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด, ๋ณด๋‹ค ๋” ์„ธ๋ฐ€ํ•˜๊ณ  ํšจ๊ณผ์ ์ธ ์• ๋‹ˆ๋ฉ”์ด์…˜ ์„ค์ •์ด ๊ฐ€๋Šฅํ•ด์ง„๋‹ค.

 

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js" integrity="sha512-H6cPm97FAsgIKmlBA4s774vqoN24V5gSQL4yBTDOY2su2DeXZVhQPxFK4P6GPdnZqM9fg1G3cMv5wD7e6cFLZQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

https://cdnjs.com/libraries/gsap

 

gsap - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers

GSAP is a JavaScript library for building high-performance animations that work in **every** major browser. Animate CSS, SVG, canvas, React, Vue, WebGL, colors, strings, motion paths, generic objects...anything JavaScript can touch! No other library delive

cdnjs.com

 


ScrollToPlugin

GSAP ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” ๊ธฐ๋Šฅ๋ณ„๋กœ js ํŒŒ์ผ์„ ๋”ฐ๋กœ๋”ฐ๋กœ ์ œ๊ณตํ•˜๊ธฐ ๋•Œ๋ฌธ์—,

์›ํ•˜๋Š” ๊ธฐ๋Šฅ๋งŒ ์„ ํƒ์ ์œผ๋กœ ๊ณจ๋ผ ์“ธ ์ˆ˜ ์žˆ๋‹ค๋Š” ์žฅ์ ์ด ์žˆ๋‹ค.

 

๊ทธ์— ๋Œ€ํ‘œ์ ์ธ ๊ธฐ๋Šฅ ์ค‘์— ScrollToPlugin์ด ์žˆ๋‹ค.

ScrollToPlugin์€ ์Šคํฌ๋กค ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ์ง€์›ํ•˜๋Š” GSAP ํ”Œ๋Ÿฌ๊ทธ์ธ์ด๋‹ค.

 

โ€ป ๋ณธ ๊ตฌํ˜„์—์„  Scroll To Top ๋ฒ„ํŠผ์„ ๋งŒ๋“ค ๋•Œ ์ด ํ”Œ๋Ÿฌ๊ทธ์ธ์ด ์‚ฌ์šฉ๋˜์—ˆ๋‹ค.

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/ScrollToPlugin.min.js" integrity="sha512-agNfXmEo6F+qcj3WGryaRvl9X9wLMQORbTt5ACS9YVqzKDMzhRxY+xjgO45HCLm61OwHWR1Oblp4QSw/SGh9SA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

https://greensock.com/scrolltoplugin/

 

ScrollToPlugin

Allows GSAP to animate the scroll position of the window (like doing window.scrollTo(x, y)) or a <div> DOM element (like doing myDiv.scrollTop = y; myDiv.scrollLeft = x;). To scroll the window to a particular position, use window as the target of the tween

greensock.com

 


Swiper ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

Swiper ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” ํ•˜๋“œ์›จ์–ด ๊ฐ€์† ์ „ํ™˜๊ณผ ์—ฌ๋Ÿฌ ๊ธฐ๋ณธ ๋™์ž‘์„ ๊ฐ–์ถ˜ ํ˜„๋Œ€์ ์ธ ์Šฌ๋ผ์ด๋“œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค.

 

<์ฃผ์˜> Swiper ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ version์— ๋”ฐ๋ผ ์•ฝ๊ฐ„์˜ ์ฐจ์ด๊ฐ€ ์กด์žฌํ•œ๋‹ค.

*** ๋ณธ ๊ตฌํ˜„์—์„œ๋„ ๊ฐ€์žฅ ์ตœ๊ทผ ๋ฒ„์ „ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ–ˆ๋‹ค๊ฐ€ ๊ณ„์† ์•ˆ๋ผ์„œ ์• ๋ฅผ ๋จน์—ˆ๋‹ค๋Š” ์‚ฌ์‹ค...ใ…Ž

 

โ€ป ๋ณธ ๊ตฌํ˜„์—์„  ๊ณต์ง€์‚ฌํ•ญ ์Šฌ๋ผ์ด๋“œ & ํ”„๋กœ๋ชจ์…˜ ์ด๋ฏธ์ง€ ์Šฌ๋ผ์ด๋“œ๋ฅผ ๋งŒ๋“ค ๋•Œ ์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์š”์†Œ๋“ค์ด ์‚ฌ์šฉ๋˜์—ˆ๋‹ค.

<link rel="stylesheet" href="https://unpkg.com/swiper@6.8.4/swiper-bundle.min.css" />
<script src="https://unpkg.com/swiper@6.8.4/swiper-bundle.min.js"></script>

https://swiperjs.com/get-started

 

Getting Started With Swiper

Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior.

swiperjs.com

 


ScrollMagic ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

ScrollMagic ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” ์Šคํฌ๋กค๊ณผ ์š”์†Œ์˜ ์ƒํ˜ธ ์ž‘์šฉ์„ ์œ„ํ•œ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค.

 

โ€ป ๋ณธ ๊ตฌํ˜„์—์„  ์Šคํฌ๋กค ์œ„์น˜๋ฅผ ๊ณ„์‚ฐํ•˜์—ฌ ์š”์†Œ๋“ค์ด ์–‘์ชฝ์—์„œ ๋‚˜์˜ค๋Š” ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ์ค„ ๋•Œ ์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ–ˆ๋‹ค.

<script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/ScrollMagic.min.js" integrity="sha512-8E3KZoPoZCD+1dgfqhPbejQBnQfBXe8FuwL4z/c8sTrgeDMFEnoyTlH3obB4/fV+6Sg0a0XF+L/6xS4Xx1fUEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

https://cdnjs.com/libraries/ScrollMagic

 

ScrollMagic - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers

The javascript library for magical scroll interactions. - Simple. Fast. Reliable. Content delivery at its finest. cdnjs is a free and open-source CDN service trusted by over 12.5% of all websites, serving over 200 billion requests each month, powered by Cl

cdnjs.com

 


Youtube IFrame Player API

IFrame Player API๋ฅผ ํ†ตํ•ด ์›น์‚ฌ์ดํŠธ์— YouTube ๋™์˜์ƒ ํ”Œ๋ ˆ์ด์–ด๋ฅผ ํผ๊ฐ€๊ณ  JavaScript๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ”Œ๋ ˆ์ด์–ด๋ฅผ ์ œ์–ดํ•  ์ˆ˜ ์žˆ๋‹ค.

 

โ€ป ๋ณธ ๊ตฌํ˜„์— ์‚ฌ์šฉ๋œ youtube.js ์ฝ”๋“œ

// 2. This code loads the IFrame Player API code asynchronously.
var tag = document.createElement('script');

tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

// 3. This function creates an <iframe> (and YouTube player)
//    after the API code downloads.
function onYouTubeIframeAPIReady() { // ํ•จ์ˆ˜๋ช… ๋ณ€๊ฒฝํ•˜๋ฉด X
  // <div id="player"></div>
  new YT.Player('player', {
    videoId: 'An6LvWQuj_8', // ์žฌ์ƒํ•  ์œ ํŠœ๋ธŒ ์˜์ƒ ID
    playerVars: { // ์˜์ƒ์„ ์žฌ์ƒํ•˜๊ธฐ ์œ„ํ•œ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ์˜ต์…˜๋“ค
      autoplay: true, // ์ž๋™ ์žฌ์ƒ ์œ ๋ฌด
      loop: true, // ๋ฐ˜๋ณต ์žฌ์ƒ ์œ ๋ฌด
      playlist: 'An6LvWQuj_8' // ๋ฐ˜๋ณต ์žฌ์ƒํ•  ์œ ํŠœ๋ธŒ ์˜์ƒ ID ๋ชฉ๋ก
    },
    events: { // ์ถ”๊ฐ€์ ์ธ ์˜ต์…˜
      onReady: function(event) { // ๋™์˜์ƒ ํ”Œ๋ ˆ์ด์–ด๊ฐ€ ์ค€๋น„๊ฐ€ ๋˜๋ฉด ์ด ํ•จ์ˆ˜๋ฅผ ์‹คํ–‰
        event.target.mute() // target(ํ˜„์žฌ ์žฌ์ƒ๋˜๊ณ  ์žˆ๋Š” ์˜์ƒ) ์Œ์†Œ๊ฑฐ
      }
    }
  });
}

https://developers.google.com/youtube/iframe_api_reference?hl=ko#Getting_Started 

 

iframe ์‚ฝ์ž…์— ๋Œ€ํ•œ YouTube Player API ์ฐธ์กฐ ๋ฌธ์„œ  |  YouTube IFrame Player API  |  Google Developers

Embed a YouTube player in your application.

developers.google.com

 


Netlify

Netlify๋Š” Web ํ”„๋กœ์ ํŠธ๋ฅผ ์ •์ ์„œ๋ฒ„๋กœ ์‰ฝ๊ฒŒ ํ˜ธ์ŠคํŒ…์„ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•˜๋Š” ์„œ๋น„์Šค์ด๋‹ค.

Netlify๋Š” ๋ฐฐํฌ๋ฅผ ๋ณด๋‹ค ์‰ฝ๊ฒŒ ํ•˜๋„๋ก ํ•ด์ฃผ๋ฉด์„œ, GitHub, GitLab, Bitbucket ๋“ฑ๊ณผ ์—ฐ๋™ํ•˜์—ฌ ๋ณ€๊ฒฝ์‚ฌํ•ญ๋„ ์ž๋™์œผ๋กœ ์ ์šฉํ•ด์ค€๋‹ค.
์ด๋Š” ์›น์‚ฌ์ดํŠธ์˜ ์œ ์ง€๋ณด์ˆ˜๋ฅผ ์šฉ์ดํ•˜๊ฒŒ ๋„์™€์ค€๋‹ค๋Š” ์žฅ์ ์ด ์žˆ๋‹ค.

 

https://www.netlify.com/

 

Netlify: Develop & deploy the best web experiences in record time

A powerful serverless platform with an intuitive git-based workflow. Automated deployments, shareable previews, and much more. Get started for free!

www.netlify.com

 

728x90

๋Œ“๊ธ€