Skip to content

Commit 283e7bb

Browse files
committed
기본이미지 추가
1 parent 62f553a commit 283e7bb

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

polling-app-client/src/components/MyGroups/MyGroups.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@
3434
transform: translateY(-3px);
3535
}
3636

37-
.group-avatar {
37+
.group-avatar img{
3838
width: 60px;
3939
height: 60px;
40-
background-color: #dcdcdc;
4140
border-radius: 50%;
42-
margin: 0 auto 10px;
41+
object-fit: cover;
4342
}
4443

4544
.group-name {

polling-app-client/src/components/MyGroups/MyGroups.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ class MyGroups extends Component {
4141
<div className="group-card-list">
4242
{groups.map((group) => (
4343
<div key={group.id} className="group-card">
44-
<div className="group-avatar" />
44+
<div className="group-avatar">
45+
<img src={group.imageUrl} alt="Group Avatar" />
46+
</div>
47+
4548
<div className="group-info">
4649
<div className="group-name">{group.name}</div>
4750
<div className="group-count">멤버 {group.memberCount}</div>

polling-app-server/src/main/java/com/example/polls/service/GroupService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class GroupService {
2828
private final GroupRepository groupRepository;
2929
private final UserRepository userRepository;
3030
private final GroupMemberRepository groupMemberRepository;
31-
private static final String DEFAULT_GROUP_IMAGE_URL = "https://icons8.com/icon/DqsRVHkElCJ5/user-group";
31+
private static final String DEFAULT_GROUP_IMAGE_URL = "https://img.icons8.com/?size=100&id=DqsRVHkElCJ5&format=png&color=000000";
3232

3333
@Transactional
3434
public GroupSummaryResponse createGroup(CreateGroupRequest request,

polling-app-server/src/main/resources/application.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ server.compression.enabled=true
44

55
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
66
spring.datasource.url= jdbc:mysql://localhost:3306/polling_app?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false
7-
spring.datasource.username= sumin
8-
spring.datasource.password= rlatnals
7+
spring.datasource.username= root
8+
spring.datasource.password= asd798852!
99

1010

1111
## Hibernate Properties
469 KB
Loading
266 KB
Loading
317 KB
Loading

0 commit comments

Comments
 (0)