-
Notifications
You must be signed in to change notification settings - Fork 0
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
メンバー一覧ページの背景を作りました #186
Merged
YushiroDodo63
merged 3 commits into
develop
from
feature/rin/150-create-each-member-button
Jun 11, 2023
Merged
メンバー一覧ページの背景を作りました #186
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
view/next-project/src/components/common/GlassFolderCard.tsx
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,53 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
type CardContentsProps = { | ||
width?: string; | ||
height?: string; | ||
align?: string; | ||
justify?: string; | ||
gap?: string; | ||
padding?: string; | ||
children: React.ReactNode; | ||
background?: string; | ||
}; | ||
|
||
function GlassFolderCard(props: CardContentsProps): JSX.Element { | ||
const GlassFolderTab = styled.div` | ||
width: 150px; /* 幅 */ | ||
height: 100px; | ||
border-bottom: 100px | ||
border-left: 25px | ||
border-right: 25px | ||
box-sizing: border-box; | ||
background: 'radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4))'} | ||
border-top: solid 1px #505050; | ||
`; | ||
const GlassCardContainer = styled.div` | ||
width: ${props.width}; | ||
height: ${props.height}; | ||
padding: ${props.padding || '18px 22px'}; | ||
background: ${props.background || | ||
'radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4))'}; | ||
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); | ||
backdrop-filter: blur(4px); | ||
flex-grow: 1; | ||
display: flex; | ||
flex-flow: column; | ||
align-items: ${props.align || 'start'}; | ||
justify-content: ${props.justify || 'start'}; | ||
gap: ${props.gap || '0px'}; | ||
font-size: 16px; | ||
flex: none; | ||
|
||
`; | ||
|
||
|
||
return ( | ||
<> | ||
<GlassCardContainer>{props.children}</GlassCardContainer> | ||
</> | ||
); | ||
} | ||
|
||
export default GlassFolderCard; |
5 changes: 5 additions & 0 deletions
5
...roject/src/components/common/UsersBackgroundAnimation/UsersBackgroundAnimation.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,5 @@ | ||
.BackgroundAnimationContainer{ | ||
background-size: contain; | ||
position: relative; | ||
width: 100%; | ||
} |
138 changes: 138 additions & 0 deletions
138
.../next-project/src/components/common/UsersBackgroundAnimation/UsersBackgroundAnimation.tsx
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,138 @@ | ||
import React, {useCallback} from 'react' | ||
import type { Engine } from "tsparticles-engine"; | ||
import Particles from 'react-particles' | ||
import { loadFull } from "tsparticles"; | ||
import s from './UsersBackgroundAnimation.module.css' | ||
|
||
const UserBackgroundAnimation = () => { | ||
|
||
const particlesInit = useCallback(async (engine: Engine) => { | ||
await loadFull(engine); | ||
}, []); | ||
|
||
return ( | ||
<div className={s.BackgroundAnimationContainer}> | ||
{/* react-particles-jsで雪を表現しています */} | ||
<Particles | ||
id="tsparticles" | ||
init={particlesInit} | ||
options={{ | ||
background: { | ||
color: { | ||
value: "#FFF9F5", | ||
}, | ||
}, | ||
"particles": { | ||
"number": { | ||
"value": 15, | ||
"density": { | ||
"enable": true, | ||
"value_area": 1262.6362266116362 | ||
} | ||
}, | ||
"color": { | ||
"value": "#fff" | ||
}, | ||
"shape": { | ||
"type": "image", | ||
"stroke": { | ||
"width": 0, | ||
"color": "#000000" | ||
}, | ||
|
||
"image": { | ||
"src": "Union.svg", | ||
"width": 200, | ||
"height": 200 | ||
} | ||
}, | ||
"opacity": { | ||
"value": 1, | ||
"random": false, | ||
"anim": { | ||
"enable": false, | ||
"speed": 1, | ||
"opacity_min": 0.1, | ||
"sync": false | ||
} | ||
}, | ||
"size": { | ||
"value": 150, | ||
"random": false, | ||
"anim": { | ||
"enable": false, | ||
"speed": 40, | ||
"size_min": 0.1, | ||
"sync": true | ||
} | ||
}, | ||
"line_linked": { | ||
"enable": false, | ||
"distance": 256.54592973848366, | ||
"color": "#ffffff", | ||
"opacity": 0.4, | ||
"width": 2 | ||
}, | ||
"move": { | ||
"enable": true, | ||
"speed": 6, | ||
"direction": "bottom", | ||
"random": false, | ||
"straight": true, | ||
"out_mode": "out", | ||
"bounce": false, | ||
"attract": { | ||
"enable": false, | ||
"rotateX": 600, | ||
"rotateY": 1200 | ||
} | ||
} | ||
}, | ||
"interactivity": { | ||
"detect_on": "canvas", | ||
"events": { | ||
"onhover": { | ||
"enable": false, | ||
"mode": "bubble" | ||
}, | ||
"onclick": { | ||
"enable": false, | ||
"mode": "repulse" | ||
}, | ||
"resize": true | ||
}, | ||
"modes": { | ||
"grab": { | ||
"distance": 400, | ||
"line_linked": { | ||
"opacity": 0.5 | ||
} | ||
}, | ||
"bubble": { | ||
"distance": 400, | ||
"size": 4, | ||
"duration": 0.3, | ||
"opacity": 1, | ||
"speed": 3 | ||
}, | ||
"repulse": { | ||
"distance": 200, | ||
"duration": 0.4 | ||
}, | ||
"push": { | ||
"particles_nb": 4 | ||
}, | ||
"remove": { | ||
"particles_nb": 2 | ||
} | ||
} | ||
}, | ||
"retina_detect": true | ||
}} | ||
/> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default UserBackgroundAnimation |
1 change: 1 addition & 0 deletions
1
view/next-project/src/components/common/UsersBackgroundAnimation/index.ts
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 @@ | ||
export { default } from './UsersBackgroundAnimation'; |
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,3 +1,4 @@ | ||
import { relative } from 'path'; | ||
import styled from 'styled-components'; | ||
|
||
type Props = { | ||
|
22 changes: 22 additions & 0 deletions
22
view/next-project/src/components/layout/UsersLayout/UsersLayout.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,22 @@ | ||
.userLayoutContainer { | ||
width: 100%; | ||
display: flex; | ||
flex-flow: column; | ||
align-items: center; | ||
padding: 100px 200px; | ||
margin-top: 60px; | ||
gap: 50px 0px; | ||
animation: fadeIn 0.5s ease 0s 1 alternate none running; | ||
background-color: #FFF9F5; | ||
} | ||
|
||
|
||
@keyframes fadeIn { | ||
from { | ||
opacity: 0; | ||
} | ||
|
||
to { | ||
opacity: 1; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
view/next-project/src/components/layout/UsersLayout/UsersLayout.tsx
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,30 @@ | ||
import React, { FC } from 'react'; | ||
import Header from '@components/common/Header'; | ||
import s from './UsersLayout.module.css'; | ||
import styled from 'styled-components'; | ||
|
||
interface LayoutProps { | ||
children?: React.ReactNode; | ||
} | ||
|
||
const UsersLayout: FC<LayoutProps> = (props) => { | ||
return ( | ||
<> | ||
<Header /> | ||
<section> | ||
<main className={s.UserLayoutContainer}>{props.children}</main> | ||
<div> | ||
|
||
</div> | ||
</section> | ||
</> | ||
); | ||
}; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
export default UsersLayout; |
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 @@ | ||
export { default } from './UsersLayout'; |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これは削除していいかも!