Skip to content

Latest commit

 

History

History
102 lines (71 loc) · 2.63 KB

readme.md

File metadata and controls

102 lines (71 loc) · 2.63 KB

About

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.

Table of contents

Overview

The challenge

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

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Solid JS - JS library
  • Astro - UI framework agnostic
  • tailwindcss - For styles

What I learned

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:

core concepts

  • .astro files (for pages, layouts and components)
  • integrations and templates
  • component islands

cool stuff

  • suport for view transitions
  • endpoints & middleware
  • localization

Anatomy of the build (from what I got)

static components -> embedded CSS
astro bundle -> embedded JS
_astro/web.CKEhz0Ta.js: UI Framework (solid)
_astro/client.DKvI4T_I: "renderer"

Base URL

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
});

How to build

# install the dependencies
$ npm install

# build
$ npm run build

# preview
$ npm run preview

the files will be built into the dist folder

Author

Recommended hosts