Skip to content

Commit

Permalink
update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ksw2000 committed Oct 20, 2024
1 parent 8962971 commit eb5007b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 11 deletions.
35 changes: 28 additions & 7 deletions src/app/app.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ mat-toolbar {
left: 0px;
}

mat-drawer{
mat-drawer {
position: fixed;
z-index: 11;
top: 0px;
left: 0px;
width: 250px;
padding: 20px 10px;
}

mat-drawer mat-nav-list{
mat-drawer mat-nav-list {
padding-top: var(--mat-toolbar-standard-height);
}

Expand All @@ -29,7 +31,7 @@ mat-drawer-container {
padding-top: var(--mat-toolbar-mobile-height);
}

mat-drawer mat-nav-list{
mat-drawer mat-nav-list {
padding-top: var(--mat-toolbar-mobile-height);
}
}
Expand All @@ -38,9 +40,28 @@ mat-drawer-container {
flex: 1 1 auto;
}

mat-drawer {
width: 250px;
padding: 20px 10px;
a.logo-button {
display: block;
height: 25px;
}

a.logo-button img {
height: 100%;
}

.highlight-tab-link {
border-radius: 5px;
background-color: var(--blue-500);
transition: background-color 750ms var(--default-transition-timing-function);
}

.highlight-tab-link:hover {
background-color: #7caeff;
}

::ng-deep .highlight-tab-link .mdc-tab__text-label {
color: #fff!important;
font-weight: bold;
}

main {
Expand All @@ -57,7 +78,7 @@ footer {
background-color: #e0e0e0;
}

#footer-container {
.footer-container {
padding: 20px 10px 5px;
margin: 0px auto;
width: 100%;
Expand Down
8 changes: 5 additions & 3 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
<mat-icon *ngIf="!drawer.opened">menu</mat-icon>
<mat-icon *ngIf="drawer.opened">close</mat-icon>
</button>
<img style="height: 25px;" src="./assets/df24-nav-logo.png" alt="GDG DevFest 2024">
<a class="logo-button" routerLink="/">
<img src="./assets/df24-nav-logo.png" alt="GDG DevFest 2024">
</a>
<span class="toolbar-spacer"></span>
<nav mat-tab-nav-bar [tabPanel]="tabPanel" class="hide-when-screen-smaller-than-900px">
<a *ngFor="let link of links" mat-tab-link [routerLink]="link.link" routerLinkActive="mat-tab-link-active"
#rla="routerLinkActive" [active]="rla.isActive" [routerLinkActiveOptions]="{exact: link.exact}">
{{link.name}}
</a>
<a mat-tab-link>購買票卷</a>
<a mat-tab-link class="highlight-tab-link">購買票卷</a>
</nav>
</mat-toolbar>

Expand All @@ -29,7 +31,7 @@
<router-outlet />
</main>
<footer>
<div id="footer-container" class="max-width">
<div class="footer-container max-width">
<img src="./assets/df24-footer-logo.png" style="height: 30px;">
<p class="footer-box-title">跟隨我們</p>
<div class="footer-button-group">
Expand Down
9 changes: 9 additions & 0 deletions src/app/schedule/schedule-dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,20 @@ mat-dialog-content p {
color: #717171;
}

ul.speaker-list a.speaker-avatar-link {
height: 60px;
}

ul.speaker-list img {
width: 60px;
height: 60px;
}

ul.speaker-list p {
margin: 10px;
}

.speaker-name{
color: var(--black-02);
font-weight: bold;
}
5 changes: 4 additions & 1 deletion src/app/schedule/schedule.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

.schedule-time {
color: var(--halftone-red);
color: var(--blue-500);
font-size: 1.3rem;
margin: 20px 0px 5px;
letter-spacing: 3px;
Expand Down Expand Up @@ -54,13 +54,16 @@ ul.speaker-list li {

ul.speaker-list a.speaker-avatar-link {
margin-right: 10px;
display: block;
height: 40px;
}

ul.speaker-list img {
width: 40px;
height: 40px;
border-radius: 50%;
transition: box-shadow 750ms var(--default-transition-timing-function);
background-color: var(--pastel-green);
}

ul.speaker-list img:hover {
Expand Down

0 comments on commit eb5007b

Please sign in to comment.