#7. ํ”„๋ก ํŠธ์—”๋“œ ํ™”๋ฉด ๊ฐœ๋ฐœ

 

#7. ํ”„๋ก ํŠธ์—”๋“œ ํ™”๋ฉด ๊ฐœ๋ฐœ

1. React๋กœ ํ™”๋ฉด ๊ฐœ๋ฐœ ์ž, ์ด์ œ๋ถ€ํ„ฐ REACT๋กœ ํ™”๋ฉด์„ ๊ฐœ๋ฐœ ํ•ด๋ณด์ž. ์•ž์—์„œ ์‚ฌ์ „ ์ค€๋น„์‹œ ํ”„๋กœ์ ํŠธ ํด๋”์ธ linkservice์•„๋ž˜์— npx create-react-app ์œผ๋กœ ์ด๋ฏธ client์„ ์ƒ์„ฑํ–ˆ๋‹ค. #4. ํ”„๋กœ์ ํŠธ ํด๋” ๊ตฌ์กฐ ๋ฐ ํ™˜๊ฒฝ์„ค

firstvalue.tistory.com

 

1.1. Component ์ œ์ž‘ ( React๋กœ API ํ˜ธ์ถœ )

์ด์ œ๋ถ€ํ„ฐ ์ปดํฌ๋„ŒํŠธ๋ฅผ ํ•˜๋‚˜์”ฉ ์ž‘์„ฑํ•ด ๋ณด์ž.

React์—์„œ Axios๋ฅผ ์ด์šฉํ•ด API ํ˜ธ์ถœํ•˜๊ธฐ

์ปดํฌ๋„ŒํŠธ๋Š” ํฌ๊ฒŒ 3๊ฐ€์ง€๋กœ ๊ตฌ๋ถ„ํ•˜์—ฌ ์ž‘์„ฑํ–ˆ๋‹ค.

1.    API URL์„ ๊ด€๋ฆฌํ•˜๋Š” api.config.js

2.    AXIOS๋กœ API์„ ํ˜ธ์ถœํ•˜์—ฌ ๋ฆฌํ„ด ๋ฐ›๋Š” service.js

3.    service์„ ๋ฐ›์•„ ํ™”๋ฉด์— ์ถœ๋ ฅํ•ด์ฃผ๋Š” ์ปดํฌ๋„ŒํŠธ๋“ค

 

๋””๋ ‰ํ† ๋ฆฌ๋Š” src ๋ฐ‘์— /component ์— /api ์™€ /service ๋กœ ๋‚˜๋ˆˆ๋‹ค.

 

โŒ˜ api.config.js ( ์œ„์น˜: linkservice/client/src/component/api/api.config.js)

----------------------------------------------------------------------------------------------

Python Server์—์„œ ๊ฐœ๋ฐœํ•œ API ํ˜ธ์ถœ URL์„ ๊ด€๋ฆฌํ•œ๋‹ค. 

API๊ฐ€ ๋งŽ์•„์ง€๋ฉด ๋ณ„๋„ ๊ด€๋ฆฌ ํ•˜๋Š”๊ฒŒ ์œ ์ง€๋ณด์ˆ˜์ƒ ์ข‹๋‹ค.

 

export const API = {
    //LINKS ์„œ๋น„์Šค API  
    LINKSALL: `/api/links`,
    LINKREGISTER: `/api/link/create`,
    LINKSELECT: `/api/link/select/`,
    LINKDELETE: `/api/link/delete/`,
    LINKUPATE: `/api/link/update`,
}

โŒ˜ service.js ( ์œ„์น˜: linkservice/client/src/component/service/service.js)

------------------------------------------------------------------------------------------------

service.js๋Š” ๊ฐ API ํ˜ธ์ถœ์„ ๋‹ด๋‹นํ•˜๋Š” ํ•จ์ˆ˜๋“ค์„ ๋ชจ์•„๋‘” ์„œ๋น„์Šค๋กœ,

