Skip to content

Commit

Permalink
WIP: timeline side navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
bacpactech committed Sep 23, 2024
1 parent c375301 commit f3cd135
Show file tree
Hide file tree
Showing 24 changed files with 796 additions and 3 deletions.
256 changes: 256 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@apollo/client": "^3.10.4",
"@as-integrations/next": "^2.0.2",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-tabs": "^1.1.0",
"@tanstack/react-query": "^5.32.0",
"@tsparticles/engine": "^3.3.0",
"@tsparticles/react": "^3.0.0",
Expand Down
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ReactQueryClientProvider } from '@/utils/Provider'
import ZustandSocketProvider from '@/utils/ZustandSocketProvider'

import SecondaryNavbar from '@/components/Timeline/Navbar'
import LogoNavbar from '@/components/atoms/LogoNavbar'
type FontClassName = string

const inter = Inter({
Expand Down Expand Up @@ -53,10 +54,11 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" />
</head>

<body>
<body className="bg-surface-primary-50">
<ReactQueryClientProvider>
<ZustandSocketProvider>
{/*<Navbar />*/}
<LogoNavbar />
<SecondaryNavbar />
{children}
</ZustandSocketProvider>
Expand Down
28 changes: 28 additions & 0 deletions src/app/v2/timeline/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import UniversityCard from '@/components/molecules/UniversityCard'
import LeftNavbar from '@/components/organisms/LeftNavbar'
import UserPostContainer from '@/components/organisms/UserPostContainer'
import React from 'react'

export default function Timeline() {
return (
<div className="flex h-screen gap-8 py-8 px-4">
<div className="w-1/5 hidden md:block">
<LeftNavbar />
</div>
<div className="w-3/5">
<UniversityCard
universityLogo={''}
universityName={'Lorem University'}
isAiPowered={true}
joinedSince={'07/12/23'}
description={
'Official community page for Lorem University. For inquiries contact the Human Resources Department in B-Wing of Northern Campus.'
}
memberCount={200}
/>
<UserPostContainer />
</div>
<div className="w-1/5 rounded-2xl shadow-2xl bg-white hidden lg:block"></div>
</div>
)
}
Binary file added src/assets/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/assets/avatar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/assets/round_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/unibuzz_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/university.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/university_placeholder.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/components/atoms/Card/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React, { ReactNode, HTMLAttributes } from 'react'

interface TitleProps extends HTMLAttributes<HTMLHeadingElement> {
children: ReactNode
}

export default function Card({ children, className = '', ...rest }: TitleProps) {
return (
<div className={`relative z-10 shadow-2xl bg-white py-8 ${className}`} {...rest}>
{children}
</div>
)
}
4 changes: 4 additions & 0 deletions src/components/atoms/GroupSearchBox/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.group-search-input::placeholder {
font-size: 14px;
font-weight: 400;
}
Loading

0 comments on commit f3cd135

Please sign in to comment.