Skip to content

More functions #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions tip-calculator-app-main/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Avoid accidental upload of the Sketch and Figma design files
#####################################################
## Please do not remove lines 5 and 6 - thanks! 🙂 ##
#####################################################
*.sketch
*.fig

# Avoid accidental XD upload if you convert the design file
###############################################
## Please do not remove line 12 - thanks! 🙂 ##
###############################################
*.xd

# Avoid your project being littered with annoying .DS_Store files!
.DS_Store
.prettierignore
/node_modules/
.sass-cache/
/css/*.map
/logs/
/temp/
.vscode/
74 changes: 71 additions & 3 deletions tip-calculator-app-main/dist/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tip-calculator-app-main/dist/css/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tip-calculator-app-main/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<body>
<main>
<header>
<h1>SPILITTER</h1>
<h1>SPILI <br> TTER</h1>
</header>

<section class="bill-section">
Expand All @@ -33,7 +33,7 @@ <h3>Select Tip %</h3>
<div>15%</div>
<div>25%</div>
<div>50%</div>
<div>Custom</div>
<div class="custom">Custom</div>
</div>
</div>

Expand Down
91 changes: 88 additions & 3 deletions tip-calculator-app-main/src/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,99 @@ body {
font-family: 'Space Mono', monospace;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: $Light-grayish-cyan;
}

section{
background-color:$white;
header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;

h1 {
font-size: 0.7rem;
color: $Very-dark-cyan;
font-weight: 400;
letter-spacing: 0.5rem;
}
}

section {
background-color: $white;
border-radius: 1rem;
padding: 1rem;

.bill-section {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
}

.white-background {
h2 {
color: $Dark-grayish-cyan;
font-size: 0.7rem;
font-weight: 400;
letter-spacing: 0.04rem;
}

.screen {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
background-color: $Very-light-grayish-cyan;
padding: 0.5rem 1rem;
margin: 0.4rem 0;
border-radius: 0.5rem;
}

.screen p {
color: $Very-dark-cyan;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.04rem;
}

.screen img {
width: 8px;
}

.amounts {
h3 {
color: $Dark-grayish-cyan;
font-size: 0.6rem;
font-weight: 400;
}

.discounts {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin: 0.5rem 0;

div {
flex: 0 0 calc(50% - 0.5rem);

background-color: $Very-dark-cyan;
color: $white;
padding: 0.5rem 1rem;
border-radius: 0.2rem;
text-align: center;
font-size: 0.8rem;
}

.custom{
background-color:$Very-light-grayish-cyan;
color:$Very-dark-cyan;
}
}
}
}
}

.attribution {
Expand Down
1 change: 1 addition & 0 deletions tip-calculator-app-main/src/scss/utils/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

$Strong-cyan: hsl(172, 67%, 45%);
$Very-dark-cyan: hsl(183, 100%, 15%);
$Dark-grayish-cyan: hsl(186, 14%, 43%);
Expand Down