forked from safak/next14-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
65 additions
and
7 deletions.
There are no files selected for viewing
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
.container{} | ||
.container{ | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.post { | ||
width: 33%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
import Link from "next/link" | ||
import Image from "next/image" | ||
import styles from "./postcard.module.css" | ||
|
||
const PostCard = () => { | ||
return <div className={}>PostCard</div>; | ||
return <div className={styles.container}> | ||
<div className={styles.top}> | ||
<div className={styles.imgContainer}> | ||
<Image src="/static/girl.png" fill alt="" className={styles.img} /> | ||
</div> | ||
<span className={styles.date}>2024.02.02</span> | ||
</div> | ||
<div className={styles.bottom}> | ||
<h1 className={styles.title}>Title</h1> | ||
<p className={styles.desc}>Desc</p> | ||
<Link href="/blog/post">READ MORE</Link> | ||
</div> | ||
</div>; | ||
}; | ||
|
||
export default PostCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
.container{} | ||
.container{ | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
margin-bottom: 40px; | ||
margin-top: 10px; | ||
} | ||
|
||
.top{ | ||
display: flex; | ||
} | ||
|
||
.imgContainer{ | ||
position: relative; | ||
width: 90%; | ||
height: 300px; | ||
} | ||
|
||
.img{ | ||
object-fit: cover; | ||
} | ||
|
||
.date { | ||
font-size: 12px; | ||
transform: rotate(270deg); | ||
} |