├── .gitignore ├── README-template.md ├── README.md ├── design ├── active-states.jpg ├── desktop-design.jpg ├── desktop-preview.jpg └── mobile-design.jpg ├── images ├── bg-stars.svg ├── favicon-32x32.png ├── icon-facebook.svg ├── icon-instagram.svg ├── icon-pinterest.svg └── pattern-hills.svg ├── index.html └── style-guide.md /.gitignore: -------------------------------------------------------------------------------- 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 | 14 | # Avoid your project being littered with annoying .DS_Store files! 15 | .DS_Store 16 | .prettierignore -------------------------------------------------------------------------------- /README-template.md: -------------------------------------------------------------------------------- 1 | # Frontend Mentor - Launch countdown timer solution 2 | 3 | This is a solution to the [Launch countdown timer challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/launch-countdown-timer-N0XkGfyz-). 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 | - See hover states for all interactive elements on the page 28 | - See a live countdown timer that ticks down every second (start the count at 14 days) 29 | - **Bonus**: When a number changes, make the card flip from the middle 30 | 31 | ### Screenshot 32 | 33 | ![](./screenshot.jpg) 34 | 35 | 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. 36 | 37 | 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. 38 | 39 | Then crop/optimize/edit your image however you like, add it to your project, and update the file path in the image above. 40 | 41 | **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.** 42 | 43 | ### Links 44 | 45 | - Solution URL: [Add solution URL here](https://your-solution-url.com) 46 | - Live Site URL: [Add live site URL here](https://your-live-site-url.com) 47 | 48 | ## My process 49 | 50 | ### Built with 51 | 52 | - Semantic HTML5 markup 53 | - CSS custom properties 54 | - Flexbox 55 | - CSS Grid 56 | - Mobile-first workflow 57 | - [React](https://reactjs.org/) - JS library 58 | - [Next.js](https://nextjs.org/) - React framework 59 | - [Styled Components](https://styled-components.com/) - For styles 60 | 61 | **Note: These are just examples. Delete this note and replace the list above with your own choices** 62 | 63 | ### What I learned 64 | 65 | 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. 66 | 67 | To see how you can add code snippets, see below: 68 | 69 | ```html 70 |

Some HTML code I'm proud of

