Unfinished Frontend Mentor Challenege github user search

Started this challenge back in late 2022, got the JS portion working fine but fell away from it. Did a little work on it recently but submitting to get it in the repo. Not yet in the projects list. The time tracking dashboard is intended as what I was going to attempt next (soon)
This commit is contained in:
Robert McGovern 2024-01-29 01:52:07 +00:00
parent 063dbdd28e
commit 0140cb3324
25 changed files with 828 additions and 99 deletions

View File

@ -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) {
}

View File

@ -0,0 +1,3 @@
{
"$schema": "https://frontmatter.codes/frontmatter.schema.json"
}

View File

@ -5,30 +5,87 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon-32x32.png">
<!-- <script src="js/script.js" defer></script> -->
<script src="js/github-api.js" defer></script>
<script src="js/theme-manager.js" defer></script>
<title>Frontend Mentor | GitHub user search app</title>
</head>
<body>
devfinder
<header>
<h1>devfinder</h1>
<label id="switch" class="switch" aria-hidden="true">
<input type="checkbox" id="theme-toggle" aria-label="Light / Dark mode switcher">
<span class="slider round"></span>
</label>
Light
Dark
</header>
Search GitHub username...
<input type="text" name="search-username" id="search-field">
Search
<button type="submit" id="search-button"></button>
<main>
Joined
<section>
<input placeholder="Search GitHub username..." type="text" name="search-username" id="search-field">
<button type="submit" id="search-button">Search</button>
</section>
Repos
Followers
Following
<article>
<section>
<!-- img -->
</section>
<section>
<header>
<div>
<h2>fullname</h2>
<h3>username</h3>
</div>
<p>Joined date</p>
</header>
<p>bio</p>
<section>
<h4>Repos</h4>
<h4>Followers</h4>
<h4>Following</h4>
</section>
<section>
<div>
<img src="assets/icon-location.svg" alt="" aria-hidden="true">
<a href="#">empty</a>
</div>
<div>
<img src="assets/icon-website.svg" alt="" aria-hidden="true">
<a href="#">empty</a>
</div>
<div>
<img src="assets/icon-twitter.svg" alt="" aria-hidden="true">
<a href="#">empty</a>
</div>
<div>
<img src="assets/icon-company.svg" alt="" aria-hidden="true">
<a href="#">empty</a>
</div>
</section>
</section>
</article>
</main>
</body>

View File

@ -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",
// };

View File

@ -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"
// }

View File

@ -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;
}
})();

View File

@ -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

View File

@ -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!** 🚀

View File

@ -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
<h1>Some HTML code I'm proud of</h1>
```
```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.**

View File

@ -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
}
}
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1 @@
<svg width="21" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 0a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm8 0a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm8 0a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Z" fill="#BBC0FF" fill-rule="evenodd"/></svg>

After

Width:  |  Height:  |  Size: 240 B

View File

@ -0,0 +1 @@
<svg width="81" height="55" xmlns="http://www.w3.org/2000/svg"><path d="m33.357.579 16.447.426c.33.009.645.144.88.38l9.953 9.953a4.946 4.946 0 0 1 1.451 3.311l.514 12.87c.02.503.433.895.937.894l9.595-.05a4.438 4.438 0 0 1 4.437 4.43v.26c0 1.164-.453 2.259-1.277 3.082a4.334 4.334 0 0 1-3.083 1.277h-15.77c-2.347 0-4.393-2.045-4.393-4.393l-.001-8.405-12.05-.009.01 15.17c.001.426-.21.826-.56 1.067l-18.098 12.41c-1.363.849-2.958 1.033-4.426.537a5.147 5.147 0 0 1-1.994-1.237 5.247 5.247 0 0 1-1.193-1.85c-.875-2.293.074-4.934 2.256-6.277l12.303-8.973.252-11.28-13.556.442a1.291 1.291 0 0 1-.957-.377L2.237 11.439c-1-.999-1.55-2.38-1.513-3.792a5.124 5.124 0 0 1 1.714-3.71c2.042-1.84 5.234-1.688 7.267.345l8.576 8.576 29.444-1.635-2.133-2.133-12.263.347a4.434 4.434 0 0 1-3.294-1.28l-.016-.015a4.409 4.409 0 0 1-1.294-3.307c.08-2.347 2.16-4.255 4.632-4.256Zm33.78 11.774c3.025-3.025 7.945-3.025 10.97 0 3.024 3.025 3.024 7.944 0 10.97-3.025 3.024-7.945 3.024-10.97 0-3.024-3.026-3.025-7.945 0-10.97Z" fill="#29BA66" fill-rule="nonzero"/></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1 @@
<svg width="76" height="77" xmlns="http://www.w3.org/2000/svg"><path d="m60.91 71.846 12.314-19.892c3.317-5.36 3.78-13.818-2.31-19.908l-26.36-26.36c-4.457-4.457-12.586-6.843-19.908-2.31L4.753 15.69c-5.4 3.343-6.275 10.854-1.779 15.35a7.773 7.773 0 0 0 7.346 2.035l7.783-1.945a3.947 3.947 0 0 1 3.731 1.033l22.602 22.602c.97.97 1.367 2.4 1.033 3.732l-1.945 7.782a7.775 7.775 0 0 0 2.037 7.349c4.49 4.49 12.003 3.624 15.349-1.782Zm-24.227-46.12-1.891-1.892-1.892 1.892a2.342 2.342 0 0 1-3.312-3.312l1.892-1.892-1.892-1.891a2.342 2.342 0 0 1 3.312-3.312l1.892 1.891 1.891-1.891a2.342 2.342 0 0 1 3.312 3.312l-1.891 1.891 1.891 1.892a2.342 2.342 0 0 1-3.312 3.312Zm14.19 14.19a2.343 2.343 0 1 1 3.315-3.312 2.343 2.343 0 0 1-3.314 3.312Zm0 7.096a2.343 2.343 0 0 1 3.313-3.312 2.343 2.343 0 0 1-3.312 3.312Zm7.096-7.095a2.343 2.343 0 1 1 3.312 0 2.343 2.343 0 0 1-3.312 0Zm0 7.095a2.343 2.343 0 0 1 3.312-3.312 2.343 2.343 0 0 1-3.312 3.312Z" fill="#3F9CBB" fill-rule="nonzero"/></svg>

