Skip to content

Commit

Permalink
Merge pull request #9 from dropways/development
Browse files Browse the repository at this point in the history
New card UI added
  • Loading branch information
dropways committed Jul 2, 2023
2 parents ba75c91 + 336ac88 commit 1d6a6a1
Show file tree
Hide file tree
Showing 9 changed files with 700 additions and 21 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ We value your feedback and suggestions, as they help us improve our offerings an
| :--- | :--- |
| [![Card - 01](https://github-production-user-asset-6210df.s3.amazonaws.com/38377336/248484878-f72db189-3e98-454d-81bd-20ab3323a2e4.jpg)](https://dropways.github.io/card-ui/cards/card-01/) | [![Card - 02](https://github-production-user-asset-6210df.s3.amazonaws.com/38377336/248573168-d5c5fecd-3423-4b93-8e95-04b5cd517192.jpg)](https://dropways.github.io/card-ui/cards/card-02/)

| Card - 03 | |
| **Card - 03** | **Card - 04** |
| :--- | :--- |
| [![Card - 03](https://github-production-user-asset-6210df.s3.amazonaws.com/38377336/250275201-7e1139e4-7a3b-4a6b-a4ce-7833a1dd3983.jpg)](https://dropways.github.io/card-ui/cards/card-03/)
| [![Card - 03](https://github-production-user-asset-6210df.s3.amazonaws.com/38377336/250275201-7e1139e4-7a3b-4a6b-a4ce-7833a1dd3983.jpg)](https://dropways.github.io/card-ui/cards/card-03/) | [![Card - 04](https://github-production-user-asset-6210df.s3.amazonaws.com/38377336/250298467-e1509ab8-603d-44a6-bbff-9a39ea996e7a.jpg)](https://dropways.github.io/card-ui/cards/card-04/)

| **Card - 05** |
| :--- |
| [![Card - 05](https://github-production-user-asset-6210df.s3.amazonaws.com/38377336/250366020-3b5969f2-e959-431a-88e6-de64776143ff.jpg)](https://dropways.github.io/card-ui/cards/card-05/)

## Browser Support

Expand Down
38 changes: 25 additions & 13 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ button {
outline: none !important;
}

button{
font-family: 'Inter', sans-serif;
}

button::-moz-focus-inner {
border: 0;
}
Expand Down Expand Up @@ -781,20 +785,30 @@ input:-ms-input-placeholder {
max-width: 1632px;
}
.card-list ul{
margin: 0 -12px;
column-gap: 0;
display: flex;
flex-wrap: wrap;
/* margin: 0 -12px; */
/* column-gap: 0;
counter-reset: item-counter;
column-count: 4;
column-count: 4; */
}
.card-list ul li{
padding: 0 12px 24px;
break-inside: avoid;
counter-increment: item-counter;
width: 25%;
padding: 0;
/* break-inside: avoid;
counter-increment: item-counter; */
}
.card-list ul li.full-col{
width: 100%;
}

.card-list-item{
position: relative;
display: block;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
padding: 24px;
}
.card-list-item .card-list-item__no{
position: absolute;
Expand All @@ -813,18 +827,16 @@ input:-ms-input-placeholder {
letter-spacing: 0.10rem;
}
.card-list-item .card-list-item__img img{
border-radius: 16px;
/* border-radius: 16px; */
width: 100%;
}

@media (max-width: 1024px){
.card-list ul{column-count: 3;}
.card-list ul li{width: 50%;}
}
@media (max-width: 767px){
.card-list ul{column-count: 2;}
}
@media (max-width: 500px){
.card-list ul{column-count: 1;}
.card-list ul li{width: 50%;}
.card-list-item{padding: 12px;}
}

/*==============================================================
Expand Down
13 changes: 13 additions & 0 deletions cards/card-04/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**Card UI - 04**
=========

### [Demo](https://dropways.github.io/card-ui/cards/card-04)

[![Card - 04](https://github-production-user-asset-6210df.s3.amazonaws.com/38377336/250298467-e1509ab8-603d-44a6-bbff-9a39ea996e7a.jpg)](https://dropways.github.io/card-ui/cards/card-04/)

## Note
**For Dropdown and other javascript action we used**

[![alpinejs](https://github-production-user-asset-6210df.s3.amazonaws.com/38377336/250278992-60746a40-ffc9-48fc-a6bb-3a7e8e92903f.svg)](https://alpinejs.dev/)

**Integrate or build upon it for free in your personal or commercial projects. Don't republish, redistribute or sell "as-is".**
142 changes: 142 additions & 0 deletions cards/card-04/card-4.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
.card{
background: #ffffff;
border-radius: 20px;
max-width: 360px;
width: 100%;
margin: 0 auto;
}
.card__header{
padding: 24px;
}
.card__footer{
padding: 24px;
color: #000000;
display: flex;
align-items: center;
justify-content: space-between;
}
.card__body ul{
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 5px;
grid-row-gap: 5px;
}
.card__body ul li{
position: relative;
padding-bottom: 100%;
}
.card__body ul img{
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
object-fit: cover;
}

/* User Info Style */
.user-info{
display: flex;
align-items: center;
}
.user-info .avatar{
width: 60px;
flex-shrink: 0;
margin-right: 12px;
}
.user-info .avatar .img-box{
width: 60px;
height: 60px;
border-radius: 100%;
}
.user-info .avatar img{
width: 100%;
height: 100%;
border-radius: 100%;
object-fit: cover;
}
.user-info .name{
width: 100%;
font-size: 15px;
color: #78858F;
font-weight: 500;
}
.user-info .name span{
display: block;
color: #000000;
font-size: 20px;
}
.user-info .user-dd{
flex-shrink: 0;
margin-left: 12px;
}


/* Dropdown Style Start */
.dd{
position: relative;
}
.dd__btn{
border: 0;
background: transparent;
width: 42px;
height: 42px;
font-size: 24px;
line-height: 1;
color: #000000;
cursor: pointer;
}
.dd__menu{
position: absolute;
top: 100%;
right: 0;
background: #010101;
border-radius: 8px;
padding: 8px 0;
z-index: 12;
}
.dd__item{
display: flex;
align-items: center;
width: 100%;
font-size: 14px;
line-height: 24px;
font-weight: 500;
color: #eaeaea;
padding: 8px 24px;
transition: all .3s ease-in-out;
}
.dd__item__icon{
flex-shrink: 0;
font-size: 24px;
line-height: 1;
margin-right: 16px;
}
.dd__item:hover{
color: #FF3C78;
}

/* Card Button Style */
.card__btn{
display: inline-block;
cursor: pointer;
font-size: 14px;
line-height: 20px;
font-weight: 500;
text-transform: uppercase;
padding: 8px 15px;
background: #2D2B46;
color: #ffffff;
border: 0;
border-radius: 4px;
}
.card__btn:hover{
color: #ffffff;
}

.card__price{
font-size: 20px;
color: #000000;
font-weight: 700;
}
Loading

0 comments on commit 1d6a6a1

Please sign in to comment.