Skip to content

Commit 9a61054

Browse files
authored
Merge pull request #48 from irhdevel/profile-place
小さい端末以外では左にProfileが寄るようにした/透明度のグラデーションで可読性を上げた
2 parents 403199b + b01db30 commit 9a61054

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

components/imagecard/ImageLine.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const imageLinePaddingSize = {
88

99
const ImageLine: FC<ImageLineProps> = ({ lineArray }) => {
1010
return (
11-
<div className="relative flex gap-12 opacity-25 px-6 py-8 image-line-anim">
11+
<div className="relative flex gap-12 opacity-25 md:opacity-40 px-6 py-8 image-line-anim">
1212
{lineArray.map((v, i) => (
1313
<div key={i} className="flex h-full justify-between gap-12">
1414
{v}

components/profile/Profile.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@ import Image from 'next/image';
44
const Profile: FC = () => {
55
return (
66
<>
7-
<div className="fixed flex flex-wrap flex-col justify-center items-center w-full h-screen text-5xl lg:text-7xl font-bold text-slate-500 z-20">
7+
<div className="flex flex-wrap items-center justify-center md:flex-row flex-col lg:text-7xl font-bold text-slate-500">
88
<Image
99
src="/icon.jpeg"
10-
width={150}
11-
height={150}
12-
className="rounded-full mb-8"
10+
width={120}
11+
height={120}
12+
className="rounded-full md:mb-0 mb-3 md:mr-5 h-max"
1313
alt="illustration"
1414
/>
15-
<div className="flex justify-center flex-col items-center">
16-
<span className="dark:text-gray-300">Ixy</span>
17-
<div className="grid grid-cols-3 items-center justify-center mt-3">
18-
<hr className="w-full border-slate-400 dark:border-gray-400" />
19-
<span className="mx-3 text-xl text-slate-500 dark:text-gray-300">いくしー</span>
20-
<hr className="w-full border-slate-400 dark:border-gray-400" />
21-
</div>
15+
<div className="flex justify-center items-center md:items-start flex-col">
16+
<span className="dark:text-gray-300 font-extrabold text-6xl lg:text-8xl md:drop-shadow-none drop-shadow-lg">Ixy</span>
17+
<span className="mt-3 items-center w-fit text-xl text-slate-500 dark:text-gray-300 md:ml-6 md:drop-shadow-none drop-shadow-lg">いくしー</span>
2218
</div>
2319
</div>
2420
</>

pages/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ export default function Home() {
1010
<>
1111
<CommonMeta></CommonMeta>
1212
<div className="min-h-screen bg-slate-50 dark:bg-zinc-900">
13-
<Profile></Profile>
13+
<div className="flex justify-center items-center md:bg-gradient-to-r md:from-slate-50 md:dark:from-zinc-900 md:from-10% fixed w-full h-screen z-20">
14+
<div className="flex w-full md:mx-32 md:justify-start justify-center">
15+
<Profile></Profile>
16+
</div>
17+
</div>
1418
<ImageBoard></ImageBoard>
1519
<SnsLink></SnsLink>
1620
<Mailto></Mailto>

0 commit comments

Comments
 (0)