Skip to content

Commit

Permalink
ギャラリーテキストエリアの調整
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yoshiii committed Jul 24, 2022
1 parent 0f7d596 commit 3bd8520
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions src/component/Gallery.tsx
Expand Up @@ -16,8 +16,12 @@ const Gallery: FC<Props> = (props) => {
</SGalleryPhoto>
<SGalleryInner>
<SGalleryTextBox>
<SGalleryNumber>{i + 1}</SGalleryNumber>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<SGalleryNumber>
{String(`${i + 1}`).padStart(2, "0")}
</SGalleryNumber>
<SGalleryText>
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText
</SGalleryText>
</SGalleryTextBox>
</SGalleryInner>
</SGallerySect>
Expand Down Expand Up @@ -59,6 +63,20 @@ const SGalleryTextBox = styled.div`
background: #fff;
z-index: 2;
width: 614px;
word-break: break-all;
padding: 40px;
`;
const SGalleryNumber = styled.div`
color: rgba(84, 186, 185, 0.7);
font-size: 92px;
font-weight: 300;
font-style: italic;
text-shadow: 0px 5px 10px #fff;
margin-top: calc(-40px - 0.5em);
`;
const SGalleryText = styled.p`
font-size: 16px;
margin-top: 10px;
line-height: 1.5;
`;
const SGalleryNumber = styled.div``;
export default Gallery;

0 comments on commit 3bd8520

Please sign in to comment.