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
17 changes: 17 additions & 0 deletions gitdeco/public/gitdeco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion gitdeco/src/app/_components/common/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import * as S from "./style";
import Image from "next/image";
import LogoIco from "/public/gitdeco.svg";

const Header = () => {
return (
<S.HeaderContainer>
<div>hello</div>
<S.Logo>
<S.LogoImage>
<Image src={LogoIco} alt="Logo Img" layout="fill" objectFit="contain" />
</S.LogoImage>
<S.LogoTxt>GitDeco</S.LogoTxt>
</S.Logo>
<S.DownloadBtn>Download</S.DownloadBtn>
</S.HeaderContainer>
);
};
Expand Down
45 changes: 45 additions & 0 deletions gitdeco/src/app/_components/common/Header/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,49 @@ export const HeaderContainer = styled.div`
background-color: black;
box-sizing: border-box;
border-bottom: 1px solid #3d4145;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 3vw;
`;

export const Logo = styled.div`
display: flex;
flex-direction: row;
align-items: center;
`;

export const LogoTxt = styled.div`
color: white;
font-weight: 500;
font-size: 1.5vw;
margin-top: 0.5vw;
margin-left: 0.5vw;
`;

export const LogoImage = styled.div`
position: relative;
width: 50px;
height: 50px;
`;

export const DownloadBtn = styled.button`
width: 7vw;
height: 1vh;
padding: 15px;
background-color: #2B64E7;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-size:1vw;
margin-bottom: 0.5vw;

display:flex;
align-items: center;
justify-content: center;

&:hover {
background-color: #6062AA;
}
`;
13 changes: 9 additions & 4 deletions gitdeco/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { Metadata } from "next";
import "./globals.css";
import Header from "./_components/common/Header";
import Sidebar from "./_components/common/Sidebar";

export const metadata: Metadata = {
title: "GitDeco",
description: "GitHub Readme.md Editor Web Services",
icons: {
icon: "/gitdeco.svg",
},
};

export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en">
<head>
<link rel="icon" href="/gitdeco.svg" type="image/svg+xml" />
</head>
<body>
<Header />
<Sidebar />
Expand Down