-
Notifications
You must be signed in to change notification settings - Fork 19
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
style(frontend): changes footer copyright text #3588
Changes from 15 commits
20be8ff
850e3a7
b765ff8
e8b4169
d2581b6
a38bd29
22fedda
97f0b7a
413c4cb
779bb41
2eb83cb
fb0b408
8e5e7a9
10fb707
6767d91
bf0a7b7
0834cc6
b29c3eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,35 +53,44 @@ | |
</div> | ||
|
||
<div | ||
class="item pointer-events-auto flex flex-row items-center justify-end gap-2 text-sm lg:max-w-48 xl:max-w-none" | ||
class="item pointer-events-auto pl-6 pr-6 text-sm md:pl-0 md:pr-0 lg:max-w-48" | ||
class:sm:max-w-none={$authNotSignedIn} | ||
class:lg:max-w-none={$authNotSignedIn} | ||
class:md:h-md:pr-4={$authNotSignedIn} | ||
class:xl:max-w-none={$authNotSignedIn} | ||
class:md:transition-all={$authSignedIn} | ||
class:md:duration-200={$authSignedIn} | ||
class:md:ease-in-out={$authSignedIn} | ||
class:md:invisible={$authSignedIn} | ||
class:1.5md:visible={$authSignedIn} | ||
class:md:translate-x-full={$authSignedIn} | ||
class:1.5md:translate-x-0={$authSignedIn} | ||
class:xl:max-w-80={$authSignedIn} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tbh, it's really hard to follow what's going on here. E.g. why Also, could you please sort these values? Maybe by CSS rule, ideally with a line break between them. Just for the sake of readability. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just as an idea: maybe it would be easier to maintain this code if we do something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally i think it is easier to understand like it is, instead of I think the best solution would be to order it like you mentioned in the beginning. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright, let's keep them sorted. |
||
class:1.5xl:max-w-none={$authSignedIn} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this one is needed? I don't see a contrary value for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With this command i say that if the screen is bigger than the defined size |
||
> | ||
<ExternalLink | ||
href="https://dfinity.org" | ||
ariaLabel={replaceOisyPlaceholders($i18n.footer.alt.dfinity)} | ||
iconVisible={false} | ||
> | ||
<div class="flex flex-row items-center gap-2"> | ||
<IconDfinity /> | ||
<span | ||
class:md:hidden={$authSignedIn} | ||
class:xl:flex={$authSignedIn} | ||
class:md:h-md:hidden={$authNotSignedIn} | ||
class:1.5md:h-md:flex={$authNotSignedIn} | ||
<div class="flex flex-col items-center pt-2 sm:flex-row sm:items-start sm:gap-2"> | ||
<span class="-mt-[0.35rem]"><IconDfinity size="30" /></span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the reason for negative margin? To align in some custom way the icon with the text? Maybe some line-height for the text could do the job? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes exactly, this is used to aligne the icon with the text. The line-height for the text did not work as needed so i had to use this. |
||
<span | ||
class:md:hidden={$authSignedIn} | ||
class:xl:block={$authSignedIn} | ||
class:md:h-md:hidden={$authNotSignedIn} | ||
class:1.5md:h-md:block={$authNotSignedIn} | ||
class="text-center md:text-left" | ||
> | ||
{replaceOisyPlaceholders($i18n.footer.text.incubated_with)} | ||
<ExternalLink | ||
href="https://dfinity.org" | ||
ariaLabel={replaceOisyPlaceholders($i18n.footer.alt.dfinity)} | ||
iconVisible={false} | ||
color="blue" | ||
> | ||
{replaceOisyPlaceholders($i18n.footer.text.dfinity_foundation)} | ||
</ExternalLink> | ||
<span class="whitespace-nowrap" | ||
>{replaceOisyPlaceholders($i18n.footer.text.copyright)}</span | ||
> | ||
{replaceOisyPlaceholders($i18n.footer.text.developed_with)} | ||
</span> | ||
</div> | ||
</ExternalLink> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
px-6 md:px-6
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, in the Figma we do have a padding of 24px on the left and right that missed till now. But yeah, i can replace
pl-6
andpr-6
withpx-6
.