axios ๋กœ API์„ ํ˜ธ์ถœํ•˜์—ฌ ๊ฐ’์„ return๋ฐ›๋„๋ก ํ•จ์ˆ˜๋ฅผ ์ •์˜ํ•˜๊ณ , ์™ธ๋ถ€์—์„œ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๋„๋ก linkService๋กœ ์ง€์ •ํ•œ๋‹ค.

import axios from "axios"
import { API } from "../api/api.config"

// ####### ๋งํฌ์ •๋ณด API ํ˜ธ์ถœ
const getLinks = () => {
    return axios.get(API.LINKSALL)
}
const getSelectLink = (id) => {
    return axios.get(API.LINKSELECT + id)
}
const createLink= (values) => {
    return axios.post(API.LINKREGISTER, values)
}
const updateLink = (id, values) => {
    return axios.put(API.LINKUPATE + id, values)
}
const deleteLink = (id) => {
    return axios.put(API.LINKDELETE + id)
}
const linkService = {
    getLinks,
    getSelectLink,
    createLink,
    updateLink,
    deleteLink,
}
export default linkService;

1.2.  ํ™”๋ฉด ์ถœ๋ ฅ

ํ™”๋ฉด ์†Œ์Šค๋Š” .jsx ํ™•์žฅ์ž๋กœ ์ƒ์„ฑํ–ˆ๋‹ค.

 

โŒ˜ links.jsx ( ์œ„์น˜: linkservice/client/src/component/links.jsx)

--------------------------------------------------------------------------------------------------

component์•ˆ์— API์„ ํ˜ธ์ถœํ•˜์—ฌ ๋ฆฌํ„ด ๋ฐ›์€ ๊ฐ’์„ ํ™”๋ฉด์— ์ถœ๋ ฅํ•ด๋ณด์ž.

useEffect์„ ํ†ตํ•ด linkService์˜ getLinks(์ „์ฒด๋งํฌ๋ชฉ๋ก์กฐํšŒ)์„ ํ˜ธ์ถœํ•˜๋Š” ๋กœ์ง์ด๋‹ค.

rendering๋˜๋Š” return๊ฐ’์— <></> Fragment์ถ•์•ฝ์œผ๋กœ ๊ฐ์‹ธ ์žˆ๋Š” ๊ฒƒ์„ ํ™•์ธํ•˜๊ธฐ ๋ฐ”๋ž€๋‹ค.

 

import React, { useState, useEffect } from "react"
import linkService from "./service/service"

export default function LinkMain() {
    const [data, setData] = useState([])

    useEffect(() => {
        linkService.getLinks().then(
        (res)=> {
            setData(res.data)
           console.log(res.data)
        }, (error) => {
           alert(error.res.data.message )
        }
        )
    }, [])
    
    return (
<> 
     <div>
       { data.links && data.links.map((links) => (

        <div key={links.id}> 
            <div >id : {links.id}</div>
            <div>name : {links.name}</div>
            <div>tag : {links.tag}</div>
            <div>imageurl : {links.imageurl}</div>    
            <div>linkurl : {links.linkurl}</div>   
        </div>
                                                              
        ))}
     </div>
 </> 
    ) // return
} // function

 

links.jsx์˜ LinkMain()์„ App.js์—์„œ Router์„ ์ง€์ •ํ•˜์—ฌ ํ˜ธ์ถœํ•ด๋ณด์ž.

 

โŒ˜ App.js ( ์œ„์น˜: linkservice/client/src/App.js)

-------------------------------------------------------------------------------------------------------

import React from "react"
import { BrowserRouter, Route, Routes } from "react-router-dom"
import LinkMain from "./component/links"

function App() {
  return (
    <BrowserRouter>    
      <Routes>
        <Route exact path="/" element={<LinkMain />} />  
      </Routes> 
    </BrowserRouter>
  );
}
export default App;

 

