-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from Invizo/feat/free-shipping-bar/issue#211
feat(free-shipping-bar): admin ui
- Loading branch information
Showing
70 changed files
with
15,636 additions
and
81,493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ node_modules | |
vendor | ||
.idea | ||
lerna-debug.log | ||
assets/build/ | ||
includes/modules/*/assets/build/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
assets/src/components/settings/Panels/PanelSettings/Fields/EmptyField.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Typography, Col } from "antd"; | ||
import SettingsTooltip from "../SettingsTooltip"; | ||
import UpgradeCrown from "../UpgradeCrown"; | ||
import FieldWrapper from "./FieldWrapper"; | ||
const noop = () => {}; | ||
const { Title } = Typography; | ||
|
||
const EmptyField = ({ | ||
title, | ||
tooltip, | ||
colSpan = 24, | ||
needUpgrade = false, | ||
children, | ||
leftCol=9, | ||
rightCol =15 | ||
}) => { | ||
return ( | ||
// Make settings textarea component with card preview. | ||
<FieldWrapper colSpan={colSpan}> | ||
<Col span={leftCol}> | ||
<div className={`card-heading textarea-heading`}> | ||
{/* Handle switcher title. */} | ||
<Title level={3} className={`settings-heading`}> | ||
{title} | ||
</Title> | ||
{/* Handle switcher tooltip. */} | ||
{tooltip && <SettingsTooltip content={tooltip} />} | ||
{/* Handle switcher upgrade icon. */} | ||
{needUpgrade && <UpgradeCrown />} | ||
</div> | ||
</Col> | ||
|
||
<Col span={rightCol}> | ||
{/* Handle settings textarea field by using dynamic props */} | ||
{children} | ||
</Col> | ||
</FieldWrapper> | ||
); | ||
}; | ||
|
||
export default EmptyField; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
includes/modules/countdown-timer/assets/build/settings.asset.php
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
includes/modules/direct-checkout/assets/build/settings.asset.php
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
includes/modules/floating-notification-bar/assets/css/floating-notification-bar.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
body.show_floating_notification_bar .sgsb-floating-notification-bar-wrapper{ | ||
display: block; | ||
transition: 0.5s; | ||
} | ||
|
||
body:not(.show_floating_notification_bar){ | ||
padding-top: 0; | ||
} | ||
|
||
.sgsb-floating-notification-bar-wrapper { | ||
display: none; | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
text-align: center; | ||
width: 100%; | ||
background-color: #008DFF; | ||
color: #fff; | ||
z-index: 999; | ||
height: auto; | ||
padding: 8px 0px; | ||
} | ||
.sgsb-floating-notification-bar { | ||
display: flex; | ||
justify-content: space-between; | ||
width: 97%; | ||
margin:auto; | ||
height: 100%; | ||
align-items: center; | ||
padding: 0px 20px; | ||
} | ||
|
||
.sgsb-floating-notification-bar-wrapper .sgsb-floating-notification-bar-icon svg { | ||
margin-top: 8px; | ||
fill: #fff; | ||
width: 25px; | ||
height: 25px; | ||
} | ||
|
||
.sgsb-floating-notification-bar-text{ | ||
font-size: 20px; | ||
font-weight: 400; | ||
} | ||
|
||
.sgsb-floating-notification-bar-remove { | ||
cursor: pointer; | ||
} | ||
|
||
/* CSS for the button-like anchor */ | ||
.fn-bar-action-button { | ||
display: inline-block; | ||
padding: 5px 20px; | ||
background-color: #ffff; | ||
color: #000; | ||
text-decoration: none; | ||
border-radius: 5px; | ||
transition: background-color 0.3s ease; | ||
font-weight: 600; | ||
} | ||
|
||
.fn-bar-action-button:hover { | ||
background-color: #0056b3; /* Change the background color on hover */ | ||
} | ||
|
||
body.admin-bar .sgsb-floating-notification-bar-wrapper { | ||
top: 32px; | ||
} | ||
body { | ||
padding-top: 70px; | ||
} |
10 changes: 10 additions & 0 deletions
10
...udes/modules/floating-notification-bar/assets/images/free-shipping-bar-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.