Skip to content

Nilil/basic-card_Web-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic card (Responsive)

You are able to add an image and/or personalize your own text.

How to use?

Change the value you want to replace using the variables.

Links

Published on webcomponents.org

NPM Github

Preview

Mobile

Desktop

Variables:

Text

  • "main_title"
  • "img_src"
  • "img_alt"
  • "product_title"
  • "product_subtitle"
  • "product_text"
  • "product_price"
  • "btn_text"

CSS

Mobile and desktop

  • --color-text: Title and text color
  • --color-subtext: Subtitle and price color
  • --color-bg-first: Bg color of image
  • --color-bg-second: Bg color of text
  • --color-border: Border color

Mobile

  • --font-opacity: Subtitle opacity
  • --font-main-title: Title size
  • --font-title: Title size (Behind image)
  • --font-subtitle: Subtitle size
  • --font-text: Text size
  • --font-price: Price size
  • --font-btn: Button size

Desktop

  • --fontDS-main-title: Title size
  • --fontDS-title: Title size (Behind image)
  • --fontDS-subtitle: Subtitle size
  • --fontDS-text: Text size
  • --fontDS-price: Price size
  • --fontDS-btn: Button size

Author

Nilthon EC

License

Under MIT License

Releases

No releases published

Packages

No packages published