Coder Social home page Coder Social logo

drinkwhale / react-wedding-card Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uyu423/react-wedding-card

0.0 0.0 0.0 9.42 MB

Simple Wedding Invitation React.js Web App

Home Page: https://uyu423.github.io/react-wedding-card

License: MIT License

JavaScript 81.43% HTML 12.97% CSS 5.60%

react-wedding-card's Introduction

React Wedding Card

Introduce

Preparations

$ sudo npm install -g yarn
$ yarn

Start

$ npm start

Build & Deploy (using GitHub Page)

  • 빌드하면 build/* 내에 정적 파일들이 생성됩니다. 정적 파일을 GitHub Page 등으로 바로 호스팅 할 수 있습니다. 자세한 내용은 여기를 참고
  • 배포시 create-react-app에 내장된 기능과 gh-pages를 사용합니다. (package.json에 포함)
  • 정적 파일 배포를 위해서는 package.jsonhomepage 값을 적절히 수정해야 합니다. #
$ npm run build
$ npm run deploy

Edit Contents

  • 대부분의 데이터는 src/config.js 에서 수정 할 수 있습니다.

config.js (export default Object)

  • const gallery (array): 갤러리에 불러올 이미지 리스트
  • global (obejct)
    • googleMapAPIKey: 구글 지도를 사용하기 위해 Google Map API Key가 필요합니다. 사용하려는 Hostname이 Allow 되어야 합니다.
    • comment (object): 라이브리(LiveRe) 플러그인과 Facebook 댓글 플러그인을 지원합니다. 각 오브젝트의 enable로 플러그인을 사용 할 것인지 결정 할 수 있습니다. 둘 다 사용하지 않거나 둘 다 사용 할 수도 있습니다.
      • LiveRe: 라이브리 사이트에서 발급 받은 uid와 서비스 요금제 (city or premium) 가 필요합니다. city는 무료이며 라이브리는 다수의 SNS 로그인과 익명 작성 기능을 지원합니다.
      • Facebook: 페이스북 개발자 센터에서 앱을 생성 후 발급되는 App Id를 필요로 합니다. 앱 설정에서 Hostname을 추가해줘야합니다.
    • title (string): 웹 페이지 상단에 헤더 바의 타이틀을 수정합니다. 영문 폰트로 설정되어 있으니 영문을 추천합니다.
  • wedding (object): 예식과 관련된 정보입니다.
    • place (object): 예식장 정보를 입력합니다.
    • at (string): 예식 날짜와 시간을 YYYY-MM-DD HH:mm 형태로 입력합니다. 내부에서 Moment.js 를 사용해 YYYY년 MM월 DD일 오전(후) HH시 mm분의 형태로 만듭니다.
  • bridal and groom (obejct): 신랑과 신부에 대한 정보입니다.
    • image (image): 프로필 사진의 경로입니다. CSS 고자라 1:1 비율의 사진을 추천합니다..
    • phone (string): 전화와 SMS 발송에 사용되는 연락처를 입력합니다.
    • facebook (string): 페이스북 주소를 입력합니다. false 일 경우 페이스북 아이콘이 나타나지 않습니다.
  • image (object): 이미지 관련 설정입니다.
    • header (image): 헤더 아래에 나타다는 대문 이미지를 설정합니다.
    • gallery (array): 상단에서 정의한 const gallery 변수를 사용합니다.

HTML & Open Graph

  • HTML과 Open Grpah Meta Tag를 동적으로 변경하는 방법을 찾을 수 없어 public/index.html을 직접 수정해야합니다. 파일을 참고하세요.

image

  • Open Graph 미리보기용 이미지는 public/og_image.jpg를 사용하며 index.htmlog:image Meta Property의 content를 수정하면 됩니다. 웹 상에 업로드 된 전체 URL을 입력해야됩니다.
  • Facebook에서 제공하는 Open Grpah Debugger를 통해 Open Grpah 결과를 미리 볼 수 있습니다.

This project was bootstrapped with Create React App.

react-wedding-card's People

Contributors

uyu423 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.