-
Notifications
You must be signed in to change notification settings - Fork 0
マップフレームの作成 #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
oniwawa
wants to merge
19
commits into
main
Choose a base branch
from
feat/oniwa/create-map-frame
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+43
−2
Open
マップフレームの作成 #121
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
bf3e310
[feat]Mapframeを作成
oniwawa ef0415b
style: auto format by oxfmt
oniwawa a5be1ca
[feat]noImageに背景色を追加
oniwawa 0e2fd6a
style: auto format by oxfmt
oniwawa 2514b14
[fix]タイトル部分のコード修正
oniwawa 2384eaa
style: auto format by oxfmt
oniwawa 116a818
[fix]タイトルの幅の仕様を変更
oniwawa 9f654a7
style: auto format by oxfmt
oniwawa 81e7e66
[fix]横幅を修正
oniwawa a0c15aa
style: auto format by oxfmt
oniwawa d9095c5
[fix]items-centerを削除
oniwawa ef1b3e5
[fix]アスペクト比をstyle指定からclassNameでの指定に変更
oniwawa fdc0b84
[fix]pyを追加
oniwawa ad3ad3d
[fix]className指定に変更
oniwawa 44b2d01
[feat]pnpm fmt実行
oniwawa 868a62f
style: auto format by oxfmt
oniwawa 533b7b7
Merge branch 'main' into feat/oniwa/create-map-frame
oniwawa 318431d
[fix]コンフリクト解消後のエラーを修正
oniwawa 068419c
[fix]pnpm fmt
oniwawa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,35 @@ | ||
| import Image from "next/image"; | ||
|
|
||
| type MapFrameProps = { | ||
| imageSrc?: string; | ||
| alt?: string; | ||
| title?: string; | ||
| type?: "short" | "long"; | ||
| }; | ||
|
|
||
| export default function MapFrame({ imageSrc, alt, title, type = "long" }: MapFrameProps) { | ||
| return ( | ||
| <div className="relative flex w-full flex-col"> | ||
| <div className="w-full px-10"> | ||
| <div className="flex w-full items-start items-stretch gap-0"> | ||
| <div | ||
| className={`bg-main px-4 py-[4px] text-text-large text-base ${type === "short" ? "w-[50px]" : "w-[194px]"}`} | ||
| > | ||
| <span className="leading-tight break-words whitespace-normal">{title}</span> | ||
| </div> | ||
| <div className="-ml-px w-[20px] self-stretch bg-main [clip-path:polygon(0%_0%,20%_0%,100%_100%,0%_100%)]"></div> | ||
| </div> | ||
| <div className="relative flex aspect-4/3 items-center justify-center overflow-hidden border-2 border-main text-text-large"> | ||
| {imageSrc ? ( | ||
| <Image src={imageSrc} alt={alt || ""} fill className="object-cover" /> | ||
| ) : ( | ||
| <div className="flex h-full w-full flex-col items-center justify-center gap-2 bg-base text-center text-main"> | ||
| <p className="font-kaisotai text-[24px]">MAP</p> | ||
| <p>NO IMAGE</p> | ||
| </div> | ||
| )} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.