feat: Add Source Serif 4 and Fractul font families, new message and requests icons, and update agent dashboard and layout.

This commit is contained in:
pradeepkumar
2026-01-18 08:44:53 +05:30
parent 36cff9de00
commit 59fcc65489
91 changed files with 348 additions and 23 deletions

View File

@@ -0,0 +1,3 @@
<svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.6 0H1.4C0.63 0 0.00699999 0.585 0.00699999 1.3L0 13L2.8 10.4H12.6C13.37 10.4 14 9.815 14 9.1V1.3C14 0.585 13.37 0 12.6 0ZM11.2 7.8H2.8V6.5H11.2V7.8ZM11.2 5.85H2.8V4.55H11.2V5.85ZM11.2 3.9H2.8V2.6H11.2V3.9Z" fill="#00293D"/>
</svg>

After

Width:  |  Height:  |  Size: 340 B

View File

@@ -0,0 +1,3 @@
<svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.2266 0L11.2203 0.00126953L11.2147 0H11.2266ZM14 2.6C14 2.9588 13.685 3.25 13.2979 3.25H11.9413V4.55C11.9413 4.9088 11.6144 5.2 11.2273 5.2H11.2147C10.8262 5.2 10.5357 4.9088 10.5357 4.55V3.25H9.08314C8.99103 3.25017 8.89979 3.23346 8.81462 3.20088C8.72945 3.16831 8.65203 3.12048 8.58676 3.06013C8.5215 2.99977 8.46968 2.9281 8.43426 2.84915C8.39884 2.77019 8.38052 2.68553 8.38034 2.6C8.38034 2.2412 8.69534 1.95 9.08314 1.95H10.5364V0.65C10.5364 0.29315 10.8353 0.00451953 11.2203 0.00126953C11.606 0.00451953 11.9413 0.29315 11.9413 0.65V1.95H13.2979C13.685 1.95 14 2.2412 14 2.6ZM5.5999 7.73629L5.5705 7.73502L5.5411 7.73629C5.17471 7.72983 4.82561 7.59045 4.56852 7.34797C4.31143 7.10548 4.1668 6.77918 4.16559 6.4389C4.16559 5.72195 4.79559 5.1389 5.5705 5.1389C6.34541 5.1389 6.97542 5.72195 6.97542 6.4389C6.9742 6.77918 6.82957 7.10548 6.57249 7.34797C6.3154 7.59045 5.96629 7.72983 5.5999 7.73629ZM7.69643 8.12175C8.00773 7.79175 8.22278 7.39319 8.32106 6.96409C8.41934 6.53499 8.39757 6.08967 8.25783 5.6706C8.11556 5.2367 7.8527 4.84529 7.49572 4.53572C7.13873 4.22614 6.70021 4.00932 6.22431 3.90714C4.38819 3.52429 2.76067 4.80545 2.76067 6.4389C2.76067 7.08435 3.02457 7.6674 3.44528 8.12175C1.63086 8.8075 0.289642 10.398 0.0068385 12.2635C-0.0526622 12.6529 0.284042 13 0.708247 13C0.875933 13.0003 1.0381 12.9444 1.16492 12.8425C1.29174 12.7406 1.37467 12.5997 1.39845 12.4455C1.68756 10.556 3.43338 9.04994 5.5411 9.03629C5.5509 9.03629 5.56 9.0389 5.5705 9.0389C5.5803 9.0389 5.5901 9.03629 5.5999 9.03629C7.70833 9.04994 9.45345 10.556 9.74325 12.4462C9.79225 12.764 10.0856 13 10.4328 13C10.857 13 11.1937 12.6529 11.1349 12.2642C10.8514 10.3987 9.51085 8.80815 7.69643 8.12175Z" fill="#00293D"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -12,8 +12,8 @@ export function ProfileSidebar({ profileImage, email, phone }: ProfileSidebarPro
return (
<div className="w-full lg:w-[220px] flex-shrink-0 space-y-4 flex flex-col items-center lg:items-start">
{/* Profile Image */}
<div className="relative w-[200px]">
<div className="w-[200px] h-[200px] rounded-[15px] overflow-hidden">
<div className="relative w-[200px] h-[200px]">
<div className="w-full h-full rounded-[15px] overflow-hidden border-4 border-[#5ba4a4]">
<Image
src={profileImage}
alt="Profile"
@@ -22,8 +22,10 @@ export function ProfileSidebar({ profileImage, email, phone }: ProfileSidebarPro
className="w-full h-full object-cover"
/>
</div>
{/* Edit Icon - Top Right Outside */}
<button className="absolute -top-3 -right-3 w-9 h-9 bg-white rounded-[10px] shadow-md flex items-center justify-center hover:bg-gray-50 transition-colors">
{/* Gradient Overlay - subtle darkening at bottom */}
<div className="absolute inset-0 rounded-[15px] bg-gradient-to-t from-black/40 via-transparent to-transparent pointer-events-none" />
{/* Edit Icon - Center */}
<button className="absolute top-[calc(50%-18px)] left-[calc(50%-18px)] w-9 h-9 bg-white rounded-[10px] shadow-md flex items-center justify-center hover:bg-gray-50 transition-colors">
<Image
src="/assets/icons/edit-icon.svg"
alt="Edit profile"

View File

@@ -87,7 +87,10 @@ export default function AgentDashboard() {
height={200}
className="w-full h-full object-cover"
/>
{/* Gradient Overlay */}
<div className="absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-transparent pointer-events-none" />
</div>
{/* Edit Icon - Top Right Outside */}
<button className="absolute -top-3 -right-3 w-9 h-9 bg-white rounded-[10px] shadow-md flex items-center justify-center hover:bg-gray-50 transition-colors">
<Image
src="/assets/icons/edit-icon.svg"
@@ -212,7 +215,10 @@ export default function AgentDashboard() {
height={200}
className="w-full h-full object-cover"
/>
{/* Gradient Overlay */}
<div className="absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-transparent pointer-events-none" />
</div>
{/* Edit Icon - Top Right Outside */}
<button className="absolute -top-3 -right-3 w-9 h-9 bg-white rounded-[10px] shadow-md flex items-center justify-center hover:bg-gray-50 transition-colors">
<Image
src="/assets/icons/edit-icon.svg"
@@ -324,21 +330,21 @@ export default function AgentDashboard() {
{/* Action Buttons */}
<div className="flex items-center gap-3">
<button className="flex items-center gap-2 px-4 py-2 bg-[#5ba4a4] text-white text-sm rounded-[15px] hover:bg-[#4a9393] transition-colors">
<button className="flex items-center gap-2 px-4 py-1.5 bg-[#e58625] text-[#00293d] text-sm font-normal rounded-[15px] border border-[#00293d]/10 hover:bg-[#d47720] transition-colors font-serif">
<Image
src="/assets/icons/message-icon.svg"
src="/assets/icons/message-dark-icon.svg"
alt="Message"
width={16}
height={16}
width={14}
height={13}
/>
Message
</button>
<button className="flex items-center gap-2 px-4 py-2 bg-[#5ba4a4] text-white text-sm rounded-[15px] hover:bg-[#4a9393] transition-colors">
<button className="flex items-center gap-2 px-4 py-1.5 bg-[#e58625] text-[#00293d] text-sm font-normal rounded-[15px] border border-[#00293d]/10 hover:bg-[#d47720] transition-colors font-serif">
<Image
src="/assets/icons/clipboard-icon.svg"
src="/assets/icons/requests-dark-icon.svg"
alt="Requests"
width={16}
height={16}
width={14}
height={13}
/>
Requests
</button>

View File

@@ -1,5 +1,6 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono, Source_Serif_4, Nunito_Sans } from "next/font/google";
import { Geist, Geist_Mono } from "next/font/google";
import localFont from "next/font/local";
import { SessionProvider } from "@/components/providers/session-provider";
import "./globals.css";
@@ -13,17 +14,108 @@ const geistMono = Geist_Mono({
subsets: ["latin"],
});
const sourceSerif4 = Source_Serif_4({
variable: "--font-source-serif-4",
subsets: ["latin"],
weight: ["400", "500", "600", "700"],
// Local Fractul font
const fractul = localFont({
src: [
{
path: "../fonts/fractul/Fractul-Regular.ttf",
weight: "400",
style: "normal",
},
{
path: "../fonts/fractul/Fractul-Italic.ttf",
weight: "400",
style: "italic",
},
{
path: "../fonts/fractul/Fractul-Medium.ttf",
weight: "500",
style: "normal",
},
{
path: "../fonts/fractul/Fractul-MediumItalic.ttf",
weight: "500",
style: "italic",
},
{
path: "../fonts/fractul/Fractul-SemiBold.ttf",
weight: "600",
style: "normal",
},
{
path: "../fonts/fractul/Fractul-SemiBoldItalic.ttf",
weight: "600",
style: "italic",
},
{
path: "../fonts/fractul/Fractul-Bold.ttf",
weight: "700",
style: "normal",
},
{
path: "../fonts/fractul/Fractul-BoldItalic.ttf",
weight: "700",
style: "italic",
},
{
path: "../fonts/fractul/Fractul-ExtraBold.ttf",
weight: "800",
style: "normal",
},
{
path: "../fonts/fractul/Fractul-ExtraBoldItalic.ttf",
weight: "800",
style: "italic",
},
],
variable: "--font-fractul",
});
// Using Nunito Sans as a close alternative to Fractul (similar geometric sans-serif style)
const nunitoSans = Nunito_Sans({
variable: "--font-fractul",
subsets: ["latin"],
weight: ["400", "500", "600", "700", "800"],
// Local Source Serif 4 font
const sourceSerif4 = localFont({
src: [
{
path: "../fonts/Source_Serif_4/static/SourceSerif4-Regular.ttf",
weight: "400",
style: "normal",
},
{
path: "../fonts/Source_Serif_4/static/SourceSerif4-Italic.ttf",
weight: "400",
style: "italic",
},
{
path: "../fonts/Source_Serif_4/static/SourceSerif4-Medium.ttf",
weight: "500",
style: "normal",
},
{
path: "../fonts/Source_Serif_4/static/SourceSerif4-MediumItalic.ttf",
weight: "500",
style: "italic",
},
{
path: "../fonts/Source_Serif_4/static/SourceSerif4-SemiBold.ttf",
weight: "600",
style: "normal",
},
{
path: "../fonts/Source_Serif_4/static/SourceSerif4-SemiBoldItalic.ttf",
weight: "600",
style: "italic",
},
{
path: "../fonts/Source_Serif_4/static/SourceSerif4-Bold.ttf",
weight: "700",
style: "normal",
},
{
path: "../fonts/Source_Serif_4/static/SourceSerif4-BoldItalic.ttf",
weight: "700",
style: "italic",
},
],
variable: "--font-source-serif-4",
});
export const metadata: Metadata = {
@@ -39,7 +131,7 @@ export default function RootLayout({
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} ${sourceSerif4.variable} ${nunitoSans.variable} antialiased`}
className={`${geistSans.variable} ${geistMono.variable} ${sourceSerif4.variable} ${fractul.variable} antialiased`}
>
<SessionProvider>{children}</SessionProvider>
</body>

View File

@@ -0,0 +1,91 @@
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@@ -0,0 +1,128 @@
Source Serif 4 Variable Font
============================
This download contains Source Serif 4 as both variable fonts and static fonts.
Source Serif 4 is a variable font with these axes:
opsz
wght
This means all the styles are contained in these files:
SourceSerif4-VariableFont_opsz,wght.ttf
SourceSerif4-Italic-VariableFont_opsz,wght.ttf
If your app fully supports variable fonts, you can now pick intermediate styles
that arent available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Source Serif 4:
static/SourceSerif4-ExtraLight.ttf
static/SourceSerif4-Light.ttf
static/SourceSerif4-Regular.ttf
static/SourceSerif4-Medium.ttf
static/SourceSerif4-SemiBold.ttf
static/SourceSerif4-Bold.ttf
static/SourceSerif4-ExtraBold.ttf
static/SourceSerif4-Black.ttf
static/SourceSerif4_18pt-ExtraLight.ttf
static/SourceSerif4_18pt-Light.ttf
static/SourceSerif4_18pt-Regular.ttf
static/SourceSerif4_18pt-Medium.ttf
static/SourceSerif4_18pt-SemiBold.ttf
static/SourceSerif4_18pt-Bold.ttf
static/SourceSerif4_18pt-ExtraBold.ttf
static/SourceSerif4_18pt-Black.ttf
static/SourceSerif4_36pt-ExtraLight.ttf
static/SourceSerif4_36pt-Light.ttf
static/SourceSerif4_36pt-Regular.ttf
static/SourceSerif4_36pt-Medium.ttf
static/SourceSerif4_36pt-SemiBold.ttf
static/SourceSerif4_36pt-Bold.ttf
static/SourceSerif4_36pt-ExtraBold.ttf
static/SourceSerif4_36pt-Black.ttf
static/SourceSerif4_48pt-ExtraLight.ttf
static/SourceSerif4_48pt-Light.ttf
static/SourceSerif4_48pt-Regular.ttf
static/SourceSerif4_48pt-Medium.ttf
static/SourceSerif4_48pt-SemiBold.ttf
static/SourceSerif4_48pt-Bold.ttf
static/SourceSerif4_48pt-ExtraBold.ttf
static/SourceSerif4_48pt-Black.ttf
static/SourceSerif4-ExtraLightItalic.ttf
static/SourceSerif4-LightItalic.ttf
static/SourceSerif4-Italic.ttf
static/SourceSerif4-MediumItalic.ttf
static/SourceSerif4-SemiBoldItalic.ttf
static/SourceSerif4-BoldItalic.ttf
static/SourceSerif4-ExtraBoldItalic.ttf
static/SourceSerif4-BlackItalic.ttf
static/SourceSerif4_18pt-ExtraLightItalic.ttf
static/SourceSerif4_18pt-LightItalic.ttf
static/SourceSerif4_18pt-Italic.ttf
static/SourceSerif4_18pt-MediumItalic.ttf
static/SourceSerif4_18pt-SemiBoldItalic.ttf
static/SourceSerif4_18pt-BoldItalic.ttf
static/SourceSerif4_18pt-ExtraBoldItalic.ttf
static/SourceSerif4_18pt-BlackItalic.ttf
static/SourceSerif4_36pt-ExtraLightItalic.ttf
static/SourceSerif4_36pt-LightItalic.ttf
static/SourceSerif4_36pt-Italic.ttf
static/SourceSerif4_36pt-MediumItalic.ttf
static/SourceSerif4_36pt-SemiBoldItalic.ttf
static/SourceSerif4_36pt-BoldItalic.ttf
static/SourceSerif4_36pt-ExtraBoldItalic.ttf
static/SourceSerif4_36pt-BlackItalic.ttf
static/SourceSerif4_48pt-ExtraLightItalic.ttf
static/SourceSerif4_48pt-LightItalic.ttf
static/SourceSerif4_48pt-Italic.ttf
static/SourceSerif4_48pt-MediumItalic.ttf
static/SourceSerif4_48pt-SemiBoldItalic.ttf
static/SourceSerif4_48pt-BoldItalic.ttf
static/SourceSerif4_48pt-ExtraBoldItalic.ttf
static/SourceSerif4_48pt-BlackItalic.ttf
Get started
-----------
1. Install the font files you want to use
2. Use your app's font picker to view the font family and all the
available styles
Learn more about variable fonts
-------------------------------
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
https://variablefonts.typenetwork.com
https://medium.com/variable-fonts
In desktop apps
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
Online
https://developers.google.com/fonts/docs/getting_started
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
Installing fonts
MacOS: https://support.apple.com/en-us/HT201749
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
Android Apps
https://developers.google.com/fonts/docs/android
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
License
-------
Please read the full license text (OFL.txt) to understand the permissions,
restrictions and requirements for usage, redistribution, and modification.
You can use them in your products & projects print or digital,
commercial or otherwise.
This isn't legal advice, please consider consulting a lawyer and see the full
license for all details.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.