Skip to content

Commit 3b3b418

Browse files
committed
added fonts to huddle, fixed readme file issues
1 parent 5f1b07f commit 3b3b418

File tree

16 files changed

+96
-144
lines changed

16 files changed

+96
-144
lines changed

3-column-preview-card-component-main/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ This is a solution to the [QR code component challenge on Frontend Mentor](https
88

99
### Links
1010

11-
- Solution URL: [Github](https://github.com/iamenochlee/3-column-preview-card-component-main)
12-
- Live Site URL: [Github Pages](https://iamenochlee.github.io/3-column-preview-card-component-main/)
11+
- Solution URL: [Github](https://github.com/iamenochlee/frontendmentor/3-column-preview-card-component-main)
12+
- Live Site URL: [Github Pages](https://iamenochlee.github.io/frontendmentor/3-column-preview-card-component-main/)
1313

1414
## My process
1515

Lines changed: 25 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,41 @@
1-
# Frontend Mentor - Huddle landing page with curved sections
1+
# Frontend Mentor - huddle landing page exercise
22

3-
![Header/intro section for the Huddle landing page with curved sections](./design/desktop-preview.jpg)
3+
### Screenshot
44

5-
## Welcome! 👋
5+
![](images/Frontend%20Mentor%20_%20Huddle%20landing%20page%20with%20curved%20sections.png)
66

7-
Thanks for checking out this front-end coding challenge.
7+
### Links
88

9-
[Frontend Mentor](https://www.frontendmentor.io) challenges help you improve your coding skills by building realistic projects.
9+
- Solution URL: [Github](https://github.com/iamenochlee/frontendmentor/stats-preview-card-component-main/)
10+
- Live Site URL: [Github Pages](https://iamenochlee.github.io/frontendmentor/stats-preview-card-component-main/)
1011

11-
**To do this challenge, you need a basic understanding of HTML and CSS.**
12+
## My process
1213

13-
## The challenge
14+
### Built with
1415

15-
Your challenge is to build out this landing page and get it looking as close to the design as possible.
16+
- Semantic HTML5 markup
17+
- CSS custom properties
18+
- CSS Grid
19+
- CSS Flex
20+
- SASS/SCSS
21+
- Javascript
1622

17-
You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.
1823

19-
Your users should be able to:
24+
### Continued development
2025

21-
- View the optimal layout for the site depending on their device's screen size
22-
- See hover states for all interactive elements on the page
26+
I am currently learning react, and will proceed with other frontend mentor exercises to help improve me in building responsive layouts and websites.
2327

24-
Want some support on the challenge? [Join our Slack community](https://www.frontendmentor.io/slack) and ask questions in the **#help** channel.
28+
### Useful resources
2529

26-
## Where to find everything
30+
- [Centering Divs](https://blog.hubspot.com/website/center-div-css#:~:text=You%20can%20do%20this%20by,the%20div)%20vertically%20and%20horizontally.) - This was helpful in centering the boxes in this exercise, highly recommended.
31+
- [Working with Images](https://www.w3schools.com/css/css3_images.asp) - This is an amazing article which helped me finally understand images. I'd recommend it to anyone still learning this concept.
32+
- [Sass Files not rendering images](https://stackoverflow.com/questions/50205831/my-scss-files-wont-load-on-github-html-pages-for-some-reason)
33+
- [W3 resources on Form Validation](https://www.w3resource.com/javascript/form/javascript-sample-registration-form-validation.php)
2734

28-
Your task is to build out the project to the designs inside the `/design` folder. You will find both a mobile and a desktop version of the design.
2935

30-
The designs are in JPG static format. Using JPGs will mean that you'll need to use your best judgment for styles such as `font-size`, `padding` and `margin`.
36+
## Author
3137

32-
If you would like the design files (we provide Sketch & Figma versions) to inspect the design in more detail, you can [subscribe as a PRO member](https://www.frontendmentor.io/pro).
38+
- enochlee
3339

34-
You will find all the required assets in the `/images` folder. The assets are already optimized.
35-
36-
There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts.
37-
38-
## Building your project
39-
40-
Feel free to use any workflow that you feel comfortable with. Below is a suggested process, but do not feel like you need to follow these steps:
41-
42-
1. Initialize your project as a public repository on [GitHub](https://github.com/). Creating a repo will make it easier to share your code with the community if you need help. If you're not sure how to do this, [have a read-through of this Try Git resource](https://try.github.io/).
43-
2. Configure your repository to publish your code to a web address. This will also be useful if you need some help during a challenge as you can share the URL for your project with your repo URL. There are a number of ways to do this, and we provide some recommendations below.
44-
3. Look through the designs to start planning out how you'll tackle the project. This step is crucial to help you think ahead for CSS classes to create reusable styles.
45-
4. Before adding any styles, structure your content with HTML. Writing your HTML first can help focus your attention on creating well-structured content.
46-
5. Write out the base styles for your project, including general content styles, such as `font-family` and `font-size`.
47-
6. Start adding styles to the top of the page and work down. Only move on to the next section once you're happy you've completed the area you're working on.
48-
49-
## Deploying your project
50-
51-
As mentioned above, there are many ways to host your project for free. Our recommend hosts are:
52-
53-
- [GitHub Pages](https://pages.github.com/)
54-
- [Vercel](https://vercel.com/)
55-
- [Netlify](https://www.netlify.com/)
56-
57-
You can host your site using one of these solutions or any of our other trusted providers. [Read more about our recommended and trusted hosts](https://medium.com/frontend-mentor/frontend-mentor-trusted-hosting-providers-bf000dfebe).
58-
59-
## Create a custom `README.md`
60-
61-
We strongly recommend overwriting this `README.md` with a custom one. We've provided a template inside the [`README-template.md`](./README-template.md) file in this starter code.
62-
63-
The template provides a guide for what to add. A custom `README` will help you explain your project and reflect on your learnings. Please feel free to edit our template as much as you like.
64-
65-
Once you've added your information to the template, delete this file and rename the `README-template.md` file to `README.md`. That will make it show up as your repository's README file.
66-
67-
## Submitting your solution
68-
69-
Submit your solution on the platform for the rest of the community to see. Follow our ["Complete guide to submitting solutions"](https://medium.com/frontend-mentor/a-complete-guide-to-submitting-solutions-on-frontend-mentor-ac6384162248) for tips on how to do this.
70-
71-
Remember, if you're looking for feedback on your solution, be sure to ask questions when submitting it. The more specific and detailed you are with your questions, the higher the chance you'll get valuable feedback from the community.
72-
73-
## Sharing your solution
74-
75-
There are multiple places you can share your solution:
76-
77-
1. Share your solution page in the **#finished-projects** channel of the [Slack community](https://www.frontendmentor.io/slack).
78-
2. Tweet [@frontendmentor](https://twitter.com/frontendmentor) and mention **@frontendmentor**, including the repo and live URLs in the tweet. We'd love to take a look at what you've built and help share it around.
79-
3. Share your solution on other social channels like LinkedIn.
80-
4. Blog about your experience building your project. Writing about your workflow, technical choices, and talking through your code is a brilliant way to reinforce what you've learned. Great platforms to write on are [dev.to](https://dev.to/), [Hashnode](https://hashnode.com/), and [CodeNewbie](https://community.codenewbie.org/).
81-
82-
We provide templates to help you share your solution once you've submitted it on the platform. Please do edit them and include specific questions when you're looking for feedback.
83-
84-
The more specific you are with your questions the more likely it is that another member of the community will give you feedback.
85-
86-
## Got feedback for us?
87-
88-
We love receiving feedback! We're always looking to improve our challenges and our platform. So if you have anything you'd like to mention, please email hi[at]frontendmentor[dot]io.
89-
90-
This challenge is completely free. Please share it with anyone who will find it useful for practice.
91-
92-
**Have fun building!** 🚀
40+
- Frontend Mentor - [@iamenochlee](https://www.frontendmentor.io/profile/iamenochlee)
41+
- Twitter - [@iamenochlee](https://twitter.com/iamenochlee)

huddle-landing-page-with-curved-sections-master/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
77
<title>Frontend Mentor | Huddle landing page with curved sections</title>
88
<meta name="author" content="enochlee">
9+
<!-- stylesheet -->
910
<link rel="stylesheet" href="./styles/css/index.min.css">
11+
<!-- Materials and Fonts -->
12+
<link rel="preconnect" href="https://fonts.googleapis.com">
13+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
14+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap" rel="stylesheet">
15+
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap" rel="stylesheet">
1016
<script src="https://kit.fontawesome.com/29b632333c.js" crossorigin="anonymous"></script>
1117
</head>
1218
<body>

huddle-landing-page-with-curved-sections-master/styles/_base.scss

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ header{
2323
height: auto;
2424
padding: calc($padding-sm + 8px) calc($padding-sm - 5px) calc($padding-sm + 8px) calc($padding-sm + 8px) ;
2525
margin-bottom: $margin-xl;
26+
font-family:'Poppins', sans-serif;
27+
font-weight: 700;
2628

2729
@include desktop{
2830
padding-top: 5.2%;
@@ -35,6 +37,7 @@ header{
3537

3638
p{
3739
font-size: $fs-pr;
40+
font-family: 'Open Sans', sans-serif;
3841
}
3942

4043

@@ -107,6 +110,7 @@ main {
107110
p{
108111
margin-bottom: $margin-md;
109112
text-align: center;
113+
font-weight: weights(bold);
110114

111115
@include desktop{
112116
text-align: center;
@@ -141,14 +145,7 @@ main {
141145
@include desktop{
142146
width: 70%;
143147
max-width: 63.8em;
144-
margin-bottom: calc($margin-xxl - 10px);
145-
height: 49em;
146-
}
147-
@include tablet{
148-
height: auto;
149-
}
150-
@media(min-width:1090px) and (max-width:1200px){
151-
height: auto;
148+
margin-bottom: $margin-xxl;
152149
}
153150
}
154151

@@ -597,21 +594,23 @@ main {
597594
.fa-brands.fa-square-twitter{
598595
font-size: 25px;
599596
padding-right: 14px;
597+
transition: all 0.5s;
598+
cursor: pointer;
600599
&:hover{
601600
color: $icons-hover;
602601
}
603602

604603
@include desktop{
605-
width: 34px;
604+
font-size: 35px;
606605
}
607606
}
608607

609608
svg{
610609
width: 23px;
610+
cursor: pointer;
611611
margin-right: 14px;
612-
613612
&:hover{
614-
fill: $icons-hover;
613+
fill: $icons-hover;
615614
}
616615

617616
@include desktop{

huddle-landing-page-with-curved-sections-master/styles/_variables.scss

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ $tablet : 35em;
6363
$desktop: 51em;
6464

6565
//images
66-
$bg-section-top-mobile-1: url("./images/bg-section-top-mobile-1.svg");
67-
$bg-section-top-mobile-2: url("./images/bg-section-top-mobile-2.svg");
68-
$bg-section-bottom-mobile-1: url("./images/bg-section-bottom-mobile-2.svg");
69-
$bg-section-bottom-mobile-2: url("./images/bg-section-bottom-mobile-2.svg");
70-
$bg-footer-mobile: url("./images/bg-footer-top-mobile.svg");
71-
72-
73-
$bg-section-top-desktop-1: url("./images/bg-section-top-desktop-1.svg");
74-
$bg-section-top-desktop-2: url("./images/bg-section-top-desktop-2.svg");
75-
$bg-section-bottom-desktop-1: url("./images/bg-section-bottom-desktop-2.svg");
76-
$bg-section-bottom-desktop-2: url("./images/bg-section-bottom-desktop-2.svg");
77-
$bg-footer-desktop: url("./images/bg-footer-top-desktop.svg");
66+
$bg-section-top-mobile-1: url("../../images/bg-section-top-mobile-1.svg");
67+
$bg-section-top-mobile-2: url("../../images/bg-section-top-mobile-2.svg");
68+
$bg-section-bottom-mobile-1: url("../../images/bg-section-bottom-mobile-2.svg");
69+
$bg-section-bottom-mobile-2: url("../../images/bg-section-bottom-mobile-2.svg");
70+
$bg-footer-mobile: url("../../images/bg-footer-top-mobile.svg");
71+
72+
73+
$bg-section-top-desktop-1: url("../../images/bg-section-top-desktop-1.svg");
74+
$bg-section-top-desktop-2: url("../../images/bg-section-top-desktop-2.svg");
75+
$bg-section-bottom-desktop-1: url("../../images/bg-section-bottom-desktop-2.svg");
76+
$bg-section-bottom-desktop-2: url("../../images/bg-section-bottom-desktop-2.svg");
77+
$bg-footer-desktop: url("../../images/bg-footer-top-desktop.svg");

huddle-landing-page-with-curved-sections-master/styles/css/index.css

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ header {
133133
height: auto;
134134
padding: calc(1em + 8px) calc(1em - 5px) calc(1em + 8px) calc(1em + 8px);
135135
margin-bottom: 5em;
136+
font-family: "Poppins", sans-serif;
137+
font-weight: 700;
136138
}
137139
@media (min-width: 51em) {
138140
header {
@@ -145,6 +147,7 @@ header {
145147

146148
p {
147149
font-size: 0.85rem;
150+
font-family: "Open Sans", sans-serif;
148151
}
149152

150153
header {
@@ -165,7 +168,7 @@ header .logo {
165168
}
166169

167170
main {
168-
background-image: url("/images/bg-section-top-mobile-1.svg");
171+
background-image: url("../../images/bg-section-top-mobile-1.svg");
169172
background-position: bottom;
170173
background-size: contain;
171174
-o-object-fit: fill;
@@ -175,7 +178,7 @@ main {
175178
}
176179
@media (min-width: 51em) {
177180
main {
178-
background: url("/images/bg-section-top-desktop-1.svg");
181+
background: url("../../images/bg-section-top-desktop-1.svg");
179182
background-position: bottom;
180183
background-size: contain;
181184
-o-object-fit: fill;
@@ -210,6 +213,7 @@ main .intro h1 {
210213
main .intro p {
211214
margin-bottom: 2.5em;
212215
text-align: center;
216+
font-weight: 600;
213217
}
214218
@media (min-width: 51em) {
215219
main .intro p {
@@ -246,18 +250,7 @@ main .intro .intro__image {
246250
main .intro .intro__image {
247251
width: 70%;
248252
max-width: 63.8em;
249-
margin-bottom: calc(8em - 10px);
250-
height: 49em;
251-
}
252-
}
253-
@media (min-width: 35em) and (max-width: 69em) {
254-
main .intro .intro__image {
255-
height: auto;
256-
}
257-
}
258-
@media (min-width: 1090px) and (max-width: 1200px) {
259-
main .intro .intro__image {
260-
height: auto;
253+
margin-bottom: 8em;
261254
}
262255
}
263256
main .intro .intro__stats {
@@ -441,7 +434,7 @@ main .intro .intro__stats .intro__stats--message small {
441434
}
442435

443436
.article__two {
444-
background-image: url("/images/bg-section-bottom-mobile-2.svg"), url("/images/bg-section-top-mobile-2.svg");
437+
background-image: url("../../images/bg-section-bottom-mobile-2.svg"), url("../../images/bg-section-top-mobile-2.svg");
445438
background-position: top, bottom;
446439
background-size: contain;
447440
width: 100%;
@@ -450,7 +443,7 @@ main .intro .intro__stats .intro__stats--message small {
450443
@media (min-width: 51em) {
451444
.article__two {
452445
justify-content: space-between;
453-
background-image: url("/images/bg-section-bottom-desktop-2.svg"), url("/images/bg-section-top-desktop-2.svg");
446+
background-image: url("../../images/bg-section-bottom-desktop-2.svg"), url("../../images/bg-section-top-desktop-2.svg");
454447
padding: 0 9.02%;
455448
padding-bottom: calc(6rem + 250px);
456449
flex-direction: row;
@@ -527,7 +520,7 @@ main .intro .intro__stats .intro__stats--message small {
527520
}
528521

529522
.article__four {
530-
background-image: url("/images/bg-section-bottom-mobile-2.svg"), url("/images/bg-footer-top-mobile.svg");
523+
background-image: url("../../images/bg-section-bottom-mobile-2.svg"), url("../../images/bg-footer-top-mobile.svg");
531524
background-position: top, bottom;
532525
background-size: contain;
533526
-o-object-fit: fill;
@@ -538,7 +531,7 @@ main .intro .intro__stats .intro__stats--message small {
538531
}
539532
@media (min-width: 51em) {
540533
.article__four {
541-
background-image: url("/images/bg-section-bottom-desktop-2.svg"), url("/images/bg-footer-top-desktop.svg");
534+
background-image: url("../../images/bg-section-bottom-desktop-2.svg"), url("../../images/bg-footer-top-desktop.svg");
542535
padding: 0 9.02%;
543536
padding-top: calc(6rem + 220px);
544537
padding-bottom: -10px;
@@ -709,6 +702,8 @@ main .intro .intro__stats .intro__stats--message small {
709702
.footer .contact .icons .fa-brands.fa-square-twitter {
710703
font-size: 25px;
711704
padding-right: 14px;
705+
transition: all 0.5s;
706+
cursor: pointer;
712707
}
713708
.footer .contact .icons .fab.fa-instagram:hover,
714709
.footer .contact .icons .fa-brands.fa-square-twitter:hover {
@@ -717,11 +712,12 @@ main .intro .intro__stats .intro__stats--message small {
717712
@media (min-width: 51em) {
718713
.footer .contact .icons .fab.fa-instagram,
719714
.footer .contact .icons .fa-brands.fa-square-twitter {
720-
width: 34px;
715+
font-size: 35px;
721716
}
722717
}
723718
.footer .contact .icons svg {
724719
width: 23px;
720+
cursor: pointer;
725721
margin-right: 14px;
726722
}
727723
.footer .contact .icons svg:hover {

0 commit comments

Comments
 (0)