Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
815
Merge Requests
63
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
71354415
Commit
71354415
authored
6 minutes ago
by
Marcelo Rivera
Browse files
Options
Download
(feat): update topbar design
parent
b1936251
feat/homepage-redesign
1 merge request
!623
WIP: New homepage design
Pipeline
#93061737
running with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
src/app/common/layout/v2-topbar/v2-topbar.component.scss
View file @
71354415
...
...
@@ -27,6 +27,22 @@
width
:
100%
;
}
&
.m-v2-topbar__noBackground
{
@include
m-theme
()
{
border
:
none
;
background-color
:
transparent
;
}
.m-v2-topbar__Container__LoginWrapper
>
a
{
margin-right
:
40px
;
@include
m-theme
()
{
background
:
transparent
;
border
:
1px
solid
themed
(
$m-black-always
);
color
:
themed
(
$m-black-always
);
}
}
}
m-search--bar
{
>
.mdl-textfield
{
padding
:
8px
0
;
...
...
This diff is collapsed.
src/app/modules/homepage/homepage.component.scss
View file @
71354415
...
...
@@ -5,8 +5,8 @@ m-homepage {
&
.m-marketing__section--style-2
{
.m-marketing__body
{
&
:
:
before
{
transform
:
translate
(
200
px
,
-80px
);
clip-path
:
polygon
(
57%
0
,
100%
0
,
100%
23%
,
23%
74
%
);
transform
:
translate
(
311
px
,
-80px
);
clip-path
:
polygon
(
57%
0
,
100%
0
,
100%
15%
,
18%
87
%
);
bottom
:
-80px
;
@include
m-theme
()
{
...
...
@@ -41,6 +41,7 @@ m-homepage {
height
:
auto
!
important
;
object-fit
:
initial
!
important
;
width
:
333px
!
important
;
transform
:
translateY
(
-25px
);
}
}
}
...
...
@@ -83,3 +84,7 @@ m-homepage {
}
}
}
.m-homepage
{
margin-top
:
-52px
;
}
This diff is collapsed.
src/app/modules/homepage/homepage.component.ts
View file @
71354415
...
...
@@ -14,6 +14,8 @@ import { LoginReferrerService } from '../../services/login-referrer.service';
export
class
HomepageComponent
{
readonly
cdnAssetsUrl
:
string
=
window
.
Minds
.
cdn_assets_url
;
topbar
:
HTMLElement
;
minds
=
window
.
Minds
;
flags
=
{
...
...
@@ -28,6 +30,8 @@ export class HomepageComponent {
private
loginReferrer
:
LoginReferrerService
,
public
session
:
Session
)
{
this
.
topbar
=
document
.
querySelector
(
'
.m-v2-topbar__Top
'
);
this
.
title
.
setTitle
(
'
Minds Social Network
'
,
false
);
if
(
this
.
session
.
isLoggedIn
())
{
...
...
@@ -38,6 +42,12 @@ export class HomepageComponent {
if
(
/iP
(
hone|od
)
/
.
test
(
window
.
navigator
.
userAgent
))
{
this
.
flags
.
canPlayInlineVideos
=
false
;
}
this
.
topbar
.
classList
.
add
(
'
m-v2-topbar__noBackground
'
);
}
ngOnDestroy
()
{
this
.
topbar
.
classList
.
remove
(
'
m-v2-topbar__noBackground
'
);
}
goToLoginPage
()
{
...
...
This diff is collapsed.
Please
register
or
sign in
to comment