Skip to content

Commit

Permalink
updateddd
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasbozdemir committed Aug 30, 2023
1 parent 49bde65 commit 0830985
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 26 deletions.
35 changes: 22 additions & 13 deletions components/Admin/Navbar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
useColorModeValue,
Icon,
Flex,
Stack,
} from "@chakra-ui/react";
import { IoIosNotificationsOutline } from "react-icons/io";
import Link from "next/link";
Expand All @@ -34,11 +35,9 @@ import { HiOutlineEnvelope } from "react-icons/hi2";
import { HiMenuAlt2 } from "react-icons/hi";
import { MdOutlineSegment } from "react-icons/md";
import { AiOutlineSetting, AiOutlineSearch } from "react-icons/ai";
import Logo from "../../shared/Logo";

const Navbar = () => {
const [isMaximized, setIsMaximized] = useState(false);
const [isBrowserFullscreen, setIsBrowserFullscreen] = useState(false);

const handleMaximizeToggle = () => {
setIsMaximized(!isMaximized);
Expand Down Expand Up @@ -69,7 +68,7 @@ const Navbar = () => {
};

return (
<Box
<Flex
py="2"
boxShadow="sm"
border="0 solid #e5e7eb"
Expand All @@ -80,19 +79,25 @@ const Navbar = () => {
zIndex="1"
>
<Flex px={4} gap={3} justifyContent={"space-between"}>
<HStack spacing={3}>
<Icon cursor={"pointer"} as={HiMenuAlt2} boxSize={18} />
<Icon cursor={"pointer"} as={AiOutlineSearch} boxSize={18} />
<HStack>
<HStack spacing={3}>
<Icon cursor={"pointer"} as={HiMenuAlt2} boxSize={18} />
</HStack>
<HStack spacing={3} display={{ base: "initial", md: "none" }}>
<Icon cursor={"pointer"} as={AiOutlineSearch} boxSize={18} />
</HStack>
</HStack>
<HStack spacing={3} display={{ base: "none", md: "initial" }}>

<HStack spacing={3} display={{ base: "initial", md: "none" }}>
<Link href="/admin">
<Image
src={"/logo.png"}
alt="Logo"
width={125}
width={180}
height={50}
style={{
cursor: "pointer",
objectFit: "contain",
}}
draggable={false}
loading="lazy"
Expand All @@ -106,12 +111,16 @@ const Navbar = () => {
handleMaximizeToggle={handleMaximizeToggle}
/>
</Box>
<Box display={{ base: "initial", md: "none" }}>
<Icon cursor={"pointer"} as={FiMoreVertical} boxSize={18} />
</Box>
<Icon cursor={"pointer"} as={AiOutlineSetting} boxSize={18} />
<HStack>
<HStack display={{ base: "initial", md: "none" }}>
<Icon cursor={"pointer"} as={FiMoreVertical} boxSize={18} />
</HStack>
<HStack>
<Icon cursor={"pointer"} as={AiOutlineSetting} boxSize={18} />
</HStack>
</HStack>
</Flex>
</Box>
</Flex>
);
};

Expand Down
9 changes: 4 additions & 5 deletions components/Admin/Sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ import Logo from ".././../shared/Logo";
const Sidebar = () => {
return (
<Box
bg={useColorModeValue("gray.100", "gray.700")}
w="250px"
bg={useColorModeValue("gray.100", "gray.700")}
w="350px"
h="100vh"
p="4"
boxShadow="md"
display={{ base: "none", md: "initial" }}
>
<VStack spacing="4" align="stretch">

</VStack>
<VStack spacing="4" align="stretch"></VStack>
</Box>
);
};
Expand Down
15 changes: 7 additions & 8 deletions sections/OurServices/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,8 @@ const features = [
];

const Features = () => {

return (
<Container
p={{ base: 9, md: 10 }}

maxW="7xl"
>
<Container p={{ base: 9, md: 10 }} maxW="7xl">
<chakra.h3
fontSize={{ base: 19, md: 27 }}
fontWeight="bold"
Expand Down Expand Up @@ -133,7 +128,7 @@ const Features = () => {
textAlign="center"
color={useColorModeValue("gray.800", "gray.800")}
>
<Link href={"/tr/services"}>
<Link href={"/services"}>
<Text fontSize={{ base: 16, md: 22 }} cursor={"pointer"}>
Tüm Hizmetleri Görüntüle
</Text>
Expand All @@ -144,7 +139,11 @@ const Features = () => {
};

function OurServices({ targetId }) {
return <Features />;
return (
<>
<Features />
</>
);
}

export default OurServices;

2 comments on commit 0830985

@vercel
Copy link

@vercel vercel bot commented on 0830985 Aug 30, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 0830985 Aug 30, 2023

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.