Skip to content

Commit a08f361

Browse files
committed
Done
1 parent f357784 commit a08f361

File tree

15 files changed

+580
-0
lines changed

15 files changed

+580
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Avoid accidental upload of the Sketch and Figma design files
2+
#####################################################
3+
## Please do not remove lines 5 and 6 - thanks! 🙂 ##
4+
#####################################################
5+
*.sketch
6+
*.fig
7+
8+
# Avoid accidental XD upload if you convert the design file
9+
###############################################
10+
## Please do not remove line 12 - thanks! 🙂 ##
11+
###############################################
12+
*.xd
13+
/CLONE
14+
/
15+
# Avoid your project being littered with annoying .DS_Store files!
16+
.DS_Store
17+
.prettierignore
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Frontend Mentor - Expenses chart component solution
2+
3+
This is a solution to the [Expenses chart component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/expenses-chart-component-e7yJBUdjwt). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
4+
5+
## Table of contents
6+
7+
- [Overview](#overview)
8+
- [The challenge](#the-challenge)
9+
- [Screenshot](#screenshot)
10+
- [Links](#links)
11+
- [My process](#my-process)
12+
- [Built with](#built-with)
13+
- [What I learned](#what-i-learned)
14+
- [Continued development](#continued-development)
15+
- [Useful resources](#useful-resources)
16+
- [Author](#author)
17+
- [Acknowledgments](#acknowledgments)
18+
19+
**Note: Delete this note and update the table of contents based on what sections you keep.**
20+
21+
## Overview
22+
23+
### The challenge
24+
25+
Users should be able to:
26+
27+
- View the bar chart and hover over the individual bars to see the correct amounts for each day
28+
- See the current day’s bar highlighted in a different colour to the other bars
29+
- View the optimal layout for the content depending on their device’s screen size
30+
- See hover states for all interactive elements on the page
31+
- **Bonus**: Use the JSON data file provided to dynamically size the bars on the chart
32+
33+
### Screenshot
34+
35+
![](./screenshot.jpg)
36+
37+
Add a screenshot of your solution. The easiest way to do this is to use Firefox to view your project, right-click the page and select "Take a Screenshot". You can choose either a full-height screenshot or a cropped one based on how long the page is. If it's very long, it might be best to crop it.
38+
39+
Alternatively, you can use a tool like [FireShot](https://getfireshot.com/) to take the screenshot. FireShot has a free option, so you don't need to purchase it.
40+
41+
Then crop/optimize/edit your image however you like, add it to your project, and update the file path in the image above.
42+
43+
**Note: Delete this note and the paragraphs above when you add your screenshot. If you prefer not to add a screenshot, feel free to remove this entire section.**
44+
45+
### Links
46+
47+
- Solution URL: [Add solution URL here](https://your-solution-url.com)
48+
- Live Site URL: [Add live site URL here](https://your-live-site-url.com)
49+
50+
## My process
51+
52+
### Built with
53+
54+
- Semantic HTML5 markup
55+
- CSS custom properties
56+
- Flexbox
57+
- CSS Grid
58+
- Mobile-first workflow
59+
- [React](https://reactjs.org/) - JS library
60+
- [Next.js](https://nextjs.org/) - React framework
61+
- [Styled Components](https://styled-components.com/) - For styles
62+
63+
**Note: These are just examples. Delete this note and replace the list above with your own choices**
64+
65+
### What I learned
66+
67+
Use this section to recap over some of your major learnings while working through this project. Writing these out and providing code samples of areas you want to highlight is a great way to reinforce your own knowledge.
68+
69+
To see how you can add code snippets, see below:
70+
71+
```html
72+
<h1>Some HTML code I'm proud of</h1>
73+
```
74+
```css
75+
.proud-of-this-css {
76+
color: papayawhip;
77+
}
78+
```
79+
```js
80+
const proudOfThisFunc = () => {
81+
console.log('🎉')
82+
}
83+
```
84+
85+
If you want more help with writing markdown, we'd recommend checking out [The Markdown Guide](https://www.markdownguide.org/) to learn more.
86+
87+
**Note: Delete this note and the content within this section and replace with your own learnings.**
88+
89+
### Continued development
90+
91+
Use this section to outline areas that you want to continue focusing on in future projects. These could be concepts you're still not completely comfortable with or techniques you found useful that you want to refine and perfect.
92+
93+
**Note: Delete this note and the content within this section and replace with your own plans for continued development.**
94+
95+
### Useful resources
96+
97+
- [Example resource 1](https://www.example.com) - This helped me for XYZ reason. I really liked this pattern and will use it going forward.
98+
- [Example resource 2](https://www.example.com) - This is an amazing article which helped me finally understand XYZ. I'd recommend it to anyone still learning this concept.
99+
100+
**Note: Delete this note and replace the list above with resources that helped you during the challenge. These could come in handy for anyone viewing your solution or for yourself when you look back on this project in the future.**
101+
102+
## Author
103+
104+
- Website - [Add your name here](https://www.your-site.com)
105+
- Frontend Mentor - [@yourusername](https://www.frontendmentor.io/profile/yourusername)
106+
- Twitter - [@yourusername](https://www.twitter.com/yourusername)
107+
108+
**Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.**
109+
110+
## Acknowledgments
111+
112+
This is where you can give a hat tip to anyone who helped you out on this project. Perhaps you worked in a team or got some inspiration from someone else's solution. This is the perfect place to give them some credit.
113+
114+
**Note: Delete this note and edit this section's content as necessary. If you completed this challenge by yourself, feel free to delete this section entirely.**
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap");
2+
:root {
3+
--primary__softred: hsl(10, 79%, 65%);
4+
--primary__cyan: hsl(186, 34%, 60%);
5+
--neutral__dark_brown: hsl(25, 47%, 15%);
6+
--neutral__medium_brown: hsl(28, 10%, 53%);
7+
--neutral__Cream: hsl(27, 66%, 92%);
8+
--neutral__pale_orange: hsl(33, 100%, 98%);
9+
--font-family: "DM Sans", sans-serif;
10+
--font_weight_normal: 400;
11+
--font_weight_bold: 700;
12+
}
13+
14+
body {
15+
font-size: 16px;
16+
background: #000;
17+
color: white;
18+
font-family: var(--font-family);
19+
font-weight: var(--font_weight_normal);
20+
background-color: var(--neutral__Cream);
21+
}
22+
23+
p {
24+
margin: 0;
25+
}
26+
27+
h3 {
28+
margin: 0;
29+
}
30+
31+
.b {
32+
font-weight: var(--font_weight_bold);
33+
}
34+
35+
.container {
36+
display: flex;
37+
justify-content: center;
38+
}
39+
40+
.row {
41+
width: 40%;
42+
flex-direction: column;
43+
padding: 10vh 5vw;
44+
}
45+
@media (max-width: 1220px) {
46+
.row {
47+
width: 50vw;
48+
margin: 0;
49+
}
50+
}
51+
@media (max-width: 720px) {
52+
.row {
53+
width: 80vw;
54+
margin: 0;
55+
}
56+
}
57+
@media (max-width: 410px) {
58+
.row {
59+
width: 100vw !important;
60+
margin: 0;
61+
padding: 0;
62+
}
63+
}
64+
65+
.top-bar {
66+
background-color: var(--primary__softred);
67+
justify-content: space-between;
68+
align-items: center;
69+
border-radius: 15px;
70+
width: 100%;
71+
}
72+
73+
.main_content {
74+
border-radius: 15px;
75+
background-color: var(--neutral__pale_orange);
76+
color: var(--neutral__dark_brown);
77+
}
78+
.main_content ._main_content_month_details {
79+
align-items: center;
80+
justify-content: space-between;
81+
}
82+
83+
._main_content_graph {
84+
font-size: 12px;
85+
text-align: center;
86+
border-bottom: 1px solid #ddd;
87+
padding: 30px 0 20px;
88+
margin-bottom: 20px;
89+
align-items: baseline;
90+
}
91+
._main_content_graph .graph_tile {
92+
width: 30px;
93+
height: 40px;
94+
border-radius: 5px 5px 0 0;
95+
background-color: var(--primary__softred);
96+
position: relative;
97+
}
98+
._main_content_graph .graph_tile:before {
99+
content: "$34.5";
100+
position: absolute;
101+
top: -25px;
102+
left: -5px;
103+
right: 0;
104+
width: 40px;
105+
padding: 2px 0;
106+
background-color: var(--neutral__dark_brown);
107+
border-radius: 5px;
108+
color: var(--neutral__pale_orange);
109+
font-weight: var(--font_weight_bold);
110+
font-size: 12px;
111+
opacity: 0;
112+
transition: all 350ms ease-in-out;
113+
}
114+
._main_content_graph:hover :before {
115+
opacity: 1;
116+
}
117+
._main_content_graph .tue {
118+
height: 80px;
119+
}
120+
._main_content_graph .wed {
121+
height: 120px;
122+
background-color: var(--primary__cyan);
123+
}
124+
._main_content_graph .thu {
125+
height: 65px;
126+
}
127+
._main_content_graph .fri {
128+
height: 45px;
129+
}
130+
._main_content_graph .sat {
131+
height: 90px;
132+
}
133+
._main_content_graph .sun {
134+
height: 55px;
135+
}/*# sourceMappingURL=style.css.map */

expenses-chart-component-main/assets/css/style.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)