Skip to content

Commit 33efd2e

Browse files
committed
feat: improve project ui
1 parent 93f88d9 commit 33efd2e

File tree

10 files changed

+14
-24
lines changed

10 files changed

+14
-24
lines changed

.prettierignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
build/
22
node_modules/
33
public/
4-
package.json
5-
s
4+
package.json

src/components/ClientCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface IProps {
66

77
const ClientCard: React.FC<IProps> = ({ logo }): JSX.Element => {
88
return (
9-
<div className="max-w-[100px] md:max-w-[140px] lg:max-w-[220px]">
9+
<div className="max-w-[80px] md:max-w-[120px] lg:max-w-[160px]">
1010
<img className="w-full h-auto object-contain" src={logo} alt="client logo" />
1111
</div>
1212
);

src/components/Clients.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { ClientCard } from ".";
99
const Clients: React.FC = (): JSX.Element => {
1010
return (
1111
<section className={cx("my-4 container", styles.flexCenter)} id="clients">
12-
<div className="flex justify-center items-center lg:justify-between gap-[50px] flex-wrap w-full">
13-
{clients.map(client => (
14-
<ClientCard key={client.id} {...client} />
12+
<div className="flex justify-center items-center lg:justify-between gap-[40px] flex-wrap w-full">
13+
{clients.map((logo, idx) => (
14+
<ClientCard key={idx} logo={logo} />
1515
))}
1616
</div>
1717
</section>

src/components/Hero.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Hero: React.FC = (): JSX.Element => {
1010
return (
1111
<section className="font-montserrat py-6 lg:py-9 xl:py-12">
1212
<div className={cx("lg:flex-row flex-col container", styles.flexBetween)}>
13-
<div className="mb-10 lg:mb-0 flex mr-0 lg:mr-[60px] max-w-[500px] h-auto">
13+
<div className="mb-10 lg:mb-0 flex mr-0 lg:mr-[60px] max-w-[450px] h-auto">
1414
<img className="w-full h-auto rounded-md" src={robot} alt="robot ai" />
1515
</div>
1616

src/constants/constants.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,4 @@ export const socials: Types.ISocial[] = [
9292
{ id: "social-4", link: "https://linkedin.com/", icon: icons.linkedin },
9393
];
9494

95-
export const clients: Types.IClient[] = [
96-
{ id: "client-1", logo: icons.airbnb },
97-
{ id: "client-2", logo: icons.binance },
98-
{ id: "client-3", logo: icons.coinbase },
99-
{ id: "client-4", logo: icons.dropbox },
100-
];
95+
export const clients = [icons.airbnb, icons.binance, icons.coinbase, icons.dropbox];

src/constants/styles.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ export const styles = {
44
flexCenter: "flex justify-center items-center",
55
flexStart: "flex justify-start items-center",
66
flexBetween: "flex justify-between items-center",
7-
paragraph: "font-montserrat font-normal text-lightWhite text-[15px] sm:text-[17px]",
7+
paragraph: "font-montserrat font-normal text-lightWhite text-[14px] sm:text-[16px]",
88
heading1:
9-
"font-montserrat font-semibold text-[30px] sm:text-[36px] md:text-[40px] lg:text-[45px] text-white leading-[1.2]",
9+
"font-montserrat font-semibold text-[28px] sm:text-[32px] md:text-[36px] lg:text-[42px] text-white leading-[1.2]",
1010
heading2:
11-
"font-montserrat font-semibold text-[18px] sm:text-[20px] md:text-[24px] lg:text-[28px] text-white leading-[1.3]",
11+
"font-montserrat font-semibold text-[17px] sm:text-[18px] md:text-[22px] lg:text-[25px] text-white leading-[1.3]",
1212
};
1313

1414
export const layout = {

src/interfaces/index.ts

-5
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,3 @@ export interface ISocial {
3535
link: string;
3636
icon: string;
3737
}
38-
39-
export interface IClient {
40-
id: string;
41-
logo: string;
42-
}

src/main.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { BrowserRouter } from "react-router-dom";
21
import "./index.css";
32

3+
import { BrowserRouter } from "react-router-dom";
44
import ReactDOM from "react-dom/client";
5+
56
import App from "./App";
67

78
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);

tailwind.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ export default {
1010
sm: "570px",
1111
md: "750px",
1212
lg: "1000px",
13-
xl: "1140px",
14-
"2xl": "1280px",
13+
xl: "1200px",
1514
},
1615
},
1716
backgroundImage: theme => ({

vite.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import tsconfigPaths from "vite-tsconfig-paths";
55
export default defineConfig({
66
server: {
77
host: true,
8+
port: 4000
89
},
910
build: {
1011
rollupOptions: {

0 commit comments

Comments
 (0)