Code Monkey home page Code Monkey logo

comet-land's Introduction

Comet-land

CodeQL Continious Intergration codecov blog resume

Blog and Resume template with turborepo

한국어 문서는 다음 링크에서 확인하실 수 있습니다.

comet-land-blog

comet-land-resume

postGif

  • 👔 Code highlight with line-highlight, line-numbers
  • 🎨 Design with NextUI
  • 🍽 Table of contents
  • 🎩 Dark mode

kbarGif

  • ⌨️ Search with KBar
  • 🔨 Configurable
  • 🔊 Utterances Comment
  • 🔭 Google Analytics
  • 🔥 Hotjar
  • 🏄 Lighthouse score

blog lighthouse score

Resume Feature

  • 🎨 Design with NextUI
  • 🎩 Dark mode
  • ⌨️ Contact with KBar
  • 🔨 Configurable
  • 🔭 Google Analytics
  • 🔥 Hotjar
  • 🏄 Lighthouse score

resume lighthouse score

How to start

comet-land has own generate package create-comet-land

npx create-comet-land
# or
yarn create comet-land

Or using Fork or clone this repo

  1. Install dependencies
yarn
  1. Start Turbo !
yarn turbo run dev
# or just
yarn dev
  1. Now you can see blog at localhost:3000, resume at localhost:3001

How to configuration

Please see packages/core/constants directory.

and you can reconfigure at that directory's variable

  • Analytics directory
    • GA ID
    • Hotjar ID
  • Colors directory
    • color schema
  • General directory
    • author image
    • default open-graph image
    • favicon
  • SocialMedia directory
    • github
    • instagram
    • facebook
    • linkedin
    • twitter

and please check apps/blog/_config/index.json and apps/resume/_config/index.json.

This files are placing each app's configuration variable.

How to use it

please read following link.

How to deploy

How to add more packages

  • scope packages
cd where-you-want
yarn add package-name
  • global packages
yarn add package-name -W
  • global dev packages
yarn add package-name -DW

Trouble shootings

check this wiki please! it might be help

Use Case

Inspired

I inspired below blogs and resume.

License

MIT

comet-land's People

Contributors

dependabot[bot] avatar hangillee avatar hanseulhee avatar hyesungoh avatar jaegwans avatar jyeongpark avatar lgtm-com[bot] avatar mingi3442 avatar thebbong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

comet-land's Issues

small bug at both app

Description

  • resume - project tooltip blocked at mobile
  • resume - techstack null handling
  • resume - company size at mobile
  • blog - code size at iOS

Test code at Resume components

Description

apply test code at resume app

  • ContactButton
  • Header
  • Li
  • OtherExperienceSection
  • Experience
  • Section
  • SkillsSection
  • TitleTooltip

Scroll Restoration

Description

index에서 scroll 후 [slug] 방문 시 store restoration되지 않음

시도한 방법

Route.events

route를 벗어날 때 스크롤 좌표를 caching한 후, 돌아왔을 때 캐싱된 값만큼 scroll

+기존 구조를 바꾸지 않아도 쉽게 적용 가능함
-일반 `window.scrollTo`를 사용할 시 `race condition` 이슈로 dom 변경이 block되어,  setTimeout을 이용하여 적용해야 동작함
-하지만 infinite scroll된 값까지 적용되진 않음

Route as Modal

+infinite scroll된 스크롤까지 적용
-위 구현방법보다 구조를 많이 바꿔야 함
-SSG이기 때문에 index route와 slug route 모두 생성하여 빌드시간이 n에서 n^2으로 늘어남

Next.config.js

해당 이슈를 참고하였으나 작동하지 않음.

infinite scroll된 값까지 적용된다면 가장 적절한 해결방법같아 보이지만, 추가적인 시도를 해봐야할 것으로 판단

다크모드 버튼 hover시 색상

Environment

browser: Chrome
OS: macOS Monterey
device: macbook pro 14

Description

화면 기록 2022-06-20 오후 7 43 19

다크모드 버튼 hover 시 커스텀한 색상이 아닌 기본 블루 색상이 보여집니다.

wrapping _config/index.json

as is

import config from "../_config/index.json";
const { blogUrl } = config;

to be

import { blogUrl } from "../_config";

TOC showing id, not text value

Description

TOC에서 id를 렌더링하는 것이 아닌 Text value를 렌더링하면 더욱 가독성이 좋을 것 같다

error occurred when lint at pre-commit

error occurred when append lint script at .lintstagedrc.json

