•  


GitHub - Yann-GitHub/acme-rockets-tailwindcss: Acme Rockets is a static website implementing Tailwind CSS
Skip to content

Yann-GitHub/acme-rockets-tailwindcss

Folders and files

Name Name
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acme Rockets - Tailwind project

This repository hosts the codebase for Acme Rockets, a simple static website implementing Tailwind CSS and following CSS best practices. The website is deployed on render.com and can be accessed at https://a-rockets.onrender.com .

Get started with Tailwind CSS

  • Initialize a project with npm.
npm init -y
  • Install Tailwind CSS as a dev dependency.
npm install -D tailwindcss@latest
  • Initialize a project with Tailwind CSS and create your 'tailwind.config.js'.
npx tailwindcss init
  • Modify the tailwind.config.js file to include the paths of your CSS and JS files in the "content" property:
content
: 
[
"./build/*.html"
,
 "./build/js/*.js"
]
,
  • Add the Tailwind directives to your CSS file. Create an 'input.css' file in the 'src' folder and include the following directives:.
@tailwind
 base;
@tailwind
 components;
@tailwind
 utilities;

In some cases, you might encounter the error "unknown at-rule @tailwind" in VSCode. To resolve this, either modify the VSCode settings to avoid errors for future projects or add a '.vscode/settings.json' file with the following code ( https://stackoverflow.com/questions/65247279/unknown-at-rule-tailwind-cssunknownatrules ):

{
  
"files.associations"
: {
    
"*.css"
: 
"
tailwindcss
"

  }
}
  • Add a script in the 'package.json' to compile the CSS file. Run the command "npm run tailwind" in a dedicated terminal to generate the CSS file in the 'build/css' folder:
"tailwind"
: 
"
npx tailwindcss -i ./src/input.css -o ./build/css/style.css --watch
"

Topics covered

  1. Class names, logic and using Emmet to speed up the process.
  2. Responsive design - breakpoints - media queries.
  3. Light & Dark mode depending on the user's preferences.
  4. Hamburger menu with Html symbols or Pseudo elements (before, after) for better accessibility and animation.
  5. Custom classes & arbitrary values + extend and override tailwind classes with custom classes (see tailwind.config.js).
  6. Css config for sections full height depending on the viewport !!
  7. Prettier plugin for tailwindcss. (npm install -D prettier-plugin-tailwindcss)
  8. Deployement on render.com ( https://a-rockets.onrender.com ).
- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본