71 | ``` 72 | ```css 73 | .proud-of-this-css { 74 | color: papayawhip; 75 | } 76 | ``` 77 | ```js 78 | const proudOfThisFunc = () => { 79 | console.log('🎉') 80 | } 81 | ``` 82 | 83 | If you want more help with writing markdown, we'd recommend checking out [The Markdown Guide](https://www.markdownguide.org/) to learn more. 84 | 85 | **Note: Delete this note and the content within this section and replace with your own learnings.** 86 | 87 | ### Continued development 88 | 89 | 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. 90 | 91 | **Note: Delete this note and the content within this section and replace with your own plans for continued development.** 92 | 93 | ### Useful resources 94 | 95 | - [Example resource 1](https://www.example.com) - This helped me for XYZ reason. I really liked this pattern and will use it going forward. 96 | - [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. 97 | 98 | **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.** 99 | 100 | ## Author 101 | 102 | - Website - [Add your name here](https://www.your-site.com) 103 | - Frontend Mentor - [@yourusername](https://www.frontendmentor.io/profile/yourusername) 104 | - Twitter - [@yourusername](https://www.twitter.com/yourusername) 105 | 106 | **Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.** 107 | 108 | ## Acknowledgments 109 | 110 | 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. 111 | 112 | **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.** 113 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Frontend Mentor - Launch countdown timer 2 | 3 | ![Design preview for the Launch countdown timer 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 good understanding of HTML, CSS and JavaScript.** 12 | 13 | ## The challenge 14 | 15 | Your challenge is to build out this countdown timer 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 be able to: 20 | 21 | - See hover states for all interactive elements on the page 22 | - See a live countdown timer that ticks down every second (start the count at 14 days) 23 | - **Bonus**: When a number changes, make the card flip from the middle 24 | 25 | Want some support on the challenge? [Join our Slack community](https://www.frontendmentor.io/slack) and ask questions in the **#help** channel. 26 | 27 | ## Where to find everything 28 | 29 | 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. 30 | 31 | 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`. 32 | 33 | 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). 34 | 35 | You will find all the required assets in the `/images` folder. The assets are already optimized. 36 | 37 | There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts. 38 | 39 | ## Building your project 40 | 41 | 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: 42 | 43 | 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/). 44 | 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. 45 | 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. 46 | 4. Before adding any styles, structure your content with HTML. Writing your HTML first can help focus your attention on creating well-structured content. 47 | 5. Write out the base styles for your project, including general content styles, such as `font-family` and `font-size`. 48 | 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. 49 | 50 | ## Deploying your project 51 | 52 | As mentioned above, there are many ways to host your project for free. Our recommend hosts are: 53 | 54 | - [GitHub Pages](https://pages.github.com/) 55 | - [Vercel](https://vercel.com/) 56 | - [Netlify](https://www.netlify.com/) 57 | 58 | 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). 59 | 60 | ## Create a custom `README.md` 61 | 62 | 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. 63 | 64 | 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. 65 | 66 | 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. 67 | 68 | ## Submitting your solution 69 | 70 | 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. 71 | 72 | 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. 73 | 74 | ## Sharing your solution 75 | 76 | There are multiple places you can share your solution: 77 | 78 | 1. Share your solution page in the **#finished-projects** channel of the [Slack community](https://www.frontendmentor.io/slack). 79 | 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. 80 | 3. Share your solution on other social channels like LinkedIn. 81 | 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/). 82 | 83 | 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. 84 | 85 | The more specific you are with your questions the more likely it is that another member of the community will give you feedback. 86 | 87 | ## Got feedback for us? 88 | 89 | 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. 90 | 91 | This challenge is completely free. Please share it with anyone who will find it useful for practice. 92 | 93 | **Have fun building!** 🚀 94 | -------------------------------------------------------------------------------- /design/active-states.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveen570/launch-countdown-timer/cb3c05854bfeb781da9f14ea0449248a8d78412f/design/active-states.jpg -------------------------------------------------------------------------------- /design/desktop-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveen570/launch-countdown-timer/cb3c05854bfeb781da9f14ea0449248a8d78412f/design/desktop-design.jpg -------------------------------------------------------------------------------- /design/desktop-preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveen570/launch-countdown-timer/cb3c05854bfeb781da9f14ea0449248a8d78412f/design/desktop-preview.jpg -------------------------------------------------------------------------------- /design/mobile-design.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveen570/launch-countdown-timer/cb3c05854bfeb781da9f14ea0449248a8d78412f/design/mobile-design.jpg -------------------------------------------------------------------------------- /images/bg-stars.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveen570/launch-countdown-timer/cb3c05854bfeb781da9f14ea0449248a8d78412f/images/favicon-32x32.png -------------------------------------------------------------------------------- /images/icon-facebook.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-instagram.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/icon-pinterest.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/pattern-hills.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Frontend Mentor | Launch countdown timer 10 | 11 | 12 | 16 | 17 | 18 | 19 | We're launching soon 20 | 21 | Days 22 | Hours 23 | Minutes 24 | Seconds 25 | 26 |
27 | Challenge by Frontend Mentor. 28 | Coded by Your Name Here. 29 |
30 | 31 | -------------------------------------------------------------------------------- /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 | ## Colors 11 | 12 | ### Primary 13 | 14 | - Grayish blue: hsl(237, 18%, 59%) 15 | - Soft red: hsl(345, 95%, 68%) 16 | 17 | ### Neutral 18 | 19 | - White: hsl(0, 0%, 100%) 20 | - Dark desaturated blue: hsl(236, 21%, 26%) 21 | - Very dark blue: hsl(235, 16%, 14%) 22 | - Very dark (mostly black) blue: hsl(234, 17%, 12%) 23 | 24 | ## Typography 25 | 26 | ### Body Copy 27 | 28 | - Font size: 14px 29 | 30 | ### Font 31 | 32 | - Family: [Red Hat Text](https://fonts.google.com/specimen/Red+Hat+Text) 33 | - Weights: 700 34 | 35 | ## Icons 36 | 37 | We provide the required social icons. But, if you prefer, you can use a font icon library. Some suggestions can be found below: 38 | 39 | - [Font Awesome](https://fontawesome.com) 40 | - [IcoMoon](https://icomoon.io) 41 | - [Ionicons](https://ionicons.com) --------------------------------------------------------------------------------