ํ„ฐ๋ฏธ๋„์„ ์—ด์–ด์„œ yarn start์„ ์‹คํ–‰ํ•ด๋ณด์ž. ํ•˜์ง€๋งŒ, ๋ชจ๋“ˆ ์˜ค๋ฅ˜๊ฐ€ ๋‚ ๊ฒƒ์ด๋‹ค.

๊ด€๋ จ ๋ชจ๋“ˆ์„ ์„ค์น˜ ์•ˆ ํ•ด์„œ ๋‚˜๋Š” ๊ฒƒ์œผ๋กœ ์šฐ์„  ๋ชจ๋“ˆ ์„ค์น˜๋ฅผ ํ•˜์ž.

 

$ yarn add react-router-dom

$ yarn add axios

 

$yanr start

 

๋ชจ๋“ˆ ์„ค์น˜ ํ›„ ์‹คํ–‰ํ•˜๋ฉด ๋นˆ ํ™”๋ฉด์— ๋ธŒ๋ผ์šฐ์ € ๊ฐœ๋ฐœ์ž ๋ชจ๋“œ์— ๋ณด๋ฉด 404์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค.

ํฌ๋กฌ์—์„œ ๊ฐœ๋ฐœ์ž๋„ ๋ชจ๋“œ์—์„œ ํ™•์ธ

์˜ค๋ฅ˜ Url์„ ๋ณด๋ฉด API ํ˜ธ์ถœ ์‹œ ๋ฐœ์ƒํ•œ๋‹ค.

React์—์„œ ๋ฐฑ์—”๋“œ ์„œ๋ฒ„๋กœ API ์š”์ฒญ ์‹œ Proxy ์„ค์ •์„ ํ•ด์ค˜์•ผ ์ •์ƒ ํ˜ธ์ถœ์ด ๋œ๋‹ค.

์šฐ๋ฆฌ๋Š” Python Flask๋กœ API์„ ๊ตฌํ˜„ ํ–ˆ์œผ๋ฏ€๋กœ, Python Server๋‹จ์„ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค์ •ํ•˜๋ฉด ๋œ๋‹ค.

 

โŽฎProxy ์„ค์ •

 

client์˜ package.json ์—ด์–ด proxy์„ค์ •์„ ์ถ”๊ฐ€ํ•œ๋‹ค.

"proxy": "http://0.0.0.0:5000",

package.json์— proxy์„ค์ •

   ๐Ÿ“Œ ์•„์ดํ”ผ๋ฅผ 127.0.0.1๋กœ ์„ค์ •์•ˆํ•˜๊ณ , 0.0.0.0 ๋กœ ์„ค์ •ํ•œ ์ด์œ ๋Š” ํด๋ผ์šฐ๋“œ ํ™˜๊ฒฝ(AWS, CAFE24๋“ฑ) ๊ฒฝ์šฐ ๋‚ด๋ถ€ IP๊ฐ€ 192.168๋กœ ์‹œ์ž‘๋  ์ˆ˜ ์žˆ์–ด์„œ ๋ชจ๋“  IPv4 ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์„ค์ •ํ•˜๊ณ ์ž 0.0.0.0๋กœ ํ–ˆ๋‹ค.

 

์ด์ œ ์‹คํ–‰ํ•ด๋ณด์ž

โŽฎ์‹คํ–‰๋ฐฉ๋ฒ•

    -       ์„œ๋ฒ„ ( $ linkservice/server ) ํ„ฐ๋ฏธ๋„

          1.    python ๊ฐ€์ƒํ™” ์‹คํ–‰ ( source ./bin/activate )

          2.    python3 server.py ์‹คํ–‰

          3.    POSTMAN์„ ํ†ตํ•ด์„œ ์ƒ˜ํ”Œ ๋ฐ์ดํƒ€๋ฅผ ์ž…๋ ฅํ•œ๋‹ค. 

          โ–บ POST /api/link/create - ๋งํฌ์ •๋ณด ๋“ฑ๋ก ์ฐธ๊ณ 

