Skip to content

feat: add carbon ads #724

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

Merged
merged 3 commits into from
Dec 6, 2020
Merged

feat: add carbon ads #724

merged 3 commits into from
Dec 6, 2020

Conversation

posva
Copy link
Member

@posva posva commented Dec 2, 2020

Description of Problem

Proposed Solution

Additional Information

Closes #30

I couldn't test locally because the serve script fails right away

There are a few necessary changes left to be done to display the ads correctly and mimic vuejs.org

<style>
/* add a placeholder to give space to ads so they don't overlap with content */
@media screen and (max-width: 1376px) {
.content__default::before {
Copy link
Member Author

Choose a reason for hiding this comment

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

This to make the ad take some space

vuejs.org, ad inside content

Screen Shot 2020-12-02 at 13 25 04

vuepress doesn't:

Screen Shot 2020-12-02 at 13 25 11

But it creates overlap for tip containers unless we add overflow-x: auto but that breaks the icon display:

Screen Shot 2020-12-02 at 13 20 02

Which is the reason I added the background

@@ -77,7 +97,7 @@ export default {
)
},

shouldShowSidebar () {
shouldShowSidebar() {
Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently other functions are also following this convention. I simply forgot to turn off auto format when saving but I can revert these changes

@NataliaTepluhina
Copy link
Member

@posva looks really nice! Should we remove the Draft state and merge the PR?

@posva
Copy link
Member Author

posva commented Dec 5, 2020

Is the background solution satisfactory enough?
I'm only worried because I'm using hacky stuff in CSS but I couldn't figure out a different way 😓

@NataliaTepluhina
Copy link
Member

@posva I think it's justified to be hacky 😅

@posva posva marked this pull request as ready for review December 6, 2020 09:08
@posva
Copy link
Member Author

posva commented Dec 6, 2020

Okay, I thought the same 😅

@NataliaTepluhina NataliaTepluhina merged commit 10fa837 into vuejs:master Dec 6, 2020
@posva posva deleted the feat/ads branch December 6, 2020 14:58
fimion pushed a commit to fimion/docs-next that referenced this pull request Dec 21, 2020
* feat: add carbon ads

* refactor: add computed

* refactor: background for style
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.

Integrate Carbon ads
2 participants