rooftopacademy / roofstore Goto Github PK
View Code? Open in Web Editor NEWRooftop store
Home Page: roofstore-kappa.vercel.app
Rooftop store
Home Page: roofstore-kappa.vercel.app
El interprete de javascript al ver un salto de linea después del return
asume que debe colocar un ;
, por ende retorna undefined
y el código de abajo no se ejecuta
Agregar Parentesis al return
return (
<input
type={type}
className={className}
placeholder={holderText}
/>
)
o hacerlo one line
return <input type={type} className={className} placeholder={holderText} />
Además, debe retornar algo por defecto si no se cumple la condición... puede ser return null
Modificaciones incluídas en el branch feature-menu-mobile
const icons = {
cart: "fas fa-shopping-cart",
search: "fas fa-search",
"pin-marker": "fas fa-map-marker-alt",
clock: "fas fa-clock", //modificado, antes "fas fa-clock"
home: "fas fa-home",
tag: "fas fa-tag",
"empty-heart": "far fa-heart",
"full-heart": "fas fa-heart",
"full-star": "fas fa-star",
"half-star": "fas fa-star-half-alt",
"empty-star": "far fa-star",
"arrow-right": "fas fa-angle-right",
enter: "fas fa-arrow-right",
"arrow-down": "fas fa-angle-down",
lightning: "fas fa-bolt",
//nuevos íconos
bag: "fas fa-shopping-bag",
tshirt: "fas fa-tshirt",
store: "fas fa-store-alt",
list: "fas fa-list",
headset: "fas fa-headset",
download: "fas fa-download",
//
};
function Icon({ className, icon }) {
return (
<>
<i className={`${className} ${icons[icon]}`}></i>
</>
);
}
export default Icon;
Debe tener hasta la seccion de descripción inclusive.
La clase txt-center es necesaria solo en casos específicos, y ya que el componente TextLine
admite el uso de clases por props
lo mejor seria removerla.
https://listado.mercadolibre.com.ar/_Deal_black-friday-jardin-y-aire-libre
Asegurarse que tambien se replique en los demas componentes que reutilizan la tarjeta
En el componente BannerImage se deberia poder ingresar una url para que sea redirigido
Por defecto la redireccion se hace en el click y no se puede cambiar por otro evento
<BannerImage redirect="/another-url" src="image.jpg" />
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.