#6. Python์œผ๋กœ API ๊ฐœ๋ฐœ(API Resource์„ ์–ธ ๋ฐ ํ…Œ์ŠคํŠธ)

 

#6. Python์œผ๋กœ API ๊ฐœ๋ฐœ(API Resource์„ ์–ธ ๋ฐ ํ…Œ์ŠคํŠธ)

#6. Python์œผ๋กœ API ๊ฐœ๋ฐœ(๋ฐ์ดํƒ€๋ฒ ์ด์Šค ๋ชจ๋ธ ์ž‘์—…) #6. Python์œผ๋กœ API ๊ฐœ๋ฐœ(๋ฐ์ดํƒ€๋ฒ ์ด์Šค ๋ชจ๋ธ ์ž‘์—…) #5. Python์œผ๋กœ API ๊ฐœ๋ฐœ(๊ธฐ๋ณธํ™˜๊ฒฝ๊ตฌ์„ฑ) #5. Python์œผ๋กœ API ๊ฐœ๋ฐœ(๊ธฐ๋ณธํ™˜๊ฒฝ๊ตฌ์„ฑ) โŒ˜ server.py ( ์œ„์น˜: linkservice/

firstvalue.tistory.com

 

-       ํด๋ผ์ด์–ธํŠธ ( $ linkservice/client ) ํ„ฐ๋ฏธ๋„

       1.    yarn start ์‹คํ–‰

 

๋ธŒ๋ผ์šฐ์ €์—์„œ http://localhost:3000 ์œผ๋กœ ํ™•์ธํ•ด๋ณด์ž.

์ •์ƒ์ ์œผ๋กœ ์ถœ๋ ฅ๋จ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

ํฌ๋กฌ ๊ฐœ๋ฐœ์ž๋ชจ๋“œ Console

๐Ÿ“Œ links.jsx ์†Œ์Šค์— API์„ ํ†ตํ•ด JSON์„ ์ œ๋Œ€๋กœ ๋ฐ›์•„์˜ค๋Š”์ง€ ํ™•์ธํ•˜๊ณ ์ž useEffect ๋ถ€๋ถ„์— console.log์„ ์ฐ์–ด ๋ธŒ๋ผ์šฐ์ €

     ๊ฐœ๋ฐœ์ž๋ชจ๋“œ์— console์— {links: Array(1)} ๊ฐ€ ๋ณด์ธ๋‹ค.

 


ํ™”๋ฉด์ด ์ด์˜์ง€ ์•Š์•„, ๋‹ค์Œ ํฌ์ŠคํŒ…์—๋Š” ๋””์ž์ธ์„ ํ•ด๋ณด์ž.

1.    React๋กœ ํ™”๋ฉด ๊ฐœ๋ฐœ

์ž, ์ด์ œ๋ถ€ํ„ฐ REACT๋กœ ํ™”๋ฉด์„ ๊ฐœ๋ฐœ ํ•ด๋ณด์ž.

 

์•ž์—์„œ ์‚ฌ์ „ ์ค€๋น„์‹œ ํ”„๋กœ์ ํŠธ ํด๋”์ธ linkservice์•„๋ž˜์— npx create-react-app ์œผ๋กœ ์ด๋ฏธ client์„ ์ƒ์„ฑํ–ˆ๋‹ค.

#4. ํ”„๋กœ์ ํŠธ ํด๋” ๊ตฌ์กฐ ๋ฐ ํ™˜๊ฒฝ์„ค์ •

 

#4. ํ”„๋กœ์ ํŠธ ํด๋” ๊ตฌ์กฐ ๋ฐ ํ™˜๊ฒฝ์„ค์ •

