Skip to content

[IMP] website: show welcome message on homepage #4609

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 1 commit into from
May 9, 2025

Conversation

divy-odoo
Copy link

No description provided.

@robodoo
Copy link

robodoo commented May 8, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

@divy-odoo divy-odoo force-pushed the master-mysterious-egg-tour-divy-3 branch from cd9d892 to e66d5d3 Compare May 8, 2025 12:12
Comment on lines 387 to 390
while (wrapEl.firstChild) {
wrapEl.removeChild(wrapEl.lastChild);
}
wrapEl.append(this.welcomeMessageEl);
Copy link

Choose a reason for hiding this comment

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

wrapEl.replaceChildren(this.welcomeMessageEl);

@@ -21,4 +21,10 @@
</div>
</t>

<t t-name="website.homepage_editor_welcome_message">
<div class="container text-center pt128 pb128 h-100">
Copy link

Choose a reason for hiding this comment

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

The font family is off. In the old editor there was a class .o_homepage_editor_welcome_message on this div, which applied:

.o_homepage_editor_welcome_message {
    padding-top: 128px;
    padding-bottom: 128px;
    font-family: $o-font-family-sans-serif;
}

We can use the bootstrap classes for the padding, but let's keep the font :)

Copy link
Author

Choose a reason for hiding this comment

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

Hello @robinlej , thanks for the review. 😄

Nice catch! I've made the changes, but here I'm not sure if this is the right bundle/folder for front-end SCSS (as I didn’t see any major front-end scss file in this module). Hopefully, it’s correct, but could you please double-check it? Let me know if any change there.

Thanks in advance 🙂

Copy link

Choose a reason for hiding this comment

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

Oops, I didn't see your comment before merging. Now that you ask, I wonder if it shouldn't be in web.assets_backend instead (backend being when you're connected).

Copy link
Author

Choose a reason for hiding this comment

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

I thought that but No, assets_backend won't work here. This style needs to be loaded inside the iframe containing the website preview, whereas assets_backend is loaded in the web client, where the website selector isn't accessible.

@divy-odoo divy-odoo force-pushed the master-mysterious-egg-tour-divy-3 branch 2 times, most recently from 3c6da1b to 84fda32 Compare May 9, 2025 10:13
@divy-odoo divy-odoo force-pushed the master-mysterious-egg-tour-divy-3 branch from 84fda32 to 0e638d2 Compare May 9, 2025 10:18
@robinlej robinlej marked this pull request as ready for review May 9, 2025 15:54
@robodoo
Copy link

robodoo commented May 9, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

@robinlej robinlej merged commit 164450d into master-mysterious-egg May 9, 2025
@robinlej robinlej deleted the master-mysterious-egg-tour-divy-3 branch May 9, 2025 15:55
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.

3 participants