Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
863
Issues
863
List
Boards
Labels
Service Desk
Milestones
Merge Requests
41
Merge Requests
41
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
03d2e294
Commit
03d2e294
authored
2 hours ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): footer
parent
698e92a6
epic/minds-pro
1 merge request
!459
WIP: (feat): Minds Pro
Pipeline
#74737734
passed with stages
in 29 minutes and 10 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
118 deletions
+22
-118
channel.component.html
src/app/modules/pro/channel/channel.component.html
+3
-3
channel.component.scss
src/app/modules/pro/channel/channel.component.scss
+6
-6
footer.component.html
src/app/modules/pro/channel/footer/footer.component.html
+1
-9
footer.component.scss
src/app/modules/pro/channel/footer/footer.component.scss
+6
-34
footer.component.ts
src/app/modules/pro/channel/footer/footer.component.ts
+6
-66
No files found.
src/app/modules/pro/channel/channel.component.html
View file @
03d2e294
...
...
@@ -86,8 +86,8 @@
<div
class=
"m-proChannel__body"
>
<router-outlet></router-outlet>
</div>
</div>
<div
class=
"m-proChannel__footer"
>
<m-pro--channel-footer></m-pro--channel-footer>
<div
class=
"m-proChannel__footer"
>
<m-pro--channel-footer></m-pro--channel-footer>
</div>
</div>
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.component.scss
View file @
03d2e294
...
...
@@ -12,7 +12,7 @@ m-pro--channel {
max-width
:
1296px
;
margin
:
0
auto
;
display
:
grid
;
grid-template-rows
:
repeat
(
2
,
100px
)
1fr
;
grid-template-rows
:
repeat
(
2
,
100px
)
1fr
100px
;
grid-template-columns
:
repeat
(
12
,
1fr
);
min-height
:
100%
;
...
...
@@ -100,6 +100,11 @@ m-pro--channel {
padding
:
0
32px
;
}
.m-proChannel__footer
{
grid-row
:
4
/
span
1
;
grid-column
:
2
/
span
10
;
}
m-pro--channel
h1
{
font-size
:
70px
;
font-weight
:
bold
;
...
...
@@ -131,8 +136,3 @@ m-pro--channel {
}
}
.m-proChannel__footer
{
background-color
:
var
(
--
plain-background-color
)
!
important
;
height
:
fit-content
;
}
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/footer/footer.component.html
View file @
03d2e294
<div
class=
"m-proChannelFooter__content"
>
<ul
class=
"m-proChannelFooterContent__list"
>
<li
*
ngFor=
"let row of links"
>
<div
*
ngFor=
"let link of row"
>
<a
src=
"link.src"
>
{{link.text}}
</a>
</div>
</li>
</ul>
</div>
\ No newline at end of file
<a
[
href
]="
link
.
href
"
*
ngFor=
"let link of footerLinks"
>
{{link.title}}
</a>
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/footer/footer.component.scss
View file @
03d2e294
m-pro--channel-footer
{
max-width
:
1296px
;
margin-right
:
auto
;
margin-left
:
auto
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-around
;
height
:
100px
;
.m-proChannelFooter__content
{
.m-proChannelFooterContent__list
{
display
:
grid
;
grid-template-columns
:
repeat
(
6
,
1fr
);
grid-auto-rows
:
minmax
(
200px
,
auto
);
grid-gap
:
24px
24px
;
list-style
:
none
;
padding
:
0
;
li
{
display
:
grid
;
justify-content
:
center
;
align-items
:
center
;
}
&
:nth-child
(
1
)
{
grid-column
:
span
2
;
margin-bottom
:
$minds-padding
*
2
;
justify-content
:
flex-start
;
}
&
:nth-child
(
2
)
{
grid-column
:
3
/
span
2
;
margin-bottom
:
$minds-padding
*
2
;
&
:not
(
.m-proChannelListContentList__seeMore
)
{
justify-content
:
flex-end
;
}
}
}
a
{
text-decoration
:
none
;
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/footer/footer.component.ts
View file @
03d2e294
import
{
Component
}
from
'
@angular/core
'
;
import
{
ProChannelService
}
from
"
../channel.service
"
;
@
Component
({
selector
:
'
m-pro--channel-footer
'
,
...
...
@@ -7,74 +8,13 @@ import { Component } from '@angular/core';
export
class
ProChannelFooterComponent
{
links
:
any
;
rowCount
:
number
;
constructor
(){
this
.
links
=
[
{
text
:
'
What we are
'
,
src
:
''
},
{
text
:
'
Core Values
'
,
src
:
''
},
{
text
:
'
Subscribe
'
,
src
:
''
},
{
text
:
'
Support
'
,
src
:
''
},
{
text
:
'
Careers
'
,
src
:
''
},
{
text
:
'
Events
'
,
src
:
''
},
{
text
:
'
Contact
'
,
src
:
''
},
{
text
:
'
Contribute
'
,
src
:
''
},
{
text
:
'
Investors
'
,
src
:
''
}
];
this
.
setLinksToRows
();
get
footerLinks
()
{
return
this
.
channelService
.
currentChannel
.
pro_settings
.
footer_links
;
}
/**
* Distribute links in cols and rows
*/
setLinksToRows
()
{
this
.
getRowsCount
();
const
links
=
this
.
links
;
this
.
links
=
[];
let
i
,
j
,
chunk
=
this
.
rowCount
;
for
(
i
=
0
,
j
=
links
.
length
;
i
<
j
;
i
+=
chunk
)
{
this
.
links
.
push
(
links
.
slice
(
i
,
i
+
chunk
));
}
}
getRowsCount
()
{
const
linksCount
=
this
.
links
.
length
;
let
rowMultiplier
=
6
let
rowCount
=
1
;
while
(((
rowMultiplier
*
rowCount
)
%
linksCount
)
>
0
)
{
rowCount
++
;
}
constructor
(
private
channelService
:
ProChannelService
,
)
{
this
.
rowCount
=
rowCount
;
}
}
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