update footer, header and home compoents
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -6,6 +6,6 @@
|
|||||||
|
|
||||||
main {
|
main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 8px 16px;
|
padding: 0 1rem;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
<footer>
|
<footer class="footer">
|
||||||
<p>© 2025 Chagarlamudi.net. Made by Raghu Chagarlamudi.</p>
|
<span class="footer__copyright">© {{ copyRightYear }} Chagarlamudi.net.</span>
|
||||||
|
<span class="footer__made-by">Made by <a class="footer__link" routerLink="/home">Raghu Chagarlamudi</a></span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -1,6 +1,24 @@
|
|||||||
:host {
|
.footer {
|
||||||
p {
|
padding: 0.5rem 1rem;
|
||||||
padding: 8px 16px;
|
text-align: center;
|
||||||
text-align: center;
|
font-size: 0.825rem;
|
||||||
|
|
||||||
|
&__copyright {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__made-by {
|
||||||
|
margin-left: 0.125rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__link {
|
||||||
|
text-decoration: underline;
|
||||||
|
font-weight: bold;
|
||||||
|
color: var(--mat-sys-primary);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { RouterLink } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
selector: 'app-footer',
|
selector: 'app-footer',
|
||||||
imports: [],
|
imports: [RouterLink],
|
||||||
templateUrl: './footer.component.html',
|
templateUrl: './footer.component.html',
|
||||||
styleUrl: './footer.component.scss',
|
styleUrl: './footer.component.scss',
|
||||||
})
|
})
|
||||||
export class FooterComponent {}
|
export class FooterComponent {
|
||||||
|
readonly copyRightYear = new Date().getFullYear();
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
<header>
|
<!-- <header>
|
||||||
<span>Raghu Chagarlamudi</span>
|
<span>Raghu Chagarlamudi</span>
|
||||||
|
<span class="spacer"></span>
|
||||||
|
<nav>
|
||||||
|
<button mat-flat-button>Basic</button>
|
||||||
|
<button mat-raised-button>Basic</button>
|
||||||
|
</nav>
|
||||||
|
</header> -->
|
||||||
|
<header class="header">
|
||||||
|
<span class="header__avatar" mat-card-avatar></span>
|
||||||
|
<span class="header__logo">Raghu Ch</span>
|
||||||
|
<span class="header__spacer"></span>
|
||||||
|
<nav class="header__nav">
|
||||||
|
<button class="header__button header__button--flat" mat-flat-button>Basic</button>
|
||||||
|
<button class="header__button header__button--raised" mat-raised-button>Basic</button>
|
||||||
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -0,0 +1,57 @@
|
|||||||
|
// :host {
|
||||||
|
// color: var(--mat-sys-primary);
|
||||||
|
// background-color: var(--mat-sys-surface);
|
||||||
|
// padding: 8px 16px;
|
||||||
|
// // color: var(--mat-sys-on-primary);
|
||||||
|
// // background-color: var(--mat-sys-primary);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// header {
|
||||||
|
// font-weight: 700;
|
||||||
|
// font-size: 14px;
|
||||||
|
// letter-spacing: 1px;
|
||||||
|
// text-transform: uppercase;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// .spacer {
|
||||||
|
// flex-grow: 1;
|
||||||
|
// }
|
||||||
|
|
||||||
|
.header {
|
||||||
|
color: var(--mat-sys-on-primary);
|
||||||
|
background-color: var(--mat-sys-primary);
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
&__avatar {
|
||||||
|
background-image: url('../../assests/images/rc-header-logo.jpeg');
|
||||||
|
background-size: cover;
|
||||||
|
height: 40px;
|
||||||
|
width: 40px;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__logo {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.063rem;
|
||||||
|
margin-left: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__spacer {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__nav {
|
||||||
|
.header__button {
|
||||||
|
|
||||||
|
&--flat {
|
||||||
|
&:hover {
|
||||||
|
opacity: 1.8; /* Apply opacity change on hover */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
import { MatCardModule } from '@angular/material/card';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
selector: 'app-header',
|
selector: 'app-header',
|
||||||
imports: [],
|
imports: [MatButtonModule, MatCardModule],
|
||||||
templateUrl: './header.component.html',
|
templateUrl: './header.component.html',
|
||||||
styleUrl: './header.component.scss',
|
styleUrl: './header.component.scss',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
<h1>Hey, I'm Raghu Chagarlamudi</h1>
|
<section class="intro">
|
||||||
<p>A front end focused web developer</p>
|
<span class="intro__img"></span>
|
||||||
|
<h1 class="intro__header">Hey, I'm Raghu Chagarlamudi</h1>
|
||||||
|
<p class="intro__sub-head">A front end focused web developer</p>
|
||||||
|
</section>
|
||||||
|
|||||||
@@ -1,6 +1,28 @@
|
|||||||
:host {
|
.intro {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin-top: 6rem;
|
||||||
|
|
||||||
|
&__img {
|
||||||
|
display: block;
|
||||||
|
height: 200px;
|
||||||
|
width: 200px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-image: url('../../assests/images/rc-logo.jpeg');
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__header {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
|
.intro {
|
||||||
|
&__header {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
selector: 'app-home',
|
selector: 'app-home',
|
||||||
imports: [],
|
imports: [MatButtonModule, MatIconModule],
|
||||||
templateUrl: './home.component.html',
|
templateUrl: './home.component.html',
|
||||||
styleUrl: './home.component.scss',
|
styleUrl: './home.component.scss',
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user