Code Monkey home page Code Monkey logo

project-business-site's Introduction

Business Site ๐Ÿ“š

In this project I've built a business website about a book subscription service which I've called "Bella's Book Club".

The problem

The main task was to build a business site with a hero image, a signup form and a FAQ accordion. The tools/techniques used for this project was HTML, CSS (general styling, flexbox, responsive design) and JavaScript.

First I did a general sketch on paper of how I wanted the layout to look like on different devices. After that I started to create my backlog for the project which I continuously added tasks to. Then I started coding and began with the general layout for the mobile device. With most of the basic HTML-structure in place I started adding styling and content, which I continuously adjusted throughout the whole project with the help of the dev tools in Chrome. I also added the media query to be able to make the site responsive and look different on mobile, tablet and desktop.

For the hero image I used the picture HTML-tag and added three image sources with different resolutions and different breakpoints in order for the hero image to be responsive.

For the signup form I used the form HTML-tag and added a lot of different input types and styled them a bit with CSS.

For the FAQ accordion I created a general structure by adding a lot of div HTML-tags and added some styling with CSS. To get the accordion to work (e.g. collapse to show and hide text) I used Javascript to modify the DOM. I tried to write the code as short and concise as possible in order to have the option to add more questions. The hardest part in my opinion was to get only one answer to be shown at a time and close the one open. I solved this by adding an if statement to test whether a question was open and if so, closed it (by removing the active class) if it wasn't the question that was clicked.

If I had more time, I would have added more animations to the project (the accordion, the hamburger menu) and styled the signup form a bit more. I especially wanted to style the radio buttons and checkboxes more but also the text input fields that is currently shown as invalid from the start (which from a user's point of view might seem a bit aggressive).

View it live

To view the site I've created, check it here: https://lucid-mccarthy-2987ec.netlify.app/

project-business-site's People

Contributors

isabellam5 avatar idlefingers avatar hannapettersson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.