Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Oct 20, 2022

https://topcoder.atlassian.net/browse/TCA-550

Adds a new style for the certificate view that is more optimized for social platforms. To trigger this view you need to add a query parameter ?view-style=large-container. This will change the container for the certificate to 1200px/630px.

@vas3a vas3a self-assigned this Oct 20, 2022
Copy link
Contributor

@brooketopcoder brooketopcoder left a comment

Choose a reason for hiding this comment

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

Looks good. just one request...


&:global(.large-container) {
aspect-ratio: unset;
width: 1200px;
Copy link
Contributor

Choose a reason for hiding this comment

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

can we make this a ratio a mixin in case we do share other images via social media?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@brooketopcoder I'm not sure what you mean by ratio a mixin. Do you mean the 1200/630px size?

Copy link
Contributor

Choose a reason for hiding this comment

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

@vas3a yeah. something like...

@mixin social-preview {
    aspect-ratio: unset;
    width: 1200px;
    height: 630px;
}

@brooketopcoder brooketopcoder deleted the branch TCA-516_optimize-certificate-for-social October 20, 2022 16:47
@vas3a vas3a requested a review from brooketopcoder October 20, 2022 19:31
@vas3a vas3a merged commit 756dbd3 into TCA-516_optimize-certificate-for-social Oct 21, 2022
@vas3a vas3a deleted the TCA-550_add-larger-version-of-certificate-container branch October 21, 2022 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants