Skip to content

f-lajoc/CreateCo-rebuilt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

createCo-rebuilt

createCo rebuilt using Tailwind CSS

Table of contents

Overview

The challenge

It should:

  • Card flip
  • Loader
  • Built with tailwind CSS

Video

code_createCo.mp4

Links

My process

Built with

  • Tailwind CSS

Tailwind Setup Process

  1. In terminal
npm init -y
  1. In terminal
npm install -D tailwindcss
  1. In terminal
npx tailwindcss init
  1. In tailwind.config.js file, paste this in
content["./**/*.{html,js}"]
  1. Create CSS file and paste the following inside
@tailwind base;
@tailwind components;
@tailwind utilities;
  1. Go to package.json file, in scripts, clear and input this
"build": "tailwindcss -i ./css/style.css -o ./dist/main.css",
"watch": "tailwindcss -i ./css/style.css -o ./dist/main.css --watch"
  1. In terminal
npm run build
  1. Add to html
<link href="/dist/main.css" rel="stylesheet">
  1. Testrun by adding a style and preview
If style is not reflecting
go to package.json and click debug for both build and watch, one after the other
OR
npm run build
npm run watch
run the two one after the other

Other Additions

Animated Images

  • [giphy.com] - i downoaded the space animated image here having (.gif extension), then add it as background image in my CSS

Special Font Setup

  • [1001font.com] -i downloaded the font i wanted having (.ttf extension)
  • Put at top of CSS
@font-face {
	font-family: venusta;
	src: url("../venusta.regular.ttf");
}
edit the above to your special font

Code for 2 half page colors

background: linear-gradient(
  to bottom,
  var(--bg1) 0%,
  var(--bg2) 90%,
  var(--bg1) 90%,
  var(--bg1) 100%);

Font awesome (6.4.0)

<script src="https://kit.fontawesome.com/434622864a.js" crossorigin="anonymous"></script>

Markdown

  • **Bold**
  • ---linebreak
1. ordered list item
`2 backtics for inline code` and ```6 backtics``` for block of codes

Thoughts and troubles

  • I was build getting build error on both netlify and vercel, when i hosted it after including all json package file excluding node_modules.
  • I was stuck for like a day and there was no solution still. I ended up using the tailwind cdn to host it

What I learned and used

  • I wanted to make the page have two colors taking 60%/40% of the page, but i decided to try out using animated image gotten from [giphy.com] and color
  • i used a special font called venusta for the logo gotten from [1001font.com]

Continued development

  • Tailwind CSS
  • Git Version Control

Useful resources

Author