Skip to content

Commit

Permalink
style: updated social-proof
Browse files Browse the repository at this point in the history
  • Loading branch information
FindMalek committed Oct 8, 2024
1 parent fb2cf0e commit f482cf1
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/app/marketing-social-proof.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Link from "next/link"
import { models } from "@/data/models"

import { Marquee } from "@/components/fancy/marquee"
import { partnerships } from "@/data/partnerships"

export function MarketingSocialProof() {
const companies = models.filter(
Expand All @@ -13,7 +14,7 @@ export function MarketingSocialProof() {
return (
<div className="relative flex w-full flex-col items-center justify-center overflow-hidden bg-background md:shadow-xl">
<Marquee pauseOnHover className="[--duration:20s]">
{companies.map((company) => (
{[...companies, ...partnerships].map((company) => (
<Link
href={company.href}
key={company.label}
Expand Down
39 changes: 39 additions & 0 deletions components/shared/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,42 @@ function OpenAi({ className }: { className?: string }) {
)
}

function TIC({ className }: { className?: string }) {
return (
<Image
src="/social-proof/tunisian-it-community.jpg"
alt="logo"
className={className}
width={32}
height={32}
/>
)
}

function GDG({ className }: { className?: string }) {
return (
<Image
src="/social-proof/google-developer-club.png"
alt="logo"
className={className}
width={64}
height={32}
/>
)
}

function OpenSourceTunisia({ className }: { className?: string }) {
return (
<Image
src="/social-proof/open-source-tunisia.jpeg"
alt="logo"
className={className}
width={32}
height={32}
/>
)
}

function Undrstnd(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
Expand Down Expand Up @@ -321,4 +357,7 @@ export const Icons = {
sheet: SheetIcon,
json: FileJson,
plus: SquarePlusIcon,
tic: TIC,
gdg: GDG,
ost: OpenSourceTunisia,
}
23 changes: 23 additions & 0 deletions data/partnerships.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Icons } from "@/components/shared/icons"
import { Partnership } from "@/types"

export const partnerships: Partnership[] = [
{
company: "Tunisian I.T. Community",
href: "https://www.facebook.com/TunITCo",
label: "tunisian-it-community",
image: Icons.tic
},
{
company: "Google Developer Club",
href: "https://www.facebook.com/google.developer.groups.gdg.on.campus.esprit",
label: "google-developer-club",
image: Icons.gdg
},
{
company: "Open Source Tunisia",
href: "https://www.linkedin.com/company/open-source-tunisia/",
label: "open-source-tunisia",
image: Icons.ost
}
]
Binary file added public/social-proof/google-developer-club.png
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 public/social-proof/open-source-tunisia.jpeg
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 public/social-proof/tunisian-it-community.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,10 @@ export type ChartDataType = {
success: number
failed: number
}

export type Partnership = {
company: string
label: string
href: string
image: Icon
}

0 comments on commit f482cf1

Please sign in to comment.