Skip to content

Commit 4ef68ff

Browse files
authored
Merge pull request #9 from intelowlproject/develop
fix: header + links + add author on blogs
2 parents f0a50a7 + f25b4fa commit 4ef68ff

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

Blogs/gsoc23_project_summary.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Frontend Improvements for Buffalogs, IntelOwl.
33
date: 2023-08-27
44
cover: /images/gsoclogo.png
5+
author: Abheek Tripathy
56
---
67

78
Being a designer/frontend dev who knows a thing or two about security, IntelOwl seemed to be pretty intriguing to me with a very real use-case since the first time I was introduced to the project. I started contributing to it from December of 2022, mostly working on frontend issues opened up by Matteo.

components/Header.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,36 @@ export function Header(props: Headerprops) {
2222
<>
2323
{blogsection ? (
2424
<div className="fixed z-50 w-full h-16 max-w-xs md:max-w-3xl -translate-x-1/2 rounded-full top-10 left-1/2 bg-[#1C1C1F] border-solid border border-[#29292d]">
25-
<div className="grid h-full grid-cols-6 mx-auto items-center ml-6 ">
26-
<Link href="https://intelowlproject.github.io/">
25+
<div className=" md:grid h-full md:grid-cols-6 flex flex-row justify-between mx-auto items-center ml-6 ">
26+
<Link href="/">
2727
<img
28-
className=""
28+
className="max-w-[100px] md:max-w-[110px]"
2929
src="/images/intelowlwhite.png"
3030
alt="intelowl logo"
3131
></img>
3232
</Link>
3333

3434
<Link
35-
href="https://intelowlproject.github.io/"
36-
className="text-white font-SpaceGrotesk font-light text-center invisible md:visible"
35+
href="/#feature-section"
36+
className="text-white font-SpaceGrotesk font-light hidden md:flex md:justify-center md:flex-row"
3737
>
3838
Features
3939
</Link>
4040
<Link
41-
href="https://intelowlproject.github.io/"
41+
href="https://intelowl.readthedocs.io/en/latest"
4242
className="text-white font-SpaceGrotesk font-light text-center invisible md:visible"
4343
>
44-
Testimonials
44+
Docs
4545
</Link>
4646
<Link
4747
href={"/blogs"}
48-
className="text-white font-SpaceGrotesk font-light text-center collapse md:visible"
48+
className="text-white font-SpaceGrotesk font-light hidden md:flex md:justify-center md:flex-row"
4949
>
5050
Blogs
5151
</Link>
5252
<Link
5353
href="https://opencollective.com/intelowl-project/donate"
54-
className="text-white font-SpaceGrotesk font-light text-center collapse md:visible"
54+
className="text-white font-SpaceGrotesk font-light hidden md:flex md:justify-center md:flex-row"
5555
>
5656
Donate
5757
</Link>
@@ -88,36 +88,36 @@ export function Header(props: Headerprops) {
8888
</div>
8989
) : (
9090
<div className="fixed z-50 w-full h-16 max-w-xs md:max-w-3xl -translate-x-1/2 rounded-full top-10 left-1/2 bg-[#1C1C1F] border-solid border border-[#29292d]">
91-
<div className="grid h-full grid-cols-6 mx-auto items-center ml-6 ">
91+
<div className=" md:grid h-full md:grid-cols-6 flex flex-row justify-between mx-auto items-center ml-6 ">
9292
<Link href="#hero-section" onClick={handleScroll}>
9393
<img
94-
className=""
94+
className="max-w-[100px] md:max-w-[110px]"
9595
src="/images/intelowlwhite.png"
9696
alt="intelowl logo"
9797
></img>
9898
</Link>
9999
<Link
100100
href="#feature-section"
101101
onClick={handleScroll}
102-
className="text-white font-SpaceGrotesk font-light text-center invisible md:visible"
102+
className="text-white font-SpaceGrotesk font-light hidden md:flex md:justify-center md:flex-row"
103103
>
104104
Features
105105
</Link>
106106
<Link
107107
href="https://intelowl.readthedocs.io/en/latest"
108-
className="text-white font-SpaceGrotesk font-light text-center invisible md:visible"
108+
className="text-white font-SpaceGrotesk font-light text-center hidden md:flex md:justify-center md:flex-row"
109109
>
110110
Docs
111111
</Link>
112112
<Link
113113
href="/blogs"
114-
className="text-white font-SpaceGrotesk font-light text-center collapse md:visible"
114+
className="text-white font-SpaceGrotesk font-light text-center hidden md:flex md:justify-center md:flex-row"
115115
>
116116
Blogs
117117
</Link>
118118
<Link
119119
href="https://opencollective.com/intelowl-project/donate"
120-
className="text-white font-SpaceGrotesk font-light text-center collapse md:visible"
120+
className="text-white font-SpaceGrotesk font-light text-center hidden md:flex md:justify-center md:flex-row"
121121
>
122122
Donate
123123
</Link>

components/Slider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Slider(props: sliderProps) {
1919
<>
2020
{isTestimonial ? (
2121
<div id="testimonials-element" className="w-[90%]">
22-
<div className="mx-auto max-w-screen-xl px-4 py-16 sm:px-6 lg:px-8">
22+
<div className="mx-auto max-w-screen-xl py-16 sm:px-6 lg:px-8">
2323
<Swiper
2424
spaceBetween={25}
2525
breakpoints={{

contentlayer.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const Post = defineDocumentType(() => ({
77
title: { type: 'string', required: true },
88
date: { type: 'date', required: true },
99
cover: { type: 'string', required: true },
10+
author: { type: 'string', required: false }
1011
},
1112
computedFields: {
1213
url: { type: 'string', resolve: (post) => `/blogs/${post._raw.flattenedPath}` },

src/app/blogs/[slug]/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ const PostLayout = ({ params }: { params: { slug: string } }) => {
2121
return (
2222
<>
2323
<Header blogsection={true}></Header>
24-
<main className="h-full mx-16 md:mt-52 mt-28">
24+
<main className="h-full md:mx-16 mx-5 md:mt-52 mt-28">
2525
<div className="mb-8 md:space-y-4">
26+
<div className="flex flex-row justify-between items-center">
2627
<time
2728
dateTime={post.date}
2829
className="font-SpaceGrotesk text-white py-5 opacity-70 text-sm md:text-md mb-5 "
2930
>
3031
{format(parseISO(post.date), "LLLL d, yyyy")}
3132
</time>
33+
<h3 className="font-SpaceGrotesk text-white py-5 opacity-90 text-sm md:text-md mb-5 ">By {post.author}</h3>
34+
</div>
3235
<h1 className="text-white font-SpaceGrotesk font-bold text-3xl md:text-6xl pb-12">
3336
{post.title}
3437
</h1>

0 commit comments

Comments
 (0)