Skip to content
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
15 changes: 7 additions & 8 deletions components/Tools/Converters/HtmlToJsx/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, Box, Button, Spacer, Text } from "@chakra-ui/react";
import { Flex, Box, Button, Text } from "@chakra-ui/react";
import { Editor, EditorChange } from "codemirror";
import { Controlled } from "react-codemirror2";
import { useState } from "react";
Expand All @@ -23,9 +23,9 @@ const HtmlToJsx = () => {

return (
<div>
<Flex>
<Box w="45%">
<Text fontSize="3xl" mb="10px" ml="40%">
<Flex flexWrap="wrap" w="full">
<Box w={{ base: "full", md: "45%" }} flexBasis={{ base: "100%", md: "45%" }} mr={{ base: 0, md: 4 }} mb={{ base: 4, md: 0 }}>
<Text fontSize="3xl" mb="10px" textAlign="center">
Html
</Text>
<Controlled
Expand All @@ -38,9 +38,8 @@ const HtmlToJsx = () => {
}}
/>
</Box>
<Spacer />
<Box w="45%">
<Text fontSize="3xl" mb="10px" ml="45%">
<Box w={{ base: "full", md: "45%" }} flexBasis={{ base: "100%", md: "45%" }}>
<Text fontSize="3xl" mb="10px" textAlign="center">
JSX
</Text>
<Controlled
Expand All @@ -55,7 +54,7 @@ const HtmlToJsx = () => {
/>
</Box>
</Flex>
<Button ml="45%" mt="10%" onClick={convert}>
<Button w="full" mt={4} onClick={convert}>
Convert To Jsx
</Button>
</div>
Expand Down
16 changes: 8 additions & 8 deletions components/Tools/Converters/JsonYaml/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ const JsonYaml = () => {

return (
<VStack spacing="5">
<HStack spacing="5" w="100%" justifyContent={"center"}>
<Flex flexWrap="wrap" w="full" justifyContent="center" spacing={4}>
{/* Input Box */}
<Box flexGrow="1">
<Flex justifyContent={"space-between"}>
<Text fontSize="2xl" mb="10px" ml="45%">
<Box w={{ base: "full", md: "auto" }} flexBasis={{ base: "100%", md: "auto" }} flexGrow="1">
<Flex justifyContent="space-between" flexWrap="wrap" mb={2}>
<Text fontSize="2xl" ml={{ base: 0, md: "45%" }}>
Input
</Text>
<HStack spacing="2">
Expand All @@ -83,9 +83,9 @@ const JsonYaml = () => {
/>
</Box>
{/* Output Box */}
<Box flexGrow="1">
<Flex justifyContent={"space-between"}>
<Text fontSize="2xl" mb="10px" ml="45%">
<Box w={{ base: "full", md: "auto" }} flexBasis={{ base: "100%", md: "auto" }} flexGrow="1">
<Flex justifyContent="space-between" flexWrap="wrap" mb={2}>
<Text fontSize="2xl" ml={{ base: 0, md: "45%" }}>
Output
</Text>
<HStack spacing="2">
Expand All @@ -108,7 +108,7 @@ const JsonYaml = () => {
}}
/>
</Box>
</HStack>
</Flex>

{/* Configuration part */}
<Flex w="100%">
Expand Down
8 changes: 4 additions & 4 deletions components/Tools/Converters/UnixTime/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
VStack,
HStack,
Flex,
Table,
Tbody,
Tr,
Expand Down Expand Up @@ -141,8 +141,8 @@ const UnixTime = () => {
<VStack w="100%" align="left">
<FormControl as="fieldset">
<FormLabel as="legend">From Date</FormLabel>
<HStack spacing="2" marginLeft={"auto"}>
<VStack aligh="left">
<Flex flexWrap="wrap" justifyContent="center" spacing={2} w="full">
<VStack align="left">
<FormLabel as="legend" mb={0}>
Year
</FormLabel>
Expand Down Expand Up @@ -226,7 +226,7 @@ const UnixTime = () => {
<NumberInputField />
</NumberInput>
</VStack>
</HStack>
</Flex>
</FormControl>
{/* Result table */}
<Table
Expand Down