Skip to content

Commit

Permalink
Fixed couple of alignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirquestai committed Apr 28, 2022
1 parent bcd4407 commit dd27ed4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 52 deletions.
44 changes: 14 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
# Getting Started with Create React App
# Quest Sample Components

This repository contains code for the Samples created using Quest Components

## Available Samples

You can find the Dashboard sample at: src/moonbase/dashboard
You can find the Payment sample at: src/moonbase/payment

## Learn More

You can learn more about Quest Components in the [Quest documentation](https://docs.quest.ai).

# Running the application

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

Expand Down Expand Up @@ -39,32 +52,3 @@ Instead, it will copy all the configuration files and the transitive dependencie

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
4 changes: 2 additions & 2 deletions src/moonbase/dashboard/FeedbackBarPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ const FeedbackBar1 = styled(FeedbackBar)(({ theme }) =>({
const Content = styled("div")({
display: `flex`,
flexDirection: `column`,
justifyContent: `center`,
justifyContent: `flex-start`,
alignItems: `flex-start`,
padding: `0px`,
padding: `60px 0px 0px 0px`,
boxSizing: `border-box`,
alignSelf: `stretch`,
flexGrow: `1`,
Expand Down
4 changes: 2 additions & 2 deletions src/moonbase/dashboard/NavbarPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ const Sidebar1 = styled(Sidebar)(({ theme }) =>({
const Content = styled("div")({
display: `flex`,
flexDirection: `column`,
justifyContent: `center`,
justifyContent: `flex-start`,
alignItems: `flex-start`,
padding: `0px`,
padding: `60px 0px 0px 0px`,
boxSizing: `border-box`,
alignSelf: `stretch`,
flexGrow: `1`,
Expand Down
40 changes: 22 additions & 18 deletions src/moonbase/payment/PaymentCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ const ScreenDesktop = styled("div", {
borderRadius: `10px`,
display: `flex`,
flexDirection: data.size === "mobile" ? `column` : `row`,
width: data.size === "mobile" ? `360px` : `728px`,
width: data.size === "mobile" ? `264px` : `728px`,
height: data.size === "mobile" ? "unset" : `574px`,
justifyContent: `flex-start`,
alignItems: `flex-start`,
gap: `40px`,
padding: `40px`,
gap: data.size === "mobile" ? `30px` : `40px`,
padding: data.size === "mobile" ? `26px` : `40px`,
boxSizing: `border-box`,
overflow: `hidden`,
}));
Expand All @@ -51,7 +51,7 @@ const Image = styled("div", {
gap: `40px`,
alignSelf: `stretch`,
width: data.size === "mobile" ? "unset" : `304px`,
height: data.size === "mobile" ? `242px` : "unset",
height: data.size === "mobile" ? `190px` : "unset",
}));

const Form = styled("div", {
Expand Down Expand Up @@ -115,32 +115,36 @@ const Text = styled("div")({
boxSizing: `border-box`,
});

const ConfirmPurchase = styled("div")(({ theme }) =>({
const ConfirmPurchase = styled("div", {
shouldForwardProp: prop => !["data"].includes(prop)
})(({ theme, data }) =>({
textAlign: `left`,
whiteSpace: `pre-wrap`,
color: `rgba(0, 0, 0, 1)`,
fontStyle: theme.typography["Typography"]["H5"].fontStyle,
fontFamily: theme.typography["Typography"]["H5"].fontFamily,
fontWeight: theme.typography["Typography"]["H5"].fontWeight,
fontSize: theme.typography["Typography"]["H5"].fontSize,
letterSpacing: theme.typography["Typography"]["H5"].letterSpacing,
textDecoration: theme.typography["Typography"]["H5"].textDecoration,
lineHeight: theme.typography["Typography"]["H5"].lineHeight,
textTransform: theme.typography["Typography"]["H5"].textTransform,
fontStyle: data.size === "mobile" ? `normal` : theme.typography["Typography"]["H5"].fontStyle,
fontFamily: data.size === "mobile" ? `Heebo` : theme.typography["Typography"]["H5"].fontFamily,
fontWeight: data.size === "mobile" ? `400` : theme.typography["Typography"]["H5"].fontWeight,
fontSize: data.size === "mobile" ? `22px` : theme.typography["Typography"]["H5"].fontSize,
letterSpacing: data.size === "mobile" ? `0px` : theme.typography["Typography"]["H5"].letterSpacing,
textDecoration: data.size === "mobile" ? `none` : theme.typography["Typography"]["H5"].textDecoration,
lineHeight: data.size === "mobile" ? "unset" : theme.typography["Typography"]["H5"].lineHeight,
textTransform: data.size === "mobile" ? `none` : theme.typography["Typography"]["H5"].textTransform,
}));

const ItemName = styled("div")({
const ItemName = styled("div", {
shouldForwardProp: prop => !["data"].includes(prop)
})(({ data }) =>({
textAlign: `left`,
whiteSpace: `pre-wrap`,
color: `rgba(0, 0, 0, 1)`,
fontStyle: `normal`,
fontFamily: `Heebo`,
fontWeight: `400`,
fontSize: `20px`,
fontSize: data.size === "mobile" ? `18px` : `20px`,
letterSpacing: `0px`,
textDecoration: `none`,
textTransform: `none`,
});
}));

const ItemPrice = styled("div")({
textAlign: `left`,
Expand Down Expand Up @@ -373,10 +377,10 @@ function PaymentCard(props) {
<TextTop data={data} >
<TopRow >
<Text >
<ConfirmPurchase >
<ConfirmPurchase data={data} >
{`Confirm Purchase`}
</ConfirmPurchase>
<ItemName >
<ItemName data={data} >
{props.product.name}
</ItemName>
<ItemPrice >
Expand Down

1 comment on commit dd27ed4

@vercel
Copy link

@vercel vercel bot commented on dd27ed4 Apr 28, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.