Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
867
Issues
867
List
Boards
Labels
Service Desk
Milestones
Merge Requests
54
Merge Requests
54
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
75c04dfa
Commit
75c04dfa
authored
27 minutes ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): revamped group tiles
parent
9e79064c
epic/minds-pro
1 merge request
!486
WIP: (feat): Minds Pro (development branch) - Release 2
Pipeline
#76188314
running with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
147 additions
and
5 deletions
+147
-5
list.component.html
src/app/modules/pro/channel/list/list.component.html
+5
-5
group-tile.component.scss
.../modules/pro/channel/tile/group/group-tile.component.scss
+103
-0
group-tile.component.ts
...pp/modules/pro/channel/tile/group/group-tile.component.ts
+37
-0
pro.module.ts
src/app/modules/pro/pro.module.ts
+2
-0
No files found.
src/app/modules/pro/channel/list/list.component.html
View file @
75c04dfa
...
...
@@ -23,7 +23,7 @@
<div
class=
"m-proChannelList__content"
>
<ul
class=
"m-proChannelListContent__list"
[class.m-proChannelListContent__normalList]=
"type === 'activities'"
>
<li
*ngFor=
"let entity of entities"
>
<li
*ngFor=
"let entity of entities
; let i = index
"
>
<ng-container
*ngIf=
"type === 'images' || type === 'videos' || type === 'blogs'"
>
<m-pro--channel-tile
[entity]=
"entity"
...
...
@@ -31,10 +31,10 @@
></m-pro--channel-tile>
</ng-container>
<ng-container
*ngIf=
"type === 'groups'"
>
<m-
newsfeed
__entity
[entity]=
"entity"
>
</m-newsfeed
__entity
>
<m-
pro--channel--group-tile
[entity]=
"entity"
[class.big]=
"i === 0 || i === 1"
></m-pro--channel--group-tile
>
</ng-container>
<ng-container
*ngIf=
"type === 'activities'"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/tile/group/group-tile.component.scss
0 → 100644
View file @
75c04dfa
m-pro--channel--group-tile
{
cursor
:
pointer
;
position
:
relative
;
width
:
100%
;
height
:
220px
;
background-color
:
var
(
--
transparent-background-color
);
color
:
var
(
--
text-color
);
&
.big
{
height
:
320px
;
.banner
{
height
:
150px
;
position
:
absolute
;
z-index
:
1
;
img
{
object-fit
:
cover
;
width
:
100%
;
height
:
100%
;
}
}
.m-proChannelGroupTile__content
{
margin-top
:
75px
;
img
{
border
:
1px
solid
#e8e8e8
;
width
:
150px
;
height
:
150px
;
border-radius
:
50%
;
}
}
}
.banner
{
height
:
100px
;
position
:
absolute
;
z-index
:
1
;
img
{
object-fit
:
cover
;
width
:
100%
;
height
:
100%
;
}
}
.m-proChannelGroupTile__content
{
margin-top
:
50px
;
position
:
relative
;
z-index
:
2
;
display
:
block
;
text-align
:
center
;
text-decoration
:
none
;
//padding: 16px 16px 0;
//font-size: 20px;
//width: 100%;
//box-sizing: border-box;
img
{
border
:
1px
solid
#e8e8e8
;
width
:
75px
;
height
:
75px
;
border-radius
:
50%
;
}
.body
{
margin-top
:
16px
;
}
h2
,
p
{
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
}
h2
{
font-size
:
20px
;
line-height
:
20px
;
overflow
:
visible
;
color
:
var
(
--
text-color
)
!
important
;
margin
:
0
;
font-weight
:
700
;
}
p
{
text-transform
:
uppercase
;
letter-spacing
:
0
.1em
;
font-size
:
13px
;
text-overflow
:
ellipsis
;
text-rendering
:
auto
;
white-space
:
pre-wrap
;
overflow
:
hidden
;
max-height
:
48px
;
margin
:
8px
0
;
padding
:
0
;
line-height
:
1
.25
;
color
:
var
(
--
text-color
)
!
important
;
}
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/tile/group/group-tile.component.ts
0 → 100644
View file @
75c04dfa
import
{
Component
,
HostListener
,
Input
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
m-pro--channel--group-tile
'
,
template
:
`
<div class="banner">
<img [src]="getBanner()">
</div>
<div class="m-proChannelGroupTile__content">
<div class="avatar">
<img [src]="getAvatar()">
</div>
<div class="body">
<h2>{{this.entity.name}}</h2>
<p i18n>Subscribers: <span>{{this.entity['members:count']}}</span></p>
</div>
</div>
`
})
export
class
ProGroupTileComponent
{
@
Input
()
entity
:
any
;
minds
=
window
.
Minds
;
getBanner
()
{
return
`/fs/v1/banners/
${
this
.
entity
.
guid
}
/
${
this
.
entity
.
banner_position
}
/'
${
this
.
entity
.
banner
}
`
;
}
getAvatar
()
{
return
`
${
this
.
minds
.
cdn_url
}
fs/v1/avatars/
${
this
.
entity
.
guid
}
/large/
${
this
.
entity
.
icontime
}
`
;
}
@
HostListener
(
'
click
'
)
onClick
()
{
window
.
open
(
`
${
window
.
Minds
.
site_url
}
groups/profile/
${
this
.
entity
.
guid
}
`
,
'
_blank
'
);
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/pro/pro.module.ts
View file @
75c04dfa
...
...
@@ -22,6 +22,7 @@ import { ProContentModalComponent } from "./channel/content-modal/modal.componen
import
{
VideoModule
}
from
"
../media/components/video/video.module
"
;
import
{
ProChannelListModal
}
from
'
./channel/list-modal/list-modal.component
'
;
import
{
ProChannelHomeComponent
}
from
'
./channel/home/home.component
'
;
import
{
ProGroupTileComponent
}
from
"
./channel/tile/group/group-tile.component
"
;
import
{
ProUnsubscribeModalComponent
}
from
'
./channel/unsubscribe-modal/modal.component
'
;
const
routes
:
Routes
=
[
...
...
@@ -92,6 +93,7 @@ const routes: Routes = [
ProChannelDonateComponent
,
ProUserMenuComponent
,
ProChannelFooterComponent
,
ProGroupTileComponent
,
ProUnsubscribeModalComponent
],
exports
:
[],
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment