Skip to content

Commit

Permalink
fix(quickstart): Add arrows to button links
Browse files Browse the repository at this point in the history
  • Loading branch information
lise-toggl authored and shantanuraj committed Dec 11, 2019
1 parent 49fd09f commit 5f8aaa3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/scripts/@toggl/ui/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ export const Subheading = styled.h2`
`;

export const Button = styled.button`
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: baseline;
align-items: center;
justify-content: center;
background-color: #e24f54;
border: 0;
border-radius: 24px;
color: #fff;
cursor: pointer;
display: inline-block;
font-size: 14px;
font-family: GTWalsheim,Arial,sans-serif;
font-weight: 500;
Expand Down
19 changes: 16 additions & 3 deletions src/scripts/components/QuickStartGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import browser from 'webextension-polyfill';

import { Content, Row, Heading, Subheading, Button, Link } from '../@toggl/ui/components';

const Arrow = () => (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 12l-18 12v-24z"/></svg>);

const closePage = async () => {
const tab = await browser.tabs.getCurrent();
browser.tabs.remove(tab.id);
Expand Down Expand Up @@ -36,7 +38,7 @@ export default function QuickStartGuide () {
<p>When you're done with your task, click on the "Stop" icon to save your entry.</p>
<p>The Toggl Button popup shows a list of your recent time entries*. You can edit them from here.</p>
<p>You can also enable useful time tracking features like idle detection and reminders from the Settings page.</p>
<Link href="settings.html"><Button>Settings</Button></Link>
<Link href="settings.html"><Button>Settings <Arrow/></Button></Link>
<Link href="https://toggl.com/app" target="_blank"><p className="small">*To see older time entries or run more complex reports, check out our web app on toggl.com!</p></Link>
</div>
</div>
Expand All @@ -54,7 +56,7 @@ export default function QuickStartGuide () {
<p>If Toggl Button can detect a project, <em>and</em> there's a project with the same name in any of your Toggl workspaces, it'll be selected too!</p>
<p>You can stop entries by clicking the same icon again, or move straight onto another task by clicking the new task's icon.</p>
<p>Check out the Integrations page now to see if your favourite tools are supported!</p>
<Link href="settings.html?tab=integrations"><Button>Integrations</Button></Link>
<Link href="settings.html?tab=integrations"><Button>Integrations <Arrow/></Button></Link>
</div>
</div>
<div>
Expand All @@ -70,7 +72,7 @@ export default function QuickStartGuide () {
<p>Pomodoro® is a technique to help you focus on a task, by working hard for short intervals then taking a break.</p>
<p>Toggl Button's pomodoro mode lets you set your interval length, and reminds you to take a break when time's up. You can also enable a ticking sound to help keep you on track.</p>
<p>Turn it on from the Pomodoro page.</p>
<Link href="settings.html?tab=pomodoro"><Button>Pomodoro</Button></Link>
<Link href="settings.html?tab=pomodoro"><Button>Pomodoro <Arrow/></Button></Link>
</div>
</div>
<div>
Expand Down Expand Up @@ -162,6 +164,17 @@ const section = css`
Button:hover {
background: rgb(241,244,246);
}
Button svg {
width: 8px;
margin-left: 10px;
transition: all 0.2s ease-in;
}
Button:hover svg {
width: 10px;
margin-left: 8px;
}
}
& > div:last-of-type {
Expand Down

0 comments on commit 5f8aaa3

Please sign in to comment.