├── design ├── desktop-design.jpg ├── mobile-design.jpg └── desktop-preview.jpg ├── images ├── favicon-32x32.png ├── icon-calculator.svg ├── icon-team-builder.svg ├── icon-supervisor.svg └── icon-karma.svg ├── .gitignore ├── style-guide.md ├── index.html ├── README-template.md └── README.md /design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frontendmentorio/four-card-feature-section/HEAD/design/desktop-design.jpg -------------------------------------------------------------------------------- /design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frontendmentorio/four-card-feature-section/HEAD/design/mobile-design.jpg -------------------------------------------------------------------------------- /images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frontendmentorio/four-card-feature-section/HEAD/images/favicon-32x32.png -------------------------------------------------------------------------------- /design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frontendmentorio/four-card-feature-section/HEAD/design/desktop-preview.jpg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Design files (please do not remove 🙂) 2 | *.sketch 3 | *.fig 4 | *.xd 5 | 6 | # Dependencies 7 | /node_modules 8 | /.pnp 9 | .pnp.js 10 | yarn.debug.log* 11 | yarn.error.log* 12 | npm-debug.log* 13 | 14 | # Environment and secrets 15 | .env 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | # Testing 22 | /coverage 23 | 24 | # Production 25 | /build 26 | /dist 27 | /.next 28 | /out 29 | 30 | # IDEs and editors 31 | /.idea 32 | /.vscode 33 | *.swp 34 | *.swo 35 | 36 | # Misc 37 | *.log 38 | *.pem 39 | .DS_Store 40 | Thumbs.db 41 | -------------------------------------------------------------------------------- /images/icon-calculator.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-team-builder.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style-guide.md: -------------------------------------------------------------------------------- 1 | # Front-end Style Guide 2 | 3 | ## Layout 4 | 5 | The designs were created to the following widths: 6 | 7 | - Mobile: 375px 8 | - Desktop: 1440px 9 | 10 | > 💡 These are just the design sizes. Ensure content is responsive and meets WCAG requirements by testing the full range of screen sizes from 320px to large screens. 11 | 12 | ## Colors 13 | 14 | ### Primary 15 | 16 | - Red: hsl(0, 78%, 62%) 17 | - Cyan: hsl(180, 62%, 55%) 18 | - Orange: hsl(34, 97%, 64%) 19 | - Blue: hsl(212, 86%, 64%) 20 | 21 | ### Neutral 22 | 23 | - Grey 500: hsl(234, 12%, 34%) 24 | - Grey 400: hsl(212, 6%, 44%) 25 | - White: hsl(0, 0%, 100%) 26 | 27 | ## Typography 28 | 29 | ### Body Copy 30 | 31 | - Font size: 15px 32 | 33 | ### Fonts 34 | 35 | - Family: [Poppins](https://fonts.google.com/specimen/Poppins) 36 | - Weights: 200, 400, 600 37 | 38 | > 💎 [Upgrade to Pro](https://www.frontendmentor.io/pro?ref=style-guide) for design file access to see all design details and get hands-on experience using a professional workflow with tools like Figma. The design file for this challenge also includes a design system and tablet layout to help you build a more accurate solution faster. 39 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Frontend Mentor | Four card feature section 10 | 11 | 12 | 16 | 17 | 18 | 19 | Reliable, efficient delivery 20 | Powered by Technology 21 | 22 | Our Artificial Intelligence powered tools use millions of project data points 23 | to ensure that your project is successful 24 | 25 | Supervisor 26 | Monitors activity to identify project roadblocks 27 | 28 | Team Builder 29 | Scans our talent network to create the optimal team for your project 30 | 31 | Karma 32 | Regularly evaluates our talent to ensure quality 33 | 34 | Calculator 35 | Uses data from past projects to provide better delivery estimates 36 | 37 | 38 | 44 | 45 | -------------------------------------------------------------------------------- /images/icon-supervisor.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-karma.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README-template.md: -------------------------------------------------------------------------------- 1 | # Frontend Mentor - Four card feature section solution 2 | 3 | This is a solution to the [Four card feature section challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/four-card-feature-section-weK1eFYK). 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 optimal layout for the site depending on their device's screen size 28 | 29 | ### Screenshot 30 | 31 | ![](./screenshot.jpg) 32 | 33 | 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. 34 | 35 | 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. 36 | 37 | Then crop/optimize/edit your image however you like, add it to your project, and update the file path in the image above. 38 | 39 | **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.** 40 | 41 | ### Links 42 | 43 | - Solution URL: [Add solution URL here](https://your-solution-url.com) 44 | - Live Site URL: [Add live site URL here](https://your-live-site-url.com) 45 | 46 | ## My process 47 | 48 | ### Built with 49 | 50 | - Semantic HTML5 markup 51 | - CSS custom properties 52 | - Flexbox 53 | - CSS Grid 54 | - Mobile-first workflow 55 | - [React](https://reactjs.org/) - JS library 56 | - [Next.js](https://nextjs.org/) - React framework 57 | - [Styled Components](https://styled-components.com/) - For styles 58 | 59 | **Note: These are just examples. Delete this note and replace the list above with your own choices** 60 | 61 | ### What I learned 62 | 63 | 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. 64 | 65 | To see how you can add code snippets, see below: 66 | 67 | ```html 68 |

