Skip to content

EPS-1130: Make right sidebar sticky with the CTA to upgrade #1130

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

Open
wants to merge 1 commit into
base: release-candidate
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/main.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '03d99ce0f38ffa535a19');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'f962a012e75d35cb3c3a');
3 changes: 0 additions & 3 deletions build/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -874,9 +874,6 @@
:is(#hfe-settings-app, [data-floating-ui-portal]) .w-4{
width: 1rem;
}
:is(#hfe-settings-app, [data-floating-ui-portal]) .w-52{
width: 13rem;
}
:is(#hfe-settings-app, [data-floating-ui-portal]) .w-60{
width: 15rem;
}
Expand Down
2 changes: 1 addition & 1 deletion build/main.js

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions gettext.pot
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,18 @@ msgstr ""
msgid "Breadcrumbs"
msgstr ""

#: src/Components/Compare/FreevsPro.jsx:22
msgid "Retina Logo"
msgstr ""

#: src/Components/Compare/FreevsPro.jsx:220
#: src/Components/Compare/FreevsPro.jsx:218
#: src/Components/Dashboard/ExtendWebsiteWidget.jsx:178
#: src/Components/NavMenu.js:252
msgid "Free"
msgstr ""

#: src/Components/Compare/FreevsPro.jsx:22
msgid "Retina Logo"
msgstr ""

#: src/Components/Compare/FreevsPro.jsx:224
#: src/Components/Compare/FreevsPro.jsx:226
msgid "Pro"
msgstr ""

Expand Down
139 changes: 71 additions & 68 deletions src/Components/Compare/FreevsPro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,78 +159,81 @@ const FreevsPro = () => {

return (
<div className="rounded-lg bg-white w-full mb-6">
<div
className="flex items-center justify-between p-5"
style={{ paddingBottom: "0" }}
<div
className="flex items-center justify-between p-5 overflow-auto"
style={{ paddingBottom: "0" }}
>
<div className="flex flex-col">
<p className="m-0 text-xl font-semibold pt-4 text-text-primary">
{__("Free Vs Pro", "header-footer-elementor")}
</p>
<p className="m-0 text-sm font-normal pt-1 text-text-secondary">
{__("Ultimate Addons for Elementor Pro offers 50+ widgets and features!", "header-footer-elementor")}
</p>
<p className="m-0 text-sm font-normal pt-1 text-text-secondary">
{__(
"Compare the popular features/widgets to find the best option for your website.",
"header-footer-elementor"
)}
</p>
</div>
<div className="flex items-center gap-x-2 mr-7">
<Button
iconPosition="right"
variant="primary"
style={{
color: "white",
borderColor: "#6005FF",
transition: "color 0.3s ease, border-color 0.3s ease",
backgroundColor: "#6005ff",
}}
className="hfe-remove-ring text-[#6005FF]"
onClick={() => {
window.open(
"https://ultimateelementor.com/pricing/?utm_source=uae-lite-FreevsPro&utm_medium=get-uae-pro&utm_campaign=uae-lite-upgrade",
"_blank"
);
}}
>
<div className="flex flex-col">
<p className="m-0 text-xl font-semibold pt-4 text-text-primary">
{__("Free Vs Pro", "header-footer-elementor")}
</p>
<p className="m-0 text-sm font-normal pt-1 text-text-secondary">
{__("Ultimate Addons for Elementor Pro offers 50+ widgets and features!", "header-footer-elementor")}
</p>
<p className="m-0 text-sm font-normal pt-1 text-text-secondary">
{__(
"Compare the popular features/widgets to find the best option for your website.",
"header-footer-elementor"
)}
</p>
</div>
<div className="flex items-center gap-x-2 mr-7">
<Button
iconPosition="right"
variant="primary"
style={{
color: "white",
borderColor: "#6005FF",
transition: "color 0.3s ease, border-color 0.3s ease",
backgroundColor: "#6005ff",
}}
className="hfe-remove-ring text-[#6005FF]"
onClick={() => {
window.open(
"https://ultimateelementor.com/pricing/?utm_source=uae-lite-FreevsPro&utm_medium=get-uae-pro&utm_campaign=uae-lite-upgrade",
"_blank"
);
}}
{__("Upgrade Now", "header-footer-elementor")}
</Button>
</div>
</div>

{/* Scrollable content */}
<div className="px-4" style={{ maxHeight: '580px', overflowY: 'auto' }}>
<div className="flex flex-col space-y-2 pt-5">
{sections.map((section) => (
<React.Fragment key={section.title}>
<div
className="flex flex-row py-4 px-5 items-center h-4 justify-between rounded-lg shadow-container-item"
style={{ backgroundColor: "#F9FAFB" }}
>
{__("Upgrade Now", "header-footer-elementor")}
</Button>
</div>
</div>
<div className="px-4">
<div className="flex flex-col space-y-2 pt-5">
{sections.map((section) => (
<React.Fragment key={section.title}>
<div
className="flex fle-row py-4 px-5 items-center h-4 justify-between rounded-lg shadow-container-item"
style={{ backgroundColor: "#F9FAFB" }}
<p className="text-sm text-text-primary font-medium">
{section.title}
</p>
<div
className="flex flex-row items-center"
style={{ gap: "12rem" }}
>
<p className="text-sm text-text-primary font-medium">
{__("Free", "header-footer-elementor")}
</p>
<p
className="text-sm text-text-primary font-medium"
style={{ marginRight: "50px" }}
>
<p className="text-sm text-text-primary font-medium">
{section.title}
</p>
<div
className="flex flex-row items-center"
style={{ gap: "12rem" }}
>
<p className="text-sm text-text-primary font-medium">
{__("Free", "header-footer-elementor")}
</p>
<p
className="text-sm text-text-primary font-medium"
style={{ marginRight: "50px" }}
>
{__("Pro", "header-footer-elementor")}
</p>
</div>
</div>
{renderItems(section.items)}
</React.Fragment>
))}
</div>
</div>
{__("Pro", "header-footer-elementor")}
</p>
</div>
</div>
{renderItems(section.items)}
</React.Fragment>
))}
</div>
</div>
</div>

);
};

Expand Down
Loading