Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
halituzan committed Sep 3, 2024
1 parent 4162a91 commit 33cb0bd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
28 changes: 25 additions & 3 deletions app/Layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ const Sidebar = (props: Props) => {
onMouseLeave={() => setShowLang(false)}
>
<Icon
icon={selectedLang == "tr" ? "circle-flags:tr" : "circle-flags:gb"}
icon={
selectedLang == "tr"
? "circle-flags:tr"
: selectedLang == "en"
? "circle-flags:gb"
: "circle-flags:tr"
}
fontSize={32}
className={` ${
theme === "dark"
Expand Down Expand Up @@ -193,7 +199,17 @@ const Sidebar = (props: Props) => {
}`}
>
<Icon icon='tabler:eye' />
<a href='./files/cv.pdf' className='ml-1' target='_blank'>
<a
href={
window.localStorage.getItem("lng") == "tr"
? "./files/cv.pdf"
: window.localStorage.getItem("lng") == "en"
? "./files/cv-en.pdf"
: "./files/cv.pdf"
}
className='ml-1'
target='_blank'
>
{t("cv.preview")}
</a>
</div>
Expand All @@ -205,7 +221,13 @@ const Sidebar = (props: Props) => {
>
<Icon icon='tabler:file-download' />
<a
href='./files/cv.pdf'
href={
window.localStorage.getItem("lng") == "tr"
? "./files/cv.pdf"
: window.localStorage.getItem("lng") == "en"
? "./files/cv-en.pdf"
: "./files/cv.pdf"
}
className='ml-1'
target='_blank'
download
Expand Down
2 changes: 1 addition & 1 deletion pages/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function getServerSideProps(context: any) {
const res = await Network.run(
null,
"GET",
"/about/aboutget?id=" + userId,
"/about/aboutget?id=669eb755c42b621e680a24a7",
null
);

Expand Down
1 change: 1 addition & 0 deletions pages/api/blogs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ connectDBV2();
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
try {
const blogs = await Blogs.find({});
console.log("blogs", blogs);
return res.status(200).json({
data: blogs,
status: true,
Expand Down
5 changes: 0 additions & 5 deletions pages/blogs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ type Props = {
};

const BlogsPage = ({ data }: Props) => {
console.log("data", data);

if (data.length == 0) {
return <Loading />;
}
return <Blog data={data} title='Blog Post' isTagPage={false} />;
};

Expand Down

0 comments on commit 33cb0bd

Please sign in to comment.