1.1. ํ”„๋กœ์ ํŠธ ํด๋” ๊ตฌ์กฐ ๋ฐ ํ™˜๊ฒฝ์„ค์ • ํ”„๋กœ์ ํŠธ ํด๋” ๊ตฌ์กฐ๋Š” ํ”„๋ก ํŠธ์—”๋“œ์™€ ๋ฐฑ์—”๋“œ๋ฅผ ๋‚˜๋ˆ„๊ณ ์ž client / server๋กœ ๊ตฌ๋ถ„ ํ•œ๋‹ค. โŽฎํ”„๋กœ์ ํŠธ ํด๋” : linkserver/ |-------- client ( React ๊ตฌ์กฐ) |-------- server ( Python๊ตฌ

firstvalue.tistory.com

 

1.1.  React ๊ธฐ๋ณธ์„ค์ •

๊ธฐ๋ณธ ํด๋”๊ตฌ์กฐ์—์„œ ํ•„์š” ์—†๋Š” ํŒŒ์ผ์„ ๋ชจ๋‘ ์ง€์šด๋‹ค.

      · public ํด๋” ๋ฐ‘์— index.html์„ ์ œ์™ธํ•˜๊ณ  ๋ชจ๋‘ ์‚ญ์ œ

      · src ํด๋” ๋ฐ‘์— App.js, index.js ์„ ์ œ์™ธํ•˜๊ณ  ๋ชจ๋‘ ์‚ญ์ œ

React ํŒŒ์ผ ๊ตฌ์กฐ๋ฅผ ๊ฐ„๋‹จํžˆ ์„ค๋ช…ํ•œ๋‹ค๋ฉด,

1. index.js

src ํด๋”์— ๋ฉ”์ธ Script๋กœ ์—ฌ๊ธฐ์—์„œ HTML ํ…œํ”Œ๋ฆฟ ๋ฐ JavaScript์˜ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์กฐํ•ฉํ•˜์—ฌ ๋ Œ๋”๋ง์„ ํ•œ๋‹ค.

 

2. App.js

src ํด๋”์— ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ •์˜ํ•˜๋Š” Script์ด๋‹ค. ์‹ค์ œ๋กœ ํ™”๋ฉด์— ํ‘œ์‹œ๋˜๋Š” ๋‚ด์šฉ ๋“ฑ์€ ์—ฌ๊ธฐ์—์„œ ์ •์˜๋œ๋‹ค.

 

3. index.html

public ํด๋”์— ์žˆ์œผ๋ฉฐ, HTML ํ…œํ”Œ๋ฆฟ ํŒŒ์ผ์ด๋‹ค. ์ด ํŒŒ์ผ์ด ์ง์ ‘ ํ‘œ์‹œ๋˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๊ณ , index.js์— ์˜ํ•ด ๋ Œ๋”๋ง ๋œ ๊ฒฐ๊ณผ๊ฐ€ ํ‘œ์‹œ๋œ๋‹ค.

 

   ๐Ÿ“Œ App.js์—์„œ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ •์˜ํ•˜๊ณ  -> index.js ์—์„œ ReactDOM.rendor ํ•˜๊ณ   -> index.html์—์„œ ํ‘œ์‹œ๋œ๋‹ค.

 

๋จผ์ €, App.js ์„ ์ˆ˜์ •ํ•œ๋‹ค.

์•„๋ž˜ ์ฝ”๋“œ์—์„œ ํ•„์š” ์—†๋Š” ๋‚ด์šฉ ์ง€์šฐ๊ณ , ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ถ”๊ฐ€ ํ•œ๋‹ค.

 


index.js ์—์„œ reportWebVitals ๋ถ€๋ถ„๊ณผ import index.css์„ ์ฃผ์„์ฒ˜๋ฆฌ ํ•œ๋‹ค.

   ๐Ÿ“Œ ์ฐธ๊ณ ๋กœ, reportWebVitals๋Š” Create React App์—์„œ ์„œ๋“œํŒŒํŠธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋กœ Index ํŒŒ์ผ์— ์จ ์žˆ๋Š” ๊ฒƒ์ฒ˜๋Ÿผ

       reportWebVitals() ์— console.log์„ ๋„ฃ์–ด์ฃผ๋ฉด ๊ฐœ๋ฐœ์ฐฝ์„ ํ†ตํ•ด ์•ฑ์˜ ํผํฌ๋จผ์Šค ์‹œ๊ฐ„๋“ค์„ ๋ถ„์„ํ•˜์—ฌ objectํ˜•ํƒœ๋กœ

      ๋ณด์—ฌ์ค€๋‹ค.

 

 

์ด์   ํ„ฐ๋ฏธ๋„์—์„œ yarn start์„ ์‹คํ–‰ํ•˜๊ณ , ๋ธŒ๋ผ์šฐ์ €์—์„œ ์ ‘์†ํ•ด๋ณด์ž.

1.2. ๋””์ž์ธ ๊ฐ€์ ธ์˜ค๊ธฐ

๋””์ž์ธ๊นŒ์ง€ ํ•˜๋ฉด 1์ธ ๊ฐœ๋ฐœ์ž๋กœ ๊ฐ€์žฅ ์ด์ƒ์ ์ด๋งŒ, ๊ทธ๋งŒํผ ๋งŽ์€ ๋…ธ๋ ฅ์ด ํ•„์š”ํ•˜๋‹ค. ๋‚˜๋„ ๋””์ž์ธ ๋งŒํผ์€ ๋งŽ์ด ๋ฐฐ์šฐ์ง€ ๋ชปํ•ด์„œ ์–•์€ ์ง€์‹์œผ๋กœ ํ™”๋ฉด์„ ๋งŒ๋“ค์–ด ๋ณด๊ธฐ๋กœ ํ–ˆ๋‹ค.

 

๋””์ž์ธ์ด ํ•„์š” ์—†๋Š” ๋ถ„๋“ค์€ ๋””์ž์ธ ์„ค๋ช…๋ถ€๋ถ„์„ ์ œ์™ธํ•˜๊ณ , ๊ฐœ๋ฐœ๋ถ€๋ถ„๋งŒ ๋ด๋„ ๋œ๋‹ค.

 

์šฐ์„  Bootstrap ๋ฌด๋ฃŒ ๋””์ž์ธ์„ ๊ฐ€์ง€๊ณ  ์™€์„œ ๋ณ€๊ฒฝํ•ด๋ณด๊ณ ์ž ํ•œ๋‹ค.

๋””์ž์ธ ์ฐธ์กฐ : https://getbootstrap.com/docs/5.3/examples/

์šฐ๋ฆฌ๋Š” Albumํ™”๋ฉด์„ ๊ฐ€์ง€๊ณ  ์‹œ์ž‘ํ•˜๊ณ ์ž ํ•œ๋‹ค. https://getbootstrap.com/docs/5.3/examples/album/ ์ ‘์†ํ›„ ์˜ค๋ฅธ์ชฝ ๋งˆ์šฐ์Šค ํด๋ฆญํ•ด์„œ ํŽ˜์ด์ง€ ์†Œ์Šค๋ณด๊ธฐ์—์„œ HTML์„ ๋ณต์‚ฌํ•˜์—ฌ index.html์— ๋ถ™์—ฌ ๋„ฃ๋Š”๋‹ค.

 

BootStrap ๋ฌด๋ฃŒ๋””์ž์ธ HTML์ฝ”๋“œ๋ฅผ index.html์— ๋ถ™ํžŒ๋‹ค.

 

Title๋“ฑ ํ…์ŠคํŠธ ๋ถ€๋ถ„์„ ๋นผ๊ฑฐ๋‚˜, ์ˆ˜์ •ํ•˜์‹œ๊ณ , HTML์—์„œ ๋ณธ๋ฌธ์— ํ•ด๋‹น๋˜๋Š” <main></main> ๊ณผ <footer></footer> ๋Š” ์‚ญ์ œํ•˜๊ณ  ๋‚˜๋จธ์ง€ ๋ถ€๋ถ„์—์„œ ํ•„์š”ํ•œ ๋ถ€๋ถ„์€ ์ถ”๊ฐ€/์ˆ˜์ •/์‚ญ์ œํ•ด์„œ ์ดˆ๊ธฐ ํ™”๋ฉด์„ ๊ตฌ์„ฑํ•ด๋ณด์ž

 

<main></main> ๋ถ€๋ถ„์ด ๊ฐ€์žฅ ์ค‘์š”ํ•˜๋ฏ€๋กœ, ์†Œ์Šค๋‚ด ํ™•์ธํ•˜๊ธฐ ๋ฐ”๋ž€๋‹ค.

 

<!doctype html>
<html lang="ko">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1">
  <meta name="description" content="">
  <meta name="generator" content="Hugo 0.88.1">
  <title>๋งํฌ์„œ๋น„์Šค</title>

  <!-- Bootstrap core CSS -->
  <link href="https://getbootstrap.kr/docs/5.1/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>

<body>
  <header>
    <div class="collapse bg-dark" id="navbarHeader">
      <div class="container">
        <div class="row">
          <div class="col-12">
            <h4 class="text-white">๋งํฌ์„œ๋น„์Šค</h4>
            <p class="text-muted">๊ฐœ๋ฐœ์€ ์—„์—ฐํžˆ ์กด์ค‘ ๋ฐ›์•„์•ผ ํ•  ๊ฐœ์ธ์˜ ์ฐฝ์ž‘๋ฌผ์ž…๋‹ˆ๋‹ค. 
            </p>
          </div>
        <div class="col-12">
          <h6 class="text-white">Developers</h4>
          <ul class="list-unstyled">
            <li class="text-muted">(์ฃผ)XXXXXXXX</li>
            <li class="text-muted">์‚ฌ์—…์ž๋ฒˆํ˜ธ:XXX-XX-xxxxx</li>
            <li class="text-muted">๋Œ€ํ‘œ์ „ํ™”:000-1111-2222</li>            
          </ul>
        </div>
      </div>

      </div>
    </div>
    <div class="navbar navbar-dark bg-dark shadow-sm">
      <div class="container">
        <a href="/" class="navbar-brand d-flex align-items-center">
          <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="currentColor"
            stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true" class="me-2"
            viewBox="0 0 24 24">
            <path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" />
            <circle cx="12" cy="13" r="4" />
          </svg>
          <strong>๋งํฌ์„œ๋น„์Šค</strong>
        </a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarHeader"
          aria-controls="navbarHeader" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
      </div>
    </div>
  </header>


  <main>
    <!-- ๋ฐฐ๊ฒฝ์ด๋ฏธ์ง€ ์ฒ˜๋ฆฌ -->
    <section class="container" id="section">
    </section>    

    <div class="album py-4 bg-light" >
      <div class="container" id="root">
            <!--   ์—ฌ๊ธฐ์— ๋ณธ๋ฌธ๋‚ด์šฉ์„  ์ฒ˜๋ฆฌ -->
      </div>
    </div>
  </main>
  <!-- <footer class="text-muted py-2" id="footer">
  </footer> -->
</body>
</html>

๐Ÿ“Œ ๋””์ž์ธ ๋ฐ ํผ๋ธ”๋ฆฌ์‹ฑ์ด ๊ฐ€๋Šฅํ•˜์‹  ๋ถ„๋“ค์€ ๊ฐ์ž ๋‹ค๋ฅธ ๋””์ž์ธ์œผ๋กœ ํ•ด๋„ ๋ฌด๋ฐฉํ•˜๋‹ค.

 

์ด์   ํ™”๋ฉด์ด ์ž˜ ์ถœ๋ ฅ๋˜๋Š”์ง€ ํ™•์ธ ํ•œ๋‹ค.


๋‹ค์ŒํŽธ์—๋Š” Component์ œ์ž‘์„ ํ•ด๋ณด์ž.

 

+ Recent posts