diff --git a/app/client/src/components/ads/NumberedStep.tsx b/app/client/src/components/ads/NumberedStep.tsx index 2f669a066f92..8c810822a180 100644 --- a/app/client/src/components/ads/NumberedStep.tsx +++ b/app/client/src/components/ads/NumberedStep.tsx @@ -12,7 +12,7 @@ const Container = styled.div` `; const Line = styled.div` - width: 2px; + width: 1px; flex: 1; background-color: ${(props) => props.theme.colors.numberedStep.line}; `; diff --git a/app/client/src/constants/messages.ts b/app/client/src/constants/messages.ts index 80dcd3b1719b..074c51eeb0d9 100644 --- a/app/client/src/constants/messages.ts +++ b/app/client/src/constants/messages.ts @@ -445,3 +445,6 @@ export const CONNECT = () => "Connect"; export const DEPLOY_TO_CLOUD = () => "Deploy to cloud"; export const DEPLOY_WITHOUT_GIT = () => "Deploy your application without version control"; +export const DEPLOY_YOUR_APPLICATION = () => "Deploy your application"; +export const COMMIT = () => "COMMIT"; +export const PUSH = () => "PUSH"; diff --git a/app/client/src/pages/Editor/gitSync/Deploy/Commit.tsx b/app/client/src/pages/Editor/gitSync/Deploy/Commit.tsx new file mode 100644 index 000000000000..e3a5e0c204ea --- /dev/null +++ b/app/client/src/pages/Editor/gitSync/Deploy/Commit.tsx @@ -0,0 +1,96 @@ +import React from "react"; +import { Title, Caption } from "../components/StyledComponents"; +import { + DEPLOY_YOUR_APPLICATION, + COMMIT, + PUSH, + createMessage, +} from "constants/messages"; +import styled from "styled-components"; + +import NumberedStep from "components/ads/NumberedStep"; +import OptionSelector from "../components/OptionSelector"; +import { noop } from "lodash"; +import TextInput from "components/ads/TextInput"; +import Button, { Size } from "components/ads/Button"; + +const Section = styled.div` + display: flex; + margin-bottom: ${(props) => props.theme.spaces[11]}px; +`; + +const Row = styled.div` + display: flex; + align-items: center; +`; + +const NumberedStepContainer = styled.div` + padding-top: ${(props) => `${props.theme.spaces[3] + 1}px`}; + padding-right: ${(props) => `${props.theme.spaces[11]}px`}; +`; + +const Gutter = styled.div` + height: ${(props) => props.theme.spaces[3]}px; +`; + +// mock data +const options = [ + { label: "Master", value: "master" }, + { label: "Feature/new-feature", value: "Feature/new-feature" }, +]; + +export default function Commit() { + return ( + <> + {createMessage(DEPLOY_YOUR_APPLICATION)} +
+ + + +
+ + {createMessage(COMMIT)}  + + + + +
+
+
+ + + +
+ + {createMessage(PUSH)}  + + +
+
+ + ); +} diff --git a/app/client/src/pages/Editor/gitSync/components/StyledComponents.tsx b/app/client/src/pages/Editor/gitSync/components/StyledComponents.tsx index 1fd7d209aef8..b9acb2faa428 100644 --- a/app/client/src/pages/Editor/gitSync/components/StyledComponents.tsx +++ b/app/client/src/pages/Editor/gitSync/components/StyledComponents.tsx @@ -9,6 +9,10 @@ export const Subtitle = styled.p` ${(props) => getTypographyByKey(props, "p3")}; `; +export const Caption = styled.span` + ${(props) => getTypographyByKey(props, "h6")}; +`; + export const Space = styled.div<{ size: number; horizontal?: boolean }>` margin: ${(props) => props.horizontal