https://github.com/ayitinya/frontend-mentor-tip-calculator-app
Frontend mentor tip calculator app solution
https://github.com/ayitinya/frontend-mentor-tip-calculator-app
Last synced: 5 months ago
JSON representation
Frontend mentor tip calculator app solution
- Host: GitHub
- URL: https://github.com/ayitinya/frontend-mentor-tip-calculator-app
- Owner: ayitinya
- Created: 2021-10-19T16:59:09.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-19T19:42:23.000Z (almost 5 years ago)
- Last Synced: 2025-03-02T08:20:52.463Z (over 1 year ago)
- Language: HTML
- Homepage: frontend-mentor-tip-calculator-app-beryl.vercel.app
- Size: 273 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frontend Mentor - Tip calculator app solution
This is a solution to the [Tip calculator app challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/tip-calculator-app-ugJNGbJUX). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshots)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Author](#author)
## Overview
### The challenge
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Calculate the correct tip and total cost of the bill per person
### Screenshots



### Links
- Solution URL: [Add solution URL here](https://github.com/ayitinya/frontend-mentor-tip-calculator-app.git)
## My process
### Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Vanilla JS
### What I learned
1. I learned to remove the number scrollbar in a number input field
```html
```
```css
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
}
```
````
2. Using the ::placeholder pseudo-element to style input placeholders
```css
.input::placeholder {
text-align: end;
}
````
3. Practiced flexbox more
4. Learned about the css box-model
```css
element {
box-sizing: border-box|content-box;
}
```
## Author
- Frontend Mentor - [@ayitinya](https://www.frontendmentor.io/profile/ayitinya)
- Twitter - [@ayitinya](https://www.twitter.com/ayintinya)