Skip to content

Commit 835ccbf

Browse files
committed
refactoring project, separate styles into components, update readme file
1 parent dc8f59f commit 835ccbf

8 files changed

Lines changed: 114 additions & 182 deletions

File tree

README.md

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# QR Code Component | Frontend Mentor
22

3-
**Part 1**
3+
**Challenge 1**
44

55
This is a solution to the [QR code component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/qr-code-component-iux_sIO_H). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
66

@@ -11,12 +11,9 @@ This is a solution to the [QR code component challenge on Frontend Mentor](https
1111
- [🔎 Overview](#-overview)
1212
- [📸 Screenshot](#-screenshot)
1313
- [🔗 Links](#-links)
14-
- [🧠 My process](#-my-process)
1514
- [🛠️ Built with](#️-built-with)
16-
- [🎓 What I learned](#-what-i-learned)
17-
- [📈 Continued development](#-continued-development)
15+
- [🧠 My process](#-my-process)
1816
- [🔜 Next Project](#-next-project)
19-
- [🗃️ Useful resources](#️-useful-resources)
2017
- [👤 Author](#-author)
2118
- [🌐 Connect with Me](#-connect-with-me)
2219
- [💻 Coding Profiles](#-coding-profiles)
@@ -31,12 +28,8 @@ This is a solution to the [QR code component challenge on Frontend Mentor](https
3128

3229
### 🔗 Links
3330

34-
- [🔴 Live Demo](https://github.com/DalaScript/qr-code-component)
35-
- [🗂️ GitHub Repository](https://DalaScript.github.io/qr-code-component/)
36-
37-
---
38-
39-
## 🧠 My process
31+
- [🔴 Live Demo](https://DalaScript.github.io/qr-code-component/)
32+
- [🗂️ GitHub Repository](https://github.com/DalaScript/qr-code-component)
4033

4134
### 🛠️ Built with
4235

@@ -45,33 +38,14 @@ This is a solution to the [QR code component challenge on Frontend Mentor](https
4538
- Flexbox
4639
- Mobile-first workflow
4740
- bem - [Block Element Modifier](https://getbem.com/introduction/)
48-
- scss - [Sassy Cascading Style Sheets](https://sass-lang.com/documentation/at-rules/control/for/)
49-
50-
### 🎓 What I learned
5141

52-
- Actually, nothing special, It was pretty easy for me.
53-
54-
> 🚀 For me, this challenge was more about **practice** and gaining additional **experience**,
55-
> rather than learning something entirely new.
56-
>
57-
> 👨‍💻 Since I’m not a beginner and already familiar with these technologies,
58-
> I approached it with confidence — and still, I truly **enjoyed working on it**.
59-
>
60-
> 🎯 Overall, I consider this a very **valuable and enjoyable experience**.
61-
62-
### 📈 Continued development
42+
---
6343

64-
- First I want to finish the javascript course I'm taking on freecodecamp, I'm also going through the learning path on Frontendmentor, and after that I want to focus more on React, Next.js and Node.js.
44+
## 🧠 My process
6545

6646
### 🔜 Next Project
6747

68-
- Recipe Page | *Part 2*[View Repository](https://github.com/DalaScript/recipe-page)
69-
70-
### 🗃️ Useful resources
71-
72-
- [ChatGPT](https://chatgpt.com/) - He is my hero, if I need something fast, if I can't understand something, or if I can't find it on the internet, I always ask him.
73-
- [W3Schools](https://www.w3schools.com/) - This is my favorite documentation platform I've been using since I started programming, it's the best explained resource.
74-
- [YouTube](https://www.youtube.com/) - I'm always looking for news and listening to other developers, sharing their experiences so that I can see many different solutions to a problem.
48+
- Recipe Page | *Challenge 2*[View Repository](https://github.com/DalaScript/recipe-page)
7549

7650
---
7751

assets/scss/styles.scss

Lines changed: 0 additions & 77 deletions
This file was deleted.

assets/styles/base/reset.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* || Reset
2+
*************************/
3+
* {
4+
margin: 0;
5+
padding: 0;
6+
box-sizing: border-box;
7+
}

assets/styles/base/variables.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/* || Fonts Imports ('Outfit')
2+
*************************/
3+
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
4+
5+
/* || Global Variables
6+
*************************/
7+
:root {
8+
/* || Colors
9+
*************************/
10+
--white: #ffffff;
11+
--light-gray: #d6e2f0;
12+
--grayish-blue: #7b879d;
13+
--dark-blue: #1f3251;
14+
15+
/* || Fonts
16+
*************************/
17+
--outfit: "Outfit", sans-serif;
18+
19+
/* || Spacing
20+
*************************/
21+
--space-xs: 0.5rem;
22+
--space-sm: 1rem;
23+
--space-md: 1.5rem;
24+
--space-lg: 2.5rem;
25+
26+
/* || Font sizes
27+
*************************/
28+
--fs-sm: 0.9375rem;
29+
--fs-md: 1.375rem;
30+
}

assets/styles/components/card.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* || Card
2+
*************************/
3+
.card {
4+
padding: var(--space-sm) var(--space-sm) var(--space-lg);
5+
max-width: 320px;
6+
border-radius: 20px;
7+
8+
background-color: var(--white);
9+
box-shadow: 0px 25px 25px #0000000c;
10+
}
11+
12+
.card__img {
13+
width: 100%;
14+
height: auto;
15+
border-radius: 10px;
16+
display: block;
17+
}
18+
19+
.card__content {
20+
margin-top: var(--space-md);
21+
padding: 0 var(--space-sm);
22+
text-align: center;
23+
}
24+
25+
.card__title {
26+
font-size: var(--fs-md);
27+
color: var(--dark-blue);
28+
}
29+
30+
.card__description {
31+
margin-top: var(--space-sm);
32+
33+
font-size: var(--fs-sm);
34+
font-weight: 400;
35+
letter-spacing: 0.1875px;
36+
line-height: 1.1875rem;
37+
38+
color: var(--grayish-blue);
39+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* || Body
2+
*************************/
3+
body {
4+
background-color: var(--light-gray);
5+
font-family: var(--outfit);
6+
}
7+
8+
/* || Main
9+
*************************/
10+
main {
11+
height: 100vh;
12+
13+
display: flex;
14+
justify-content: center;
15+
align-items: center;
16+
}

assets/styles/styles.css

Lines changed: 0 additions & 59 deletions
This file was deleted.

index.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,30 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
76
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
7+
<title>QR Code Component | Frontend Mentor</title>
88

9-
<link rel="preconnect" href="https://fonts.googleapis.com">
10-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11-
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap" rel="stylesheet">
12-
13-
<title>QR code component | Frontend Mentor</title>
14-
<link rel="stylesheet" href="./assets/styles/styles.css">
9+
<!-- Styles -->
10+
<!-- Base -->
11+
<link rel="stylesheet" href="./assets/styles/base/variables.css" />
12+
<link rel="stylesheet" href="./assets/styles/base/reset.css" />
13+
<!-- Page Layout -->
14+
<link rel="stylesheet" href="./assets/styles/layout/page-layout.css">
15+
<!-- Components -->
16+
<link rel="stylesheet" href="./assets/styles/components/card.css" />
1517
</head>
1618
<body>
1719
<main>
1820
<article class="card">
19-
<img class="card__img" src="./assets/images/image-qr-code.png" width="288" height="288" alt="qr code">
20-
<section class="card__content">
21-
<h2 class="card__title">
21+
<img class="card__img" src="./assets/images/image-qr-code.png" width="288" height="288" alt="QR code" /|>
22+
<div class="card__content">
23+
<h1 class="card__title">
2224
Improve your front-end skills by building projects
23-
</h2>
24-
<p class="card__subtitle">
25+
</h1>
26+
<p class="card__description">
2527
Scan the QR code to visit Frontend Mentor and take your coding skills to the next level
2628
</p>
27-
</section>
29+
</div>
2830
</article>
2931
</main>
3032
</body>

0 commit comments

Comments
 (0)