After

Width:  |  Height:  |  Size: 980 B

View File

@ -0,0 +1 @@
<svg width="67" height="67" xmlns="http://www.w3.org/2000/svg"><path d="M.918 50.848c.114 1.723.232 3.5.346 5.336l.003.038.448 6.038c.06.81.412 1.536.951 2.075.54.54 1.266.892 2.075.952l6.038.447.038.003c12.086.755 21.237 1.231 28.95.484 9.007-.873 15.369-3.445 20.02-8.096 8.413-8.413 8.398-21.609-.034-30.041-3.79-3.79-8.959-6.11-14.31-6.526-.415-5.352-2.736-10.52-6.526-14.31C30.484-1.185 17.288-1.2 8.875 7.214-1.295 17.384-.415 30.697.918 50.848ZM21.36 27.122l6.172 6.173 6.16-6.159 6.172 6.173-6.16 6.158 6.173 6.173-6.158 6.158-6.173-6.172-6.158 6.158-6.173-6.172 6.159-6.159-6.173-6.172 6.16-6.159Z" fill="#E6A532" fill-rule="nonzero"/></svg>

After

Width:  |  Height:  |  Size: 650 B

View File

@ -0,0 +1 @@
<svg width="75" height="100" xmlns="http://www.w3.org/2000/svg"><g fill="#5A1CBB" fill-rule="nonzero"><path d="M45.834 46.627c4.78 4.78 13.1 5.754 19.257-.403 5.2-5.199 5.198-13.657 0-18.855L47.151 9.428C42.335 4.614 34.02 3.7 27.892 9.83c-4.701 4.7-5.151 12.066-1.352 17.277l-6.265 6.265c-1.339 1.339-.317 3.644 1.585 3.533l13.474-.777 10.499 10.499Zm11.404-11.483a2.567 2.567 0 1 1-3.629 3.631 2.567 2.567 0 0 1 3.63-3.631ZM35.745 20.909a2.567 2.567 0 1 1 3.63-3.629 2.567 2.567 0 0 1-3.63 3.63Zm12.562 5.303a2.567 2.567 0 1 1-3.63 3.63 2.567 2.567 0 0 1 3.63-3.63ZM55.16 63.698 37.219 45.756c-5.198-5.197-13.658-5.197-18.857.001-6.072 6.073-5.26 14.4-.402 19.258l10.499 10.5-.777 13.473c-.11 1.886 2.186 2.931 3.533 1.584l6.265-6.265c5.212 3.8 12.577 3.349 17.277-1.352 6.06-6.059 5.274-14.386.403-19.257ZM25.813 57.24a2.567 2.567 0 1 1 3.63-3.631 2.567 2.567 0 0 1-3.63 3.63Zm8.932 8.931a2.567 2.567 0 1 1 3.63-3.629 2.567 2.567 0 0 1-3.63 3.63Zm8.932 8.933a2.567 2.567 0 1 1 3.63-3.631 2.567 2.567 0 0 1-3.63 3.63Z"/></g></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1 @@
<svg width="79" height="79" xmlns="http://www.w3.org/2000/svg"><path d="M33.227 1.495a1.87 1.87 0 0 1 2.646 0l1.323 1.323-27.78 27.78c-2.189 2.189-2.1 5.837.088 8.026l12.132 12.132a5.624 5.624 0 0 0 1.096 6.388 5.624 5.624 0 0 0 6.389 1.097l12.132 12.132c2.188 2.188 5.837 2.276 8.025.088l27.78-27.78 1.323 1.322a1.87 1.87 0 0 1 0 2.646L46.632 78.4a1.87 1.87 0 0 1-2.645 0L29.12 63.531a5.624 5.624 0 0 1-6.389-1.097l-5.291-5.291a5.624 5.624 0 0 1-1.097-6.388L1.478 35.89a1.87 1.87 0 0 1 0-2.646ZM59.74 22.783c1.948.27 3.83 1.117 5.325 2.612l10.583 10.583a1.87 1.87 0 0 1 0 2.646L46.544 67.727a1.87 1.87 0 0 1-2.646 0L30.67 54.498a1.872 1.872 0 0 0-2.646 0ZM49.19 6.875a1.87 1.87 0 0 1 2.647 0c4.489 4.489 5.877 8.98 6.178 12.342L27.67 49.56c.349-1.527 1.181-7.463-4.938-13.582a1.87 1.87 0 0 1 0-2.646Zm-7.936-2.646a1.87 1.87 0 0 1 2.645 0l1.323 1.323-25.134 25.134a5.619 5.619 0 0 0 0 7.938c4.005 4.005 4.2 7.696 4.043 9.335L12.15 35.978a1.87 1.87 0 0 1 0-2.646Z" fill="#F04667" fill-rule="nonzero"/></svg>

