Skip to content

Commit

Permalink
Change landing page title (#2681)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner authored Nov 1, 2024
1 parent 961a6f1 commit f1a8698
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/frontend/src/components/landingPage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"en": {
"title": "Identity that's private and decentralized.",
"title_1": "Decentralized.",
"title_2": "Private. Identity.",
"subtitle": "Since 2021, Internet Identity has combined secure passkey technology with the Internet Computer to keep you safe."
}
}
5 changes: 4 additions & 1 deletion src/frontend/src/components/landingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export const landingPage = ({
</section>
<section class="c-landingPage__left" aria-label="Action Pane">
<div class="c-landingPage__left__content">
<h1 class="c-landingPage__title">${copy.title}</h1>
<h1 class="c-landingPage__title">
<span>${copy.title_1}</span>
<span>${copy.title_2}</span>
</h1>
<p class="t-paragraph">${copy.subtitle}</p>
</div>
<div class="c-landingPage__left__footer">
Expand Down
8 changes: 7 additions & 1 deletion src/frontend/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,12 @@ a:hover,
font-size: var(--rs-split-page-title);
font-weight: 600;
line-height: 1.1;

display: flex;
flex-direction: column;

/* We don't want to break the lines of the title */
white-space: nowrap;
}

.c-landingPage__logo {
Expand Down Expand Up @@ -1028,7 +1034,7 @@ a:hover,

display: flex;
flex-direction: column;
align-items: center;
align-items: flex-start;
justify-content: center;

padding: 0 20%;
Expand Down

0 comments on commit f1a8698

Please sign in to comment.