-
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
14 changed files
with
300 additions
and
14 deletions.
There are no files selected for viewing
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,84 @@ | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
import styles from "./style.module.css"; | ||
|
||
export default function App(): JSX.Element { | ||
return <div className={styles.top}>aaa</div>; | ||
return ( | ||
<div className={styles.wrapper}> | ||
<section className={styles.section}> | ||
<div className={styles.followNews}> | ||
<h1 className={styles.h1}>フォローニュース</h1> | ||
{Array(10) | ||
.fill(undefined) | ||
.map((_, index) => ( | ||
<article | ||
className={styles.article} | ||
data-article={index % 3 === 0 ? "pickup" : "dropoff"} | ||
key={index} | ||
> | ||
<Link href="/news/hoge"> | ||
<div className={styles.thmubnail}> | ||
<Image | ||
alt="" | ||
fill={true} | ||
quality={100} | ||
src="https://img.youtube.com/vi/FIAKcjtdXQo/maxresdefault.jpg" | ||
/> | ||
</div> | ||
</Link> | ||
<div className={styles.detail}> | ||
<Link href="/news/hoge"> | ||
<div className={styles.title}>投稿したよ!</div> | ||
<div className={styles.date}>3 時間前</div> | ||
</Link> | ||
<Link href="/vtuber/hoge"> | ||
<div className={styles.user}> | ||
<Image | ||
alt="" | ||
className={styles.icon} | ||
height={24} | ||
src="https://yt3.googleusercontent.com/yv7Myimz11d0URsPtpeoLe18mx7UUeFInVOag9j2uZUWh0i24bH8AY7jvPPcNeEhqylxw4xrEw=s160-c-k-c0x00ffffff-no-rj" | ||
width={24} | ||
/> | ||
<div className={styles.name}>冷夏茶みしろ</div> | ||
</div> | ||
</Link> | ||
</div> | ||
</article> | ||
))} | ||
</div> | ||
<div className={styles.topNews}> | ||
<h2 className={styles.h2}>トップニュース</h2> | ||
{Array(10) | ||
.fill(undefined) | ||
.map((_, index) => ( | ||
<article className={styles.article} key={index}> | ||
<div className={styles.thmubnail}> | ||
<Image | ||
alt="" | ||
fill={true} | ||
quality={100} | ||
src="https://img.youtube.com/vi/FIAKcjtdXQo/maxresdefault.jpg" | ||
/> | ||
</div> | ||
<div className={styles.detail}> | ||
<div className={styles.title}>投稿したよ!</div> | ||
<div className={styles.date}>3 時間前</div> | ||
<div className={styles.user}> | ||
<Image | ||
alt="" | ||
className={styles.icon} | ||
height={24} | ||
src="https://yt3.googleusercontent.com/yv7Myimz11d0URsPtpeoLe18mx7UUeFInVOag9j2uZUWh0i24bH8AY7jvPPcNeEhqylxw4xrEw=s160-c-k-c0x00ffffff-no-rj" | ||
width={24} | ||
/> | ||
<div className={styles.name}>冷夏茶みしろ</div> | ||
</div> | ||
</div> | ||
</article> | ||
))} | ||
</div> | ||
</section> | ||
</div> | ||
); | ||
} |
123 changes: 122 additions & 1 deletion
123
apps/user/src/app/(auth)/_components/App/style.module.css
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,126 @@ | ||
.top { | ||
.wrapper { | ||
background-image: url(/background.jpg); | ||
background-position: center bottom; | ||
background-size: cover; | ||
} | ||
|
||
.section { | ||
align-items: flex-start; | ||
display: grid; | ||
gap: min(15px, 2.25dvw); | ||
margin: 0 auto; | ||
padding: min(15px, 2.25dvw); | ||
width: min(100%, 1280px); | ||
|
||
@media (width >= 980px) { | ||
grid-template: auto / 2fr 1fr; | ||
} | ||
} | ||
|
||
.followNews, | ||
.topNews { | ||
background: #fff; | ||
border: 1px solid #e8eaee; | ||
border-radius: min(15px, 2.25dvw); | ||
padding: 0 min(15px, 2.25dvw); | ||
} | ||
|
||
.h1, | ||
.h2 { | ||
font-size: 2.1rem; | ||
font-weight: 500; | ||
padding: min(15px, 2.25dvw) 0 calc(min(15px, 2.25dvw) / 2); | ||
} | ||
|
||
.article { | ||
border-top: 1px solid #e8eaee; | ||
display: grid; | ||
padding: min(15px, 2.25dvw) 0; | ||
gap: min(15px, 2.25dvw); | ||
} | ||
|
||
.followNews { | ||
.article[data-article="pickup"] { | ||
@media (width < 980px) { | ||
grid-template: auto / auto; | ||
} | ||
@media (width >= 980px) { | ||
grid-template: auto / 1fr 1.25fr; | ||
} | ||
} | ||
|
||
.article[data-article="pickup"] .title { | ||
font-size: 2.4rem; | ||
} | ||
|
||
.article[data-article="dropoff"] { | ||
grid-template: auto / 3fr 1fr; | ||
} | ||
|
||
.article[data-article="dropoff"] .detail { | ||
order: -1; | ||
} | ||
|
||
.article[data-article="dropoff"] .title { | ||
font-size: 2.1rem; | ||
} | ||
} | ||
|
||
.topNews { | ||
.article { | ||
@media (width < 980px) { | ||
grid-template: auto / 3fr 1fr; | ||
} | ||
@media (width >= 980px) { | ||
grid-template: auto / 1.5fr 1fr; | ||
} | ||
} | ||
|
||
.detail { | ||
order: -1; | ||
} | ||
|
||
.title { | ||
@media (width < 980px) { | ||
font-size: 2.1rem; | ||
} | ||
@media (width >= 980px) { | ||
font-size: 1.8rem; | ||
} | ||
} | ||
} | ||
|
||
.thmubnail { | ||
aspect-ratio: 16 / 9; | ||
position: relative; | ||
border-radius: min(15px, 2.25dvw); | ||
overflow: hidden; | ||
} | ||
|
||
.title { | ||
font-weight: 500; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 3; | ||
-webkit-box-orient: vertical; | ||
line-clamp: 3; | ||
overflow: hidden; | ||
} | ||
|
||
.date { | ||
font-size: 1.35rem; | ||
} | ||
|
||
.user { | ||
align-items: center; | ||
display: flex; | ||
margin: 9px 0 0; | ||
gap: 9px; | ||
} | ||
|
||
.icon { | ||
border-radius: 50dvmax; | ||
} | ||
|
||
.name { | ||
font-size: 1.35rem; | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import styles from "./style.module.css"; | ||
|
||
export default function Footer(): JSX.Element { | ||
return ( | ||
<footer className={styles.footer}> | ||
<small className={styles.copyright}>© 2024 Vmate</small> | ||
</footer> | ||
); | ||
} |
12 changes: 12 additions & 0 deletions
12
apps/user/src/app/(auth)/_components/Footer/style.module.css
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.footer { | ||
background: #fff; | ||
border-top: 1px solid #e8eaee; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 48px; | ||
} | ||
|
||
.copyright { | ||
font-size: 1.2rem; | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Page(): JSX.Element { | ||
return <div>aaa</div>; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Page(): JSX.Element { | ||
return <div>aaa</div>; | ||
} |
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
Oops, something went wrong.