diff --git a/projects/FrontendMentor/junior/github-user-search-app/css/styles.css b/projects/FrontendMentor/junior/github-user-search-app/css/styles.css index e69de29..cfc54b4 100644 --- a/projects/FrontendMentor/junior/github-user-search-app/css/styles.css +++ b/projects/FrontendMentor/junior/github-user-search-app/css/styles.css @@ -0,0 +1,140 @@ +/* + * Design Sizes: Page Inner + * Desktop: 1440x900 (730x586) + * Tablet: 768x1024 (573x648) + * Mobile: 375x777 (327x667) +*/ + +*, +::before, +::after { + margin: 0; + padding: 0; + + box-sizing: border-box; +} + +:root { + /* Colors */ + color: black; + --col-blue: hsla(212, 100%, 50%, 1); + --col-lighter-blue: hsla(217, 35%, 45%, 1); + --col-gray-blue: hsla(217, 20%, 51%, 1); + --col-dark-blue: hsla(217, 21%, 21%, 1); + + --col-light-gray: hsla(227, 100%, 98%, 1); + --col-white: hsla(0, 0%, 100%, 1); + + --col-red: hsla(0, 91%, 62%, 1); + + --col-page-background: var(--col-light-gray); + --col-main-section-background: var(--col-white); + --col-info-section-background: var(--col-light-gray); + --col-main-text: var(--col-lighter-blue); + --col-headings: var(--col-dark-blue); + --col-username: var(--col-blue); + --col-button: var(--col-blue); + --col-theme-switched: var(--col-gray-blue); + --col-date: var(--col-gray-blue); + + /* Typography */ + + --fs-h1: 26px; + --lh-h1: 38px; + --fw-h1: 700; + + --fs-h2: 22px; + --lh-h2: 33px; + --fw-h2: 700; + + --fs-h3: 16px; + --lh-h3: 24px; + --fw-h3: 400; + + --fs-h4: 13px; + --lh-h4: 20px; + --fw-h4: 400; + + --fs-body: 15px; + --lh-body: 25px; + --fw-body: 400; +} + +body { + min-height: 100vh; + font-family: "Space Mono", monospace; +} + +/* For Light / Dark button */ + +/* Update styling for checkbox */ +html[data-theme="theme-dark"] { + --col-page-background: hsla(220, 40%, 13%, 1); + --col-main-section-background: hsla(222, 41%, 20%, 1); + --col-info-section-background: hsla(220, 40%, 13%, 1); + --col-main-text: var(--col-white); + --col-headings: var(--col-white); + --col-username: var(--col-blue); + --col-button: var(--col-blue); + --col-theme-switched: var(--col-gray-blue); + --col-date: var(--col-gray-blue); +} + +/* Hide default HTML checkbox */ +.switch input { + display: none; +} + +.slider { + position: absolute; + cursor: pointer; + top: 0; + /* left: 0; */ + right: -0; + bottom: 0; + background-color: white; + -webkit-transition: 0.4s; + transition: 0.4s; + + width: 50px; + height: 50px; +} + +.slider:before { + position: absolute; + content: ""; + height: 40px; + width: 40px; + left: 0px; + bottom: 4px; + top: 0; + bottom: 0; + margin: auto 0; + -webkit-transition: 0.4s; + transition: 0.4s; + box-shadow: 0 0px 15px #2020203d; + background-image: url("../assets/icon-moon.svg"); + background-repeat: no-repeat; + background-position: center; +} + +input:checked + .slider:before { + color: green; + background-image: url("../assets/icon-sun.svg"); + background-repeat: no-repeat; + background-position: center; +} + +.slider.round { + border-radius: 34px; +} + +.slider.round:before { + border-radius: 50%; +} + +@media screen and (min-width: 768px) { +} + +@media screen and (min-width: 1440px) { +} diff --git a/projects/FrontendMentor/junior/github-user-search-app/frontmatter.json b/projects/FrontendMentor/junior/github-user-search-app/frontmatter.json new file mode 100644 index 0000000..561c5b4 --- /dev/null +++ b/projects/FrontendMentor/junior/github-user-search-app/frontmatter.json @@ -0,0 +1,3 @@ +{ + "$schema": "https://frontmatter.codes/frontmatter.schema.json" +} \ No newline at end of file diff --git a/projects/FrontendMentor/junior/github-user-search-app/index.html b/projects/FrontendMentor/junior/github-user-search-app/index.html index 6dec6e8..f310760 100644 --- a/projects/FrontendMentor/junior/github-user-search-app/index.html +++ b/projects/FrontendMentor/junior/github-user-search-app/index.html @@ -5,30 +5,87 @@ + + + + - + + Frontend Mentor | GitHub user search app - devfinder +
+

devfinder

- Light - Dark + - Search GitHub username... - - Search - + Light + Dark +
- Joined +
- Repos - Followers - Following +
+ + +
+ +
+
+ +
+
+
+
+

fullname

+

username

+
+

Joined date

+
+ +

bio

+ +
+

Repos

+

Followers

+

Following

+
+ +
+
+ + empty +
+ +
+ + empty +
+ +
+ + empty +
+ +
+ + empty +
+
+ +
+ +
+ +
diff --git a/projects/FrontendMentor/junior/github-user-search-app/js/github-api.js b/projects/FrontendMentor/junior/github-user-search-app/js/github-api.js new file mode 100644 index 0000000..b7901ed --- /dev/null +++ b/projects/FrontendMentor/junior/github-user-search-app/js/github-api.js @@ -0,0 +1,131 @@ +"use strict"; + +let username = "octocat"; +const apiURL = "https://api.github.com/users/"; + +const searchField = document.getElementById("search-field"); +const searchButton = document.getElementById("search-button"); + +searchButton.addEventListener("click", getProfile); + +window.document.addEventListener("DOMContentLoaded", getProfile); + +async function getProfile() { + try { + addLoaderAnimation(); + + if (searchField.value.length >= 1) { + username = searchField.value; + } + + let url = `${apiURL}${username}`; + + // const response = await fetch(url, { + // headers: { + // authorization: "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", + // }, + // }); + // console.log(response); + // const data = await response.json(); + // RMCG following line for testing purposes so I don't keep + // hitting the API + const data = testData; + + console.log(data); + + // add fields to populate here + } catch (error) { + //do something, we got an error + alert( + `Something has gone wrong. Please try again shortly\n\n ${error}` + ); + console.log("Error: " + error); + + removeLoaderAnimation(); + } +} + +function addLoaderAnimation() { + // button.children[0].classList.add("animate"); + setTimeout(() => { + removeLoaderAnimation(); + }, 2000); +} + +function removeLoaderAnimation() { + // button.children[0].classList.remove("animate"); +} + +// example return from api call to https://api.github.com/users/tarasis + +const testData = { + login: "octocat", + id: 583231, + node_id: "MDQ6VXNlcjU4MzIzMQ==", + avatar_url: "https://avatars.githubusercontent.com/u/583231?v=4", + gravatar_id: "", + url: "https://api.github.com/users/octocat", + html_url: "https://github.com/octocat", + followers_url: "https://api.github.com/users/octocat/followers", + following_url: + "https://api.github.com/users/octocat/following{/other_user}", + gists_url: "https://api.github.com/users/octocat/gists{/gist_id}", + starred_url: "https://api.github.com/users/octocat/starred{/owner}{/repo}", + subscriptions_url: "https://api.github.com/users/octocat/subscriptions", + organizations_url: "https://api.github.com/users/octocat/orgs", + repos_url: "https://api.github.com/users/octocat/repos", + events_url: "https://api.github.com/users/octocat/events{/privacy}", + received_events_url: "https://api.github.com/users/octocat/received_events", + type: "User", + site_admin: false, + name: "The Octocat", + company: "@github", + blog: "https://github.blog", + location: "San Francisco", + email: null, + hireable: null, + bio: null, + twitter_username: null, + public_repos: 8, + public_gists: 8, + followers: 7493, + following: 9, + created_at: "2011-01-25T18:44:36Z", + updated_at: "2022-10-24T11:21:44Z", +}; + +// { +// login: "tarasis", +// id: 3006, +// node_id: "MDQ6VXNlcjMwMDY=", +// avatar_url: "https://avatars.githubusercontent.com/u/3006?v=4", +// gravatar_id: "", +// url: "https://api.github.com/users/tarasis", +// html_url: "https://github.com/tarasis", +// followers_url: "https://api.github.com/users/tarasis/followers", +// following_url: +// "https://api.github.com/users/tarasis/following{/other_user}", +// gists_url: "https://api.github.com/users/tarasis/gists{/gist_id}", +// starred_url: "https://api.github.com/users/tarasis/starred{/owner}{/repo}", +// subscriptions_url: "https://api.github.com/users/tarasis/subscriptions", +// organizations_url: "https://api.github.com/users/tarasis/orgs", +// repos_url: "https://api.github.com/users/tarasis/repos", +// events_url: "https://api.github.com/users/tarasis/events{/privacy}", +// received_events_url: "https://api.github.com/users/tarasis/received_events", +// type: "User", +// site_admin: false, +// name: "Robert McGovern", +// company: null, +// blog: "http://tarasis.net", +// location: "Northern Ireland", +// email: null, +// hireable: null, +// bio: null, +// twitter_username: "tarasis", +// public_repos: 26, +// public_gists: 2, +// followers: 35, +// following: 53, +// created_at: "2008-03-13T16:12:38Z", +// updated_at: "2022-10-28T19:21:49Z", +// }; diff --git a/projects/FrontendMentor/junior/github-user-search-app/js/script.js b/projects/FrontendMentor/junior/github-user-search-app/js/script.js deleted file mode 100644 index f513d3f..0000000 --- a/projects/FrontendMentor/junior/github-user-search-app/js/script.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -let username = "octocat"; -const apiURL = "https://api.github.com/users/"; - -const searchField = document.getElementById("search-field"); -const searchButton = document.getElementById("search-button"); - -searchButton.addEventListener("click", getProfile); - -window.document.addEventListener("DOMContentLoaded", getProfile); - -async function getProfile() { - try { - addLoaderAnimation(); - - if (searchField.value.length >= 1) { - username = searchField.value; - } - - let url = `${apiURL}${username}`; - - const response = await fetch(url); - // console.log(response); - const data = await response.json(); - - console.log(data); - - // add fields to populate here - } catch (error) { - //do something, we got an error - alert( - `Something has gone wrong. Please try again shortly\n\n ${error}` - ); - console.log("Error: " + error); - - removeLoaderAnimation(); - } -} - -function addLoaderAnimation() { - // button.children[0].classList.add("animate"); - setTimeout(() => { - removeLoaderAnimation(); - }, 2000); -} - -function removeLoaderAnimation() { - // button.children[0].classList.remove("animate"); -} - -// example return from api call to https://api.github.com/users/tarasis - -// { -// "login": "tarasis", -// "id": 3006, -// "node_id": "MDQ6VXNlcjMwMDY=", -// "avatar_url": "https://avatars.githubusercontent.com/u/3006?v=4", -// "gravatar_id": "", -// "url": "https://api.github.com/users/tarasis", -// "html_url": "https://github.com/tarasis", -// "followers_url": "https://api.github.com/users/tarasis/followers", -// "following_url": "https://api.github.com/users/tarasis/following{/other_user}", -// "gists_url": "https://api.github.com/users/tarasis/gists{/gist_id}", -// "starred_url": "https://api.github.com/users/tarasis/starred{/owner}{/repo}", -// "subscriptions_url": "https://api.github.com/users/tarasis/subscriptions", -// "organizations_url": "https://api.github.com/users/tarasis/orgs", -// "repos_url": "https://api.github.com/users/tarasis/repos", -// "events_url": "https://api.github.com/users/tarasis/events{/privacy}", -// "received_events_url": "https://api.github.com/users/tarasis/received_events", -// "type": "User", -// "site_admin": false, -// "name": "Robert McGovern", -// "company": null, -// "blog": "http://tarasis.net", -// "location": "Northern Ireland", -// "email": null, -// "hireable": null, -// "bio": null, -// "twitter_username": "tarasis", -// "public_repos": 26, -// "public_gists": 2, -// "followers": 35, -// "following": 53, -// "created_at": "2008-03-13T16:12:38Z", -// "updated_at": "2022-10-28T19:21:49Z" -// } diff --git a/projects/FrontendMentor/junior/github-user-search-app/js/theme-manager.js b/projects/FrontendMentor/junior/github-user-search-app/js/theme-manager.js new file mode 100644 index 0000000..2a41f57 --- /dev/null +++ b/projects/FrontendMentor/junior/github-user-search-app/js/theme-manager.js @@ -0,0 +1,28 @@ +const toggle = document.getElementById("theme-toggle"); +toggle.addEventListener("click", toggleTheme); + +// function to set a given theme/color-scheme +function setTheme(themeName) { + localStorage.setItem("theme", themeName); + document.documentElement.setAttribute("data-theme", themeName); +} + +// function to toggle between light and dark theme +function toggleTheme() { + if (localStorage.getItem("theme") === "theme-dark") { + setTheme("theme-light"); + } else { + setTheme("theme-dark"); + } +} + +// Immediately invoked function to set the theme on initial load +(function () { + if (localStorage.getItem("theme") === "theme-dark") { + setTheme("theme-dark"); + document.getElementById("theme-toggle").checked = false; + } else { + setTheme("theme-light"); + document.getElementById("theme-toggle").checked = true; + } +})(); diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/.gitignore b/projects/FrontendMentor/junior/time-tracking-dashboard/.gitignore new file mode 100644 index 0000000..d13464a --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/.gitignore @@ -0,0 +1,16 @@ +# Avoid accidental upload of the Sketch and Figma design files +##################################################### +## Please do not remove lines 5 and 6 - thanks! 🙂 ## +##################################################### +*.sketch +*.fig + +# Avoid accidental XD upload if you convert the design file +############################################### +## Please do not remove line 12 - thanks! 🙂 ## +############################################### +*.xd + +# Avoid your project being littered with annoying .DS_Store files! +.DS_Store +.prettierignore \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/README-orig.md b/projects/FrontendMentor/junior/time-tracking-dashboard/README-orig.md new file mode 100644 index 0000000..b0f1f3f --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/README-orig.md @@ -0,0 +1,99 @@ +# Frontend Mentor - Time tracking dashboard + +![Design preview for the Time tracking dashboard coding challenge](./design/desktop-preview.jpg) + +## Welcome! 👋 + +Thanks for checking out this front-end coding challenge. + +[Frontend Mentor](https://www.frontendmentor.io) challenges help you improve your coding skills by building realistic projects. + +**To do this challenge, you need a basic understanding of HTML, CSS and JavaScript.** + +## The challenge + +Your challenge is to build out this dashboard and get it looking as close to the design as possible. + +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. + +If you would like to practice working with JSON data, we provide a local `data.json` file for the activities. This means you'll be able to pull the data from there instead of using the content in the `.html` file. + +Your users should be able to: + +- View the optimal layout for the site depending on their device's screen size +- See hover states for all interactive elements on the page +- Switch between viewing Daily, Weekly, and Monthly stats + +Want some support on the challenge? [Join our Slack community](https://www.frontendmentor.io/slack) and ask questions in the **#help** channel. + +### Expected behaviour + +- The text for the previous period's time should change based on the active timeframe. For Daily, it should read "Yesterday" e.g "Yesterday - 2hrs". For Weekly, it should read "Last Week" e.g. "Last Week - 32hrs". For monthly, it should read "Last Month" e.g. "Last Month - 19hrs". + +## Where to find everything + +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. + +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`. + +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). + +You will find all the required assets in the `/images` folder. The assets are already optimized. + +There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts. + +## Building your project + +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: + +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/). +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. +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. +4. Before adding any styles, structure your content with HTML. Writing your HTML first can help focus your attention on creating well-structured content. +5. Write out the base styles for your project, including general content styles, such as `font-family` and `font-size`. +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. + +## Deploying your project + +As mentioned above, there are many ways to host your project for free. Our recommend hosts are: + +- [GitHub Pages](https://pages.github.com/) +- [Vercel](https://vercel.com/) +- [Netlify](https://www.netlify.com/) + +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). + +## Create a custom `README.md` + +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. + +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. + +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. + +## Submitting your solution + +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. + +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. + +## Sharing your solution + +There are multiple places you can share your solution: + +1. Share your solution page in the **#finished-projects** channel of the [Slack community](https://www.frontendmentor.io/slack). +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. +3. Share your solution on other social channels like LinkedIn. +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/). + +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. + +The more specific you are with your questions the more likely it is that another member of the community will give you feedback. + +## Got feedback for us? + +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. + +This challenge is completely free. Please share it with anyone who will find it useful for practice. + +**Have fun building!** 🚀 diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/README.md b/projects/FrontendMentor/junior/time-tracking-dashboard/README.md new file mode 100644 index 0000000..5415794 --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/README.md @@ -0,0 +1,112 @@ +# Frontend Mentor - Time tracking dashboard solution + +This is a solution to the [Time tracking dashboard challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/time-tracking-dashboard-UIQ7167Jw). Frontend Mentor challenges help you improve your coding skills by building realistic projects. + +## Table of contents + +- [Overview](#overview) + - [The challenge](#the-challenge) + - [Screenshot](#screenshot) + - [Links](#links) +- [My process](#my-process) + - [Built with](#built-with) + - [What I learned](#what-i-learned) + - [Continued development](#continued-development) + - [Useful resources](#useful-resources) +- [Author](#author) +- [Acknowledgments](#acknowledgments) + +**Note: Delete this note and update the table of contents based on what sections you keep.** + +## Overview + +### The challenge + +Users should be able to: + +- View the optimal layout for the site depending on their device's screen size +- See hover states for all interactive elements on the page +- Switch between viewing Daily, Weekly, and Monthly stats + +### Screenshot + +![](./screenshot.jpg) + +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. + +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. + +Then crop/optimize/edit your image however you like, add it to your project, and update the file path in the image above. + +**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.** + +### Links + +- Solution URL: [Add solution URL here](https://your-solution-url.com) +- Live Site URL: [Add live site URL here](https://your-live-site-url.com) + +## My process + +### Built with + +- Semantic HTML5 markup +- CSS custom properties +- Flexbox +- CSS Grid +- Mobile-first workflow +- [React](https://reactjs.org/) - JS library +- [Next.js](https://nextjs.org/) - React framework +- [Styled Components](https://styled-components.com/) - For styles + +**Note: These are just examples. Delete this note and replace the list above with your own choices** + +### What I learned + +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. + +To see how you can add code snippets, see below: + +```html +

Some HTML code I'm proud of

+``` +```css +.proud-of-this-css { + color: papayawhip; +} +``` +```js +const proudOfThisFunc = () => { + console.log('🎉') +} +``` + +If you want more help with writing markdown, we'd recommend checking out [The Markdown Guide](https://www.markdownguide.org/) to learn more. + +**Note: Delete this note and the content within this section and replace with your own learnings.** + +### Continued development + +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. + +**Note: Delete this note and the content within this section and replace with your own plans for continued development.** + +### Useful resources + +- [Example resource 1](https://www.example.com) - This helped me for XYZ reason. I really liked this pattern and will use it going forward. +- [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. + +**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.** + +## Author + +- Website - [Add your name here](https://www.your-site.com) +- Frontend Mentor - [@yourusername](https://www.frontendmentor.io/profile/yourusername) +- Twitter - [@yourusername](https://www.twitter.com/yourusername) + +**Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.** + +## Acknowledgments + +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. + +**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.** diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/data.json b/projects/FrontendMentor/junior/time-tracking-dashboard/data.json new file mode 100644 index 0000000..02d7a50 --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/data.json @@ -0,0 +1,104 @@ +[ + { + "title": "Work", + "timeframes": { + "daily": { + "current": 5, + "previous": 7 + }, + "weekly": { + "current": 32, + "previous": 36 + }, + "monthly": { + "current": 103, + "previous": 128 + } + } + }, + { + "title": "Play", + "timeframes": { + "daily": { + "current": 1, + "previous": 2 + }, + "weekly": { + "current": 10, + "previous": 8 + }, + "monthly": { + "current": 23, + "previous": 29 + } + } + }, + { + "title": "Study", + "timeframes": { + "daily": { + "current": 0, + "previous": 1 + }, + "weekly": { + "current": 4, + "previous": 7 + }, + "monthly": { + "current": 13, + "previous": 19 + } + } + }, + { + "title": "Exercise", + "timeframes": { + "daily": { + "current": 1, + "previous": 1 + }, + "weekly": { + "current": 4, + "previous": 5 + }, + "monthly": { + "current": 11, + "previous": 18 + } + } + }, + { + "title": "Social", + "timeframes": { + "daily": { + "current": 1, + "previous": 3 + }, + "weekly": { + "current": 5, + "previous": 10 + }, + "monthly": { + "current": 21, + "previous": 23 + } + } + }, + { + "title": "Self Care", + "timeframes": { + "daily": { + "current": 0, + "previous": 1 + }, + "weekly": { + "current": 2, + "previous": 2 + }, + "monthly": { + "current": 7, + "previous": 11 + } + } + } +] \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/design/active-states.jpg b/projects/FrontendMentor/junior/time-tracking-dashboard/design/active-states.jpg new file mode 100644 index 0000000..8fd2059 Binary files /dev/null and b/projects/FrontendMentor/junior/time-tracking-dashboard/design/active-states.jpg differ diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/design/desktop-design.jpg b/projects/FrontendMentor/junior/time-tracking-dashboard/design/desktop-design.jpg new file mode 100644 index 0000000..826a94f Binary files /dev/null and b/projects/FrontendMentor/junior/time-tracking-dashboard/design/desktop-design.jpg differ diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/design/desktop-preview.jpg b/projects/FrontendMentor/junior/time-tracking-dashboard/design/desktop-preview.jpg new file mode 100644 index 0000000..c9de141 Binary files /dev/null and b/projects/FrontendMentor/junior/time-tracking-dashboard/design/desktop-preview.jpg differ diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/design/mobile-design.jpg b/projects/FrontendMentor/junior/time-tracking-dashboard/design/mobile-design.jpg new file mode 100644 index 0000000..db62339 Binary files /dev/null and b/projects/FrontendMentor/junior/time-tracking-dashboard/design/mobile-design.jpg differ diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/images/favicon-32x32.png b/projects/FrontendMentor/junior/time-tracking-dashboard/images/favicon-32x32.png new file mode 100644 index 0000000..1e2df7f Binary files /dev/null and b/projects/FrontendMentor/junior/time-tracking-dashboard/images/favicon-32x32.png differ diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-ellipsis.svg b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-ellipsis.svg new file mode 100644 index 0000000..807e823 --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-ellipsis.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-exercise.svg b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-exercise.svg new file mode 100644 index 0000000..3d7ff4d --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-exercise.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-play.svg b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-play.svg new file mode 100644 index 0000000..f145c07 --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-play.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-self-care.svg b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-self-care.svg new file mode 100644 index 0000000..e81a808 --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-self-care.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-social.svg b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-social.svg new file mode 100644 index 0000000..488cb39 --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-social.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-study.svg b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-study.svg new file mode 100644 index 0000000..bd087d8 --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-study.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-work.svg b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-work.svg new file mode 100644 index 0000000..aaa0c44 --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/images/icon-work.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/images/image-jeremy.png b/projects/FrontendMentor/junior/time-tracking-dashboard/images/image-jeremy.png new file mode 100644 index 0000000..88a8118 Binary files /dev/null and b/projects/FrontendMentor/junior/time-tracking-dashboard/images/image-jeremy.png differ diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/index.html b/projects/FrontendMentor/junior/time-tracking-dashboard/index.html new file mode 100644 index 0000000..d1d6bcf --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/index.html @@ -0,0 +1,80 @@ + + + + + + + + + Frontend Mentor | Time tracking dashboard + + + + + + + Report for + Jeremy Robson + + Daily + Weekly + Monthly + + Work + 5hrs + Previous - 7hrs + 32hrs + Previous - 36hrs + 103hrs + Previous - 128hrs + + Play + 1hr + Previous - 2hrs + 10hrs + Previous - 8hrs + 23hrs + Previous - 29hrs + + Study + 0hrs + Previous - 1hr + 4hrs + Previous - 7hrs + 13hrs + Previous - 19hrs + + Exercise + 1hr + Previous - 1hr + 4hrs + Previous - 5hrs + 11hrs + Previous - 18hrs + + Social + 1hr + Previous - 3hrs + 5hrs + Previous - 10hrs + 21hrs + Previous - 23hrs + + Self Care + 0hrs + Previous - 1hr + 2hrs + Previous - 2hrs + 7hrs + Previous - 11hrs + + +
+ Challenge by Frontend Mentor. + Coded by Your Name Here. +
+ + \ No newline at end of file diff --git a/projects/FrontendMentor/junior/time-tracking-dashboard/style-guide.md b/projects/FrontendMentor/junior/time-tracking-dashboard/style-guide.md new file mode 100644 index 0000000..17a92e6 --- /dev/null +++ b/projects/FrontendMentor/junior/time-tracking-dashboard/style-guide.md @@ -0,0 +1,39 @@ +# Front-end Style Guide + +## Layout + +The designs were created to the following widths: + +- Mobile: 375px +- Desktop: 1440px + +## Colors + +### Primary + +- Blue: hsl(246, 80%, 60%) + +- Light red (work): hsl(15, 100%, 70%) +- Soft blue (play): hsl(195, 74%, 62%) +- Light red (study): hsl(348, 100%, 68%) +- Lime green (exercise): hsl(145, 58%, 55%) +- Violet (social): hsl(264, 64%, 52%) +- Soft orange (self care): hsl(43, 84%, 65%) + +### Neutral + +- Very dark blue: hsl(226, 43%, 10%) +- Dark blue: hsl(235, 46%, 20%) +- Desaturated blue: hsl(235, 45%, 61%) +- Pale Blue: hsl(236, 100%, 87%) + +## Typography + +### Body Copy + +- Font size: 18px (card titles e.g. Work, Play) + +### Font + +- Family: [Rubik](https://fonts.google.com/specimen/Rubik) +- Weights: 300, 400, 500