After

Width:  |  Height:  |  Size: 1006 B

View File

@ -0,0 +1 @@
<svg width="79" height="79" xmlns="http://www.w3.org/2000/svg"><path d="m18.687 10.43 15.464 30.906c.31.682.743 1.322 1.3 1.88.558.557 1.198.99 1.714 1.217L68.237 59.98 52.484 75.732a8.025 8.025 0 0 1-11.355 0L2.934 37.538a8.025 8.025 0 0 1 0-11.356L18.687 10.43Zm19.345-7.99 10.839 10.838 2.065-2.064a5.845 5.845 0 0 1 8.258 0l8.258 8.259a5.845 5.845 0 0 1 0 8.258l-2.064 2.064 10.839 10.84a8.025 8.025 0 0 1 0 11.355l-4.728 4.728L39.126 40.53a1.963 1.963 0 0 1-.578-.413 1.963 1.963 0 0 1-.413-.578L21.95 7.168l4.728-4.728a8.025 8.025 0 0 1 11.355 0Zm17.033 12.903-2.064 2.065 8.258 8.258 2.064-2.064-8.258-8.259Z" fill="#D96C47" fill-rule="nonzero"/></svg>

After

Width:  |  Height:  |  Size: 659 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<title>Frontend Mentor | Time tracking dashboard</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
Report for
Jeremy Robson
Daily
Weekly
Monthly
Work
5hrs <!-- daily -->
Previous - 7hrs <!-- daily -->
32hrs <!-- weekly -->
Previous - 36hrs <!-- weekly -->
103hrs <!-- monthly -->
Previous - 128hrs <!-- monthly -->
Play
1hr <!-- daily -->
Previous - 2hrs <!-- daily -->
10hrs <!-- weekly -->
Previous - 8hrs <!-- weekly -->
23hrs <!-- monthly -->
Previous - 29hrs <!-- monthly -->
Study
0hrs <!-- daily -->
Previous - 1hr <!-- daily -->
4hrs <!-- weekly -->
Previous - 7hrs <!-- weekly -->
13hrs <!-- monthly -->
Previous - 19hrs <!-- monthly -->
Exercise
1hr <!-- daily -->
Previous - 1hr <!-- daily -->
4hrs <!-- weekly -->
Previous - 5hrs <!-- weekly -->
11hrs <!-- monthly -->
Previous - 18hrs <!-- monthly -->
Social
1hr <!-- daily -->
Previous - 3hrs <!-- daily -->
5hrs <!-- weekly -->
Previous - 10hrs <!-- weekly -->
21hrs <!-- monthly -->
Previous - 23hrs <!-- monthly -->
Self Care
0hrs <!-- daily -->
Previous - 1hr <!-- daily -->
2hrs <!-- weekly -->
Previous - 2hrs <!-- weekly -->
7hrs <!-- monthly -->
Previous - 11hrs <!-- monthly -->
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Your Name Here</a>.
</div>
</body>
</html>

View File

@ -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