Skip to content

Commit 13ad8aa

Browse files
first
1 parent 736b0d3 commit 13ad8aa

4 files changed

Lines changed: 29 additions & 29 deletions

File tree

app/Components/OurBlogs/Box.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ interface BoxProps {
66
ImgUrl: string,
77
ImgAlt?: string,
88
BlogTitle: string,
9-
blogDesc: string,
9+
BlogDesc: string,
1010
}
1111

1212
export const Box = (
1313
{
1414
ImgUrl,
1515
ImgAlt,
1616
BlogTitle,
17-
blogDesc
17+
BlogDesc
1818
}: BoxProps
1919
) => {
2020
return (
2121
<div className={styles.Box}>
2222
<img src={ImgUrl} alt={ImgAlt} />
23-
<div className={styles.BoxContent}>
23+
<div className={styles.Content}>
2424
<h5>{BlogTitle}</h5>
2525
<p>
26-
{blogDesc}
26+
{BlogDesc}
2727
</p>
2828
</div>
2929
</div>
Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1+
.Blogs {
2+
margin-block: 10px;
3+
}
4+
15
.Blogs h6 {
2-
font-size: 60px;
36
font-weight: 800;
4-
margin-block: 10px;
7+
font-size: 80px;
58
}
69

7-
.Blogs .Row {
10+
.Row {
811
display: flex;
912
flex-wrap: wrap;
1013
gap: 10px;
14+
margin-block: 10px;
1115
}
1216

1317
.Box {
1418
width: calc(25% - 10px);
1519
overflow: hidden;
16-
height: 500px;
20+
height: 450px;
1721
box-shadow: var(--boxShadow);
1822
}
1923

2024
.Box img {
21-
height: 300px;
25+
height: 250px;
2226
width: 100%;
2327
object-fit: cover;
2428
}
2529

26-
.BoxContent {
27-
padding: 10px;
30+
.Box:hover {
31+
box-shadow: rgba(15, 206, 223, 0.6) inset 0px 1px 4px;
32+
}
33+
34+
.Content {
35+
padding: 15px;
2836
}
2937

30-
.BoxContent h5 {
38+
.Box h5 {
3139
font-weight: 800;
32-
font-size: 18px;
33-
width: 18ch;
34-
overflow: hidden;
35-
text-overflow: ellipsis;
36-
white-space: nowrap;
40+
font-size: 20px;
3741
}
3842

39-
.BoxContent p {
43+
.Box p {
4044
font-size: 12px;
4145
color: #ccc;
42-
overflow: hidden;
43-
text-overflow: ellipsis;
44-
display: -webkit-box;
45-
-webkit-line-clamp: 6;
46-
line-clamp: 6;
47-
-webkit-box-orient: vertical;
46+
margin-block: 10px;
4847
}
4948

49+
5050
@media(max-width:1500px) {
5151
.Box {
5252
width: calc(33.33% - 10px);
@@ -67,5 +67,4 @@
6767
}
6868

6969

70-
7170
}

app/Components/OurBlogs/OurBlogs.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import React from 'react'
22

33
import styles from './OurBlogs.module.css'
4-
54
import { Box } from './Box'
65

7-
// For Data
8-
import { BlogsData } from '@/Static/blogsData'
96

7+
// For Blogs Data
8+
import { BlogsData } from '@/Static/blogsData'
109

1110
export const OurBlogs = () => {
1211
return (
@@ -17,9 +16,10 @@ export const OurBlogs = () => {
1716
{
1817
BlogsData.map((I) => (
1918
<Box
20-
blogDesc={I.blogDesc}
19+
BlogDesc={I.blogDesc}
2120
BlogTitle={I.blogTitle}
2221
ImgUrl={I.blogImgUrl}
22+
ImgAlt={I.blogTitle}
2323
key={I.id}
2424
/>
2525
))

app/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default function Home() {
2323
{/* For Blogs */}
2424
<OurBlogs />
2525

26+
2627
</Wrapper>
2728

2829

0 commit comments

Comments
 (0)