This is a solution to the Easybank landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- See hover states for all interactive elements on the page
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Solid JS - JS library
- Astro - UI framework agnostic
- tailwindcss - For styles
the purpose behind the stack choice was to learn how to build static files with astro, especially for landing pages, using various UI frameworks, similar to Gatsby with React. see what I learned below:
- .astro files (for pages, layouts and components)
- integrations and templates
- component islands
- suport for view transitions
- endpoints & middleware
- localization
static components -> embedded CSS
astro bundle -> embedded JS
_astro/web.CKEhz0Ta.js: UI Framework (solid)
_astro/client.DKvI4T_I: "renderer"
the configuration of the base url for static files
// https://astro.build/config
export default defineConfig({
// Enable Solid to support Solid JSX components.
integrations: [solid(), tailwind()],
base: 'easybank/', // base url for static files, configured for github pages
});
# install the dependencies
$ npm install
# build
$ npm run build
# preview
$ npm run preview
the files will be built into the dist folder
- Website - Rafael
- Frontend Mentor - @rafael-vasconcellos