Some HTML code I'm proud of

69 | ``` 70 | ```css 71 | .proud-of-this-css { 72 | color: papayawhip; 73 | } 74 | ``` 75 | ```js 76 | const proudOfThisFunc = () => { 77 | console.log('🎉') 78 | } 79 | ``` 80 | 81 | If you want more help with writing markdown, we'd recommend checking out [The Markdown Guide](https://www.markdownguide.org/) to learn more. 82 | 83 | **Note: Delete this note and the content within this section and replace with your own learnings.** 84 | 85 | ### Continued development 86 | 87 | 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. 88 | 89 | **Note: Delete this note and the content within this section and replace with your own plans for continued development.** 90 | 91 | ### Useful resources 92 | 93 | - [Example resource 1](https://www.example.com) - This helped me for XYZ reason. I really liked this pattern and will use it going forward. 94 | - [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. 95 | 96 | **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.** 97 | 98 | ## Author 99 | 100 | - Website - [Add your name here](https://www.your-site.com) 101 | - Frontend Mentor - [@yourusername](https://www.frontendmentor.io/profile/yourusername) 102 | - Twitter - [@yourusername](https://www.twitter.com/yourusername) 103 | 104 | **Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.** 105 | 106 | ## Acknowledgments 107 | 108 | 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. 109 | 110 | **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.** 111 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Frontend Mentor - Four card feature section 2 | 3 | ![Design preview for the Four card feature section coding challenge](./design/desktop-preview.jpg) 4 | 5 | ## Welcome! 👋 6 | 7 | Thanks for checking out this front-end coding challenge. 8 | 9 | [Frontend Mentor](https://www.frontendmentor.io) challenges help you improve your coding skills by building realistic projects. 10 | 11 | **To do this challenge, you need a basic understanding of HTML and CSS.** 12 | 13 | ## The challenge 14 | 15 | Your challenge is to build out this feature section and get it looking as close to the design as possible. 16 | 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. 18 | 19 | Your users should: 20 | 21 | - View the optimal layout for the site depending on their device's screen size 22 | 23 | Want some support on the challenge? [Join our community](https://www.frontendmentor.io/community) and ask questions in the **#help** channel. 24 | 25 | ## Where to find everything 26 | 27 | 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. 28 | 29 | 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`. 30 | 31 | 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). 32 | 33 | You will find all the required assets in the `/images` folder. The assets are already optimized. 34 | 35 | There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts. 36 | 37 | ## Building your project 38 | 39 | 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: 40 | 41 | 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/). 42 | 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. 43 | 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. 44 | 4. Before adding any styles, structure your content with HTML. Writing your HTML first can help focus your attention on creating well-structured content. 45 | 5. Write out the base styles for your project, including general content styles, such as `font-family` and `font-size`. 46 | 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. 47 | 48 | ## Deploying your project 49 | 50 | As mentioned above, there are many ways to host your project for free. Our recommended hosts are: 51 | 52 | - [GitHub Pages](https://pages.github.com/) 53 | - [Vercel](https://vercel.com/) 54 | - [Netlify](https://www.netlify.com/) 55 | 56 | 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). 57 | 58 | ## Create a custom `README.md` 59 | 60 | 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. 61 | 62 | 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. 63 | 64 | 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. 65 | 66 | ## Submitting your solution 67 | 68 | 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. 69 | 70 | 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. 71 | 72 | ## Sharing your solution 73 | 74 | There are multiple places you can share your solution: 75 | 76 | 1. Share your solution page in the **#finished-projects** channel of the [community](https://www.frontendmentor.io/community). 77 | 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. 78 | 3. Share your solution on other social channels like LinkedIn. 79 | 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/). 80 | 81 | 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. 82 | 83 | The more specific you are with your questions the more likely it is that another member of the community will give you feedback. 84 | 85 | ## Got feedback for us? 86 | 87 | 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. 88 | 89 | This challenge is completely free. Please share it with anyone who will find it useful for practice. 90 | 91 | **Have fun building!** 🚀 92 | --------------------------------------------------------------------------------