Skip to content

Commit 2588d5f

Browse files
committed
[dashboard] Unify 'Learn more' link style with a 'learn-more' CSS class name
1 parent c5027f0 commit 2588d5f

File tree

10 files changed

+15
-11
lines changed

10 files changed

+15
-11
lines changed

components/dashboard/src/FromReferrer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function FromReferrer() {
2222
<h3 className="text-center pb-3 text-gray-500 dark:text-gray-400">No Referrer Found</h3>
2323
<div className="text-center pb-6 text-gray-500">
2424
<p>It looks like you are trying to open a workspace, but the referrer URL is empty. This happens when the git hoster doesn't send the referrer header.
25-
<br/> Please prefix the repository URL with <pre>https://gitpod.io/#</pre> in order to start a workspace. <a className="text-gray-400 underline underline-thickness-thin underline-offset-small hover:text-gray-600" href="https://www.gitpod.io/docs/getting-started/">Learn more</a></p>
25+
<br/> Please prefix the repository URL with <pre>https://gitpod.io/#</pre> in order to start a workspace. <a className="text-gray-400 learn-more hover:text-gray-600" href="https://www.gitpod.io/docs/getting-started/">Learn more</a></p>
2626
</div>
2727
<span>
2828
<Link to="/"><button className="secondary">Go to Dashboard</button></Link>

components/dashboard/src/Login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export function Login() {
163163
</div>
164164
<div className="flex-none mx-auto h-20 text-center">
165165
<span className="text-gray-400">
166-
By signing in, you agree to our <a className="underline underline-thickness-thin underline-offset-small hover:text-gray-600" target="gitpod-terms" href="https://www.gitpod.io/terms/">terms of service</a>.
166+
By signing in, you agree to our <a className="learn-more hover:text-gray-600" target="gitpod-terms" href="https://www.gitpod.io/terms/">terms of service</a>.
167167
</span>
168168
</div>
169169
</div>

components/dashboard/src/Setup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function Setup() {
4545

4646
<div className="flex">
4747
<span className="text-gray-500">
48-
By using Gitpod, you agree to our <a className="underline underline-thickness-thin underline-offset-small hover:text-gray-600" target="gitpod-terms" href="https://www.gitpod.io/self-hosted-terms/">terms</a>.
48+
By using Gitpod, you agree to our <a className="learn-more hover:text-gray-600" target="gitpod-terms" href="https://www.gitpod.io/self-hosted-terms/">terms</a>.
4949
</span>
5050
</div>
5151
</div>

components/dashboard/src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
@apply cursor-default opacity-50 pointer-events-none;
5959
}
6060

61+
a.learn-more {
62+
@apply underline underline-thickness-thin underline-offset-small;
63+
}
64+
6165
input[type=text], input[type=search], input[type=password], select {
6266
@apply block w-56 text-gray-600 dark:text-gray-400 bg-white dark:bg-gray-800 rounded-md border border-gray-300 dark:border-gray-500 focus:border-gray-400 dark:focus:border-gray-400 focus:ring-0;
6367
}

components/dashboard/src/projects/Projects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function() {
1414
<div>
1515
<img alt="Projects (empty)" className="h-44 mt-24 mx-auto" role="presentation" src={projectsEmpty} />
1616
<h3 className="text-center text-gray-500 mt-8">No Recent Projects</h3>
17-
<p className="text-center text-base text-gray-500 mt-4">Add projects to enable and manage Prebuilds.<br/><a className="underline" href="https://www.gitpod.io/docs/prebuilds/">Learn more about Prebuilds</a></p>
17+
<p className="text-center text-base text-gray-500 mt-4">Add projects to enable and manage Prebuilds.<br/><a className="learn-more" href="https://www.gitpod.io/docs/prebuilds/">Learn more about Prebuilds</a></p>
1818
<div className="flex space-x-2 justify-center mt-7">
1919
<button>New Project</button>
2020
<Link to="./members"><button className="secondary">Invite Members</button></Link>

components/dashboard/src/settings/EnvironmentVariables.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export default function EnvVars() {
207207
? <div className="bg-gray-100 dark:bg-gray-800 rounded-xl w-full h-96">
208208
<div className="pt-28 flex flex-col items-center w-96 m-auto">
209209
<h3 className="text-center pb-3 text-gray-500 dark:text-gray-400">No Environment Variables</h3>
210-
<div className="text-center pb-6 text-gray-500">In addition to user-specific environment variables you can also pass variables through a workspace creation URL. <a className="text-gray-400 underline underline-thickness-thin underline-offset-small hover:text-gray-600" href="https://www.gitpod.io/docs/environment-variables/#using-the-account-settings">Learn more</a></div>
210+
<div className="text-center pb-6 text-gray-500">In addition to user-specific environment variables you can also pass variables through a workspace creation URL. <a className="text-gray-400 learn-more hover:text-gray-600" href="https://www.gitpod.io/docs/environment-variables/#using-the-account-settings">Learn more</a></div>
211211
<button onClick={add}>New Variable</button>
212212
</div>
213213
</div>

components/dashboard/src/settings/Integrations.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,8 @@ export function GitIntegrationModal(props: ({
592592

593593
return (<span>
594594
Use this redirect URL to update the OAuth application.
595-
Go to <a href={`https://${settingsUrl}`} target="_blank" rel="noopener" className="text-gray-400 underline underline-thickness-thin underline-offset-small hover:text-gray-600">developer settings</a> and setup the OAuth application.&nbsp;
596-
<a href={docsUrl} target="_blank" rel="noopener" className="text-gray-400 underline underline-thickness-thin underline-offset-small hover:text-gray-600">Learn more</a>.
595+
Go to <a href={`https://${settingsUrl}`} target="_blank" rel="noopener" className="text-gray-400 learn-more hover:text-gray-600">developer settings</a> and setup the OAuth application.&nbsp;
596+
<a href={docsUrl} target="_blank" rel="noopener" className="text-gray-400 learn-more hover:text-gray-600">Learn more</a>.
597597
</span>);
598598
}
599599

components/dashboard/src/settings/Teams.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ function AllTeams() {
460460
<div className="w-full flex h-80 mt-2 rounded-xl bg-gray-100 dark:bg-gray-900">
461461
<div className="m-auto text-center">
462462
<h3 className="self-center text-gray-500 dark:text-gray-400 mb-4">No Active Teams</h3>
463-
<div className="text-gray-500 mb-6">Get started by creating a team<br /> and adding team members. <a href="https://www.gitpod.io/docs/teams/" target="_blank" rel="noopener" className="text-gray-400 underline underline-thickness-thin underline-offset-small hover:text-gray-600">Learn more</a></div>
463+
<div className="text-gray-500 mb-6">Get started by creating a team<br /> and adding team members. <a href="https://www.gitpod.io/docs/teams/" target="_blank" rel="noopener" className="text-gray-400 learn-more hover:text-gray-600">Learn more</a></div>
464464
<button className="self-center" onClick={() => showCreateTeamModal()}>Create Team</button>
465465
</div>
466466
</div>

components/dashboard/src/teams/NewTeam.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function () {
2929
}
3030
return <div className="flex flex-col w-96 mt-16 mx-auto items-center">
3131
<h1>New Team</h1>
32-
<p className="text-gray-500 text-center text-base">Teams allow you to <strong>group multiple projects</strong>, <strong>collaborate with others</strong>, <strong>manage subscriptions</strong> with one centralized billing, and more. <a href="">Learn more</a></p>
32+
<p className="text-gray-500 text-center text-base">Teams allow you to <strong>group multiple projects</strong>, <strong>collaborate with others</strong>, <strong>manage subscriptions</strong> with one centralized billing, and more. <a className="learn-more" href="https://www.gitpod.io/docs/teams/">Learn more</a></p>
3333
<form className="mt-16 w-full" onSubmit={createTeam}>
3434
<div className="border rounded-xl p-6 border-gray-100 dark:border-gray-800">
3535
<h3 className="text-center text-xl mb-6">What's your team's name?</h3>

components/dashboard/src/workspaces/Workspaces.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default class Workspaces extends React.Component<WorkspacesProps, Workspa
122122
</ItemFieldIcon>
123123
<ItemField className=" flex flex-col">
124124
<div className="text-gitpod-red font-semibold">Garbage Collection</div>
125-
<p className="text-gray-500">Unpinned workspaces that have been stopped for more than 14 days will be automatically deleted. <a className="text-blue-600 underline underline-thickness-thin underline-offset-small hover:text-gray-800 hover:dark:text-gray-100" href="https://www.gitpod.io/docs/life-of-workspace/#garbage-collection">Learn more</a></p>
125+
<p className="text-gray-500">Unpinned workspaces that have been stopped for more than 14 days will be automatically deleted. <a className="text-blue-600 learn-more hover:text-gray-800 hover:dark:text-gray-100" href="https://www.gitpod.io/docs/life-of-workspace/#garbage-collection">Learn more</a></p>
126126
</ItemField>
127127
</Item>
128128
}
@@ -137,7 +137,7 @@ export default class Workspaces extends React.Component<WorkspacesProps, Workspa
137137
<div className="px-6 py-3 flex justify-between space-x-2 text-gray-400 border-t border-gray-200 dark:border-gray-800 h-96">
138138
<div className="flex flex-col items-center w-96 m-auto">
139139
<h3 className="text-center pb-3 text-gray-500 dark:text-gray-400">No Active Workspaces</h3>
140-
<div className="text-center pb-6 text-gray-500">Prefix any git repository URL with gitpod.io/# or create a new workspace for a recently used project. <a className="text-gray-400 dark:text-gray-600 underline underline-thickness-thin underline-offset-small hover:text-gray-500 dark:hover:text-gray-500" href="https://www.gitpod.io/docs/getting-started/">Learn more</a></div>
140+
<div className="text-center pb-6 text-gray-500">Prefix any git repository URL with gitpod.io/# or create a new workspace for a recently used project. <a className="text-gray-400 dark:text-gray-600 learn-more hover:text-gray-500 dark:hover:text-gray-500" href="https://www.gitpod.io/docs/getting-started/">Learn more</a></div>
141141
<span>
142142
<button onClick={this.showStartWSModal}>New Workspace</button>
143143
{wsModel.getAllFetchedWorkspaces().size > 0 ? <button className="secondary ml-2" onClick={onAll}>View All Workspaces</button>:null}

0 commit comments

Comments
 (0)