Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include beta indicator on Appwrite Cloud #574

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Oct 4, 2023

What does this PR do?

To help emphasize Appwrite Cloud is still in beta

Test Plan

Cloud

Navbar Desktop

Screen Shot 2023-10-04 at 11 27 15 AM

Navbar Mobile

Screen Shot 2023-10-04 at 11 27 29 AM

Sign In Desktop

Screen Shot 2023-10-03 at 5 19 19 PM

Sign In Mobile

image

Self-hosted

Navbar

Screen Shot 2023-10-03 at 5 18 31 PM

Login

Screen Shot 2023-10-03 at 5 18 24 PM

Related PRs and Issues

None

Have you read the Contributing Guidelines on issues?

Yes

@vercel
Copy link

vercel bot commented Oct 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 5, 2023 9:27pm
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 5, 2023 9:27pm
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 5, 2023 9:27pm
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 5, 2023 9:27pm

@@ -127,4 +131,50 @@
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.aw-eyebrow {
font-family: 'Source Code Pro';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have Aeonik Fono in the Console. Is that okay?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we actually decided to use the operating systems font for monospace

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a fallback for monospace.

Comment on lines +161 to +166
box-shadow:
0.1875rem 0.1875rem var(--p-badges-shadow-bg-color),
0.25rem 0.1875rem var(--p-badges-shadow-border-color),
0.1875rem 0.25rem var(--p-badges-shadow-border-color),
0.125rem 0.1875rem var(--p-badges-shadow-border-color),
0.1875rem 0.125rem var(--p-badges-shadow-border-color);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shadow on the website is black, but in the design is pinkish. Which should I follow?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shadows might be tricky, I'd use what we have and create a task for fixing this one we do the porting to the new colors in pink

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use what we have

@ArmanNik, what do you mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried using the shadow-large class, but it didn't add much of a shadow and it looked different than the design.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd personally say following the design is more important. Does using inspect on Figma (in dev mode) return a box-shadow property for you? If so, you can use that directly while Pink/Console is not updated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd personally say following the design is more important. Does using inspect on Figma (in dev mode) return a box-shadow property for you? If so, you can use that directly while Pink/Console is not updated

@TGlide the design doesn't use a box shadow. it uses extra divs and hard-coded sizes. I've been fiddling with the CSS for a few hours and made no progress so I'm thinking it might be better to leave as is for now and revisit when the website is updated. Then, we can update it in the Console. How does that sound?

@@ -74,6 +75,11 @@
height="22"
alt="Appwrite" />
</a>
{#if isCloud}
<div class="tag eyebrow-heading-3">
<span class="text u-x-small">Beta</span>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what we have in pink, this seems like the smallest this element can get, but it doesn't match the design. How can I make it smaller?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could do something like style:font-size="0.5rem!important" and try to match the design

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the font size didn't automatically adjust the size of the tag or margins so I had to tweak those manually.

@eldadfux
Copy link
Member

eldadfux commented Oct 4, 2023

@stnguyen90 I can't login, how does all of that look on mobile?

@stnguyen90
Copy link
Contributor Author

@eldadfux I've added screenshots of mobile.

Comment on lines 83 to 84
style="--p-tag-height: 25px; --p-tag-content-height: 18px;">
<span class="text u-x-small" style="margin-block: 3.5px; font-weight: 500">Beta</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably use rems if possible so it can scale with the users' base size.
Also I would add padding to the tag rather than margin to the text 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated!

Comment on lines +161 to +166
box-shadow:
0.1875rem 0.1875rem var(--p-badges-shadow-bg-color),
0.25rem 0.1875rem var(--p-badges-shadow-border-color),
0.1875rem 0.25rem var(--p-badges-shadow-border-color),
0.125rem 0.1875rem var(--p-badges-shadow-border-color),
0.1875rem 0.125rem var(--p-badges-shadow-border-color);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shadows might be tricky, I'd use what we have and create a task for fixing this one we do the porting to the new colors in pink

@TorstenDittmann TorstenDittmann merged commit 2f47e4e into main Oct 9, 2023
2 checks passed
@TorstenDittmann TorstenDittmann deleted the feat-beta-navbar branch October 9, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants