Skip to content

Commit 4ee5b0e

Browse files
author
vivek-gofynd
committed
change in css
1 parent 66b5291 commit 4ee5b0e

File tree

2 files changed

+68
-31
lines changed

2 files changed

+68
-31
lines changed

App.jsx

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,68 @@
11
import React from "react";
22
import { Home } from "./pages/Home";
3+
4+
const globalStyles = `
5+
html {
6+
height: 100%;
7+
width: 100%;
8+
font-size: 8px;
9+
}
10+
11+
body {
12+
margin: 0;
13+
font-family: 'Inter', sans-serif;
14+
background-color: #f8f8f8 !important;
15+
width: 100%;
16+
height: 100%;
17+
-webkit-font-smoothing: antialiased;
18+
}
19+
20+
.root {
21+
font-family: 'Inter', sans-serif;
22+
}
23+
24+
/* Common utility classes */
25+
.flex-column {
26+
display: flex;
27+
flex-direction: column;
28+
}
29+
30+
.flex-row {
31+
display: flex;
32+
flex-direction: row;
33+
align-items: center;
34+
gap: 10px;
35+
}
36+
37+
.mr-r-12 {
38+
margin-right: 12px;
39+
}
40+
41+
.cl-RoyalBlue {
42+
color: #2e31be;
43+
margin-left: 2px;
44+
}
45+
46+
.loader {
47+
display: flex;
48+
flex-direction: column;
49+
justify-content: center;
50+
align-items: center;
51+
}
52+
53+
.loader img {
54+
height: 100px;
55+
}
56+
`;
57+
358
function App() {
459
return (
5-
<div className="root">
6-
<Home />
7-
</div>
60+
<>
61+
<style>{globalStyles}</style>
62+
<div className="root">
63+
<Home />
64+
</div>
65+
</>
866
);
967
}
1068

pages/style/home.css

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ body {
1010
background-color: #f8f8f8 !important;
1111
width: 100%;
1212
height: 100%;
13-
@media @mobile {
13+
@media (max-width: 768px) {
1414
-webkit-tap-highlight-color: transparent;
1515
}
1616
}
1717

1818
.products-container {
19-
font-family: Inter;
2019
position: relative;
2120
box-sizing: border-box;
2221
background: #fff;
@@ -48,9 +47,10 @@ body {
4847
.section .heading a {
4948
text-decoration: none;
5049
color: #2e31be;
51-
&:hover {
52-
text-decoration: underline;
53-
}
50+
}
51+
52+
.section .heading a:hover {
53+
text-decoration: underline;
5454
}
5555

5656
.section .description {
@@ -63,30 +63,13 @@ body {
6363
.product-list-container {
6464
display: flex;
6565
border: 1px solid #e4e5e6;
66-
-webkit-font-smoothing: antialiased;
6766
min-height: 102px;
6867
padding: 16px;
6968
border-radius: 4px;
7069
margin-bottom: 16px;
7170
box-sizing: border-box;
7271
}
7372

74-
.flex-column {
75-
display: flex;
76-
flex-direction: column;
77-
}
78-
79-
.flex-row {
80-
display: flex;
81-
flex-direction: row;
82-
align-items: center;
83-
gap: 10px;
84-
}
85-
86-
.mr-r-12 {
87-
margin-right: 12px;
88-
}
89-
9073
.card-avatar {
9174
min-height: 60px;
9275
min-width: 60px;
@@ -103,11 +86,6 @@ body {
10386
border-radius: 50%;
10487
}
10588

106-
.flex-column {
107-
display: flex;
108-
flex-direction: column;
109-
}
110-
11189
.product-name {
11290
font-weight: 600;
11391
font-size: 14px;
@@ -131,9 +109,10 @@ body {
131109
gap: 2px;
132110
}
133111

134-
.product-category{
112+
.product-category {
135113
font-size: 12px;
136114
}
115+
137116
.cl-RoyalBlue {
138117
color: #2e31be;
139118
margin-left: 2px;

0 commit comments

Comments
 (0)