yarn run v1.22.19
$ /Users/hyesungoh/Documents/comet-land/node_modules/.bin/lint-staged
[STARTED] Preparing lint-staged...
[SUCCESS] Preparing lint-staged...
[STARTED] Running tasks for staged files...
[STARTED] .lintstagedrc.json — 18 files
[STARTED] *.{js,jsx,ts,tsx} — 12 files
[STARTED] yarn lint
[FAILED] yarn lint [FAILED]
[FAILED] yarn lint [FAILED]
[FAILED] yarn lint [FAILED]
[STARTED] Applying modifications from tasks...
[SKIPPED] Skipped because of errors from tasks.
[STARTED] Reverting to original state because of errors...
[SUCCESS] Reverting to original state because of errors...
[STARTED] Cleaning up temporary files...
[SUCCESS] Cleaning up temporary files...

✖ yarn lint:
 ERROR  run failed: error preparing engine: Could not find the following tasks in project: /Users/hyesungoh/Documents/comet-land/apps/blog/next.config.js, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/Comments/Comments.test.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/DateAndCategoryLink/DateAndCategoryLink.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/Header/MainHeader.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/Header/PostHeader.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/PostCard/PostCard.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/utils/getHeadings.test.tsx, /Users/hyesungoh/Documents/comet-land/apps/resume/next.config.js, /Users/hyesungoh/Documents/comet-land/packages/config/eslint-nextjs.js, /Users/hyesungoh/Documents/comet-land/packages/core/components/ErrorPage/Template.tsx, /Users/hyesungoh/Documents/comet-land/packages/core/components/Kbar/KBarToggleButton.tsx, /Users/hyesungoh/Documents/comet-land/packages/core/components/Kbar/Search.tsx
error Command failed with exit code 1.
$ turbo run lint /Users/hyesungoh/Documents/comet-land/apps/blog/next.config.js /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/Comments/Comments.test.tsx /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/DateAndCategoryLink/DateAndCategoryLink.tsx /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/Header/MainHeader.tsx /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/Header/PostHeader.tsx /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/PostCard/PostCard.tsx /Users/hyesungoh/Documents/comet-land/apps/blog/src/utils/getHeadings.test.tsx /Users/hyesungoh/Documents/comet-land/apps/resume/next.config.js /Users/hyesungoh/Documents/comet-land/packages/config/eslint-nextjs.js /Users/hyesungoh/Documents/comet-land/packages/core/components/ErrorPage/Template.tsx /Users/hyesungoh/Documents/comet-land/packages/core/components/Kbar/KBarToggleButton.tsx /Users/hyesungoh/Documents/comet-land/packages/core/components/Kbar/Search.tsx
Turbo error: error preparing engine: Could not find the following tasks in project: /Users/hyesungoh/Documents/comet-land/apps/blog/next.config.js, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/Comments/Comments.test.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/DateAndCategoryLink/DateAndCategoryLink.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/Header/MainHeader.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/Header/PostHeader.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/components/PostCard/PostCard.tsx, /Users/hyesungoh/Documents/comet-land/apps/blog/src/utils/getHeadings.test.tsx, /Users/hyesungoh/Documents/comet-land/apps/resume/next.config.js, /Users/hyesungoh/Documents/comet-land/packages/config/eslint-nextjs.js, /Users/hyesungoh/Documents/comet-land/packages/core/components/ErrorPage/Template.tsx, /Users/hyesungoh/Documents/comet-land/packages/core/components/Kbar/KBarToggleButton.tsx, /Users/hyesungoh/Documents/comet-land/packages/core/components/Kbar/Search.tsx
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
husky - pre-commit hook exited with code 1 (error)
Hook process exited.

vercel build실패 문의드려요.

fork 후 확인차 blogRepo, blogUrl의 값만 변경 후 vercel에 등록하였는데,

Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. This is normally caused by a misconfiguration in your project.

라는 에러가 발생하는데요.
따로 더 해줘야 하는게 있을까요?

구글 검색 노출 시키려면 어떻게 해야하나요?

구글 검색 노출

안녕하세요 만들어주신 블로그 정말 잘 사용하고 있습니다. 너무 이쁘네요! 구글에서 검색하였을때 검색 결과가 노출이 안되는것 같은데 혹시 다른 설정을 해주어야하나요? 제가 깃블로그에 대한 이해가 부족해서요ㅠ

Apply test at Blog hooks

Description

apply test code at Blog app's hooks

Task

  • update useInfiniteScroll
  • update useIntersectionObserver
  • useScrollRestoration

blog component directory convention

as is

components
└── ComponentName
    └── index.tsx

to be

components
└── ComponentName
    ├── ComponentName.tsx
    └── index.tsx
// index.tsx
export { default } from './ComponentName';

for

IDE에서 확인되는 파일명을 통한 생산성 확보

해당 아티클 참고

markdown links to external link

Description

compile markdown links to external link like below code

<a href="foo" target="_blank" rel="noopener noreferer">

fix few bugs at blog

Description

  • blog - html tags in markdown
  • blog - sorting kbar actions
  • blog - canonical

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.