Skip to content

Commit 48203a9

Browse files
create social app content for npm, github and linkedin
1 parent 0996852 commit 48203a9

13 files changed

+123
-26
lines changed

package-lock.json

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@angular/platform-browser": "^18.2.7",
2121
"@angular/platform-browser-dynamic": "^18.2.7",
2222
"@angular/router": "^18.2.7",
23+
"angular-techs-logos": "^0.1.25",
2324
"rxjs": "~7.8.1",
2425
"slidecontent-angular": "^1.5.4",
2526
"tslib": "^2.7.0",
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
<footer class="footer">
2-
<a href="https://github.com/criar-art/slidecontent-angular" target="_blank">
3-
<app-version></app-version>
4-
<svg viewBox="0 0 25 25" width="30" xmlns="http://www.w3.org/2000/svg">
5-
<path
6-
d="M12 .5C5.37.5 0 5.78 0 12.292c0 5.211 3.438 9.63 8.205 11.188.6.111.82-.254.82-.567 0-.28-.01-1.022-.015-2.005-3.338.711-4.042-1.582-4.042-1.582-.546-1.361-1.335-1.725-1.335-1.725-1.087-.731.084-.716.084-.716 1.205.082 1.838 1.215 1.838 1.215 1.07 1.803 2.809 1.282 3.495.981.108-.763.417-1.282.76-1.577-2.665-.295-5.466-1.309-5.466-5.827 0-1.287.465-2.339 1.235-3.164-.135-.298-.54-1.497.105-3.121 0 0 1.005-.316 3.3 1.209.96-.262 1.98-.392 3-.398 1.02.006 2.04.136 3 .398 2.28-1.525 3.285-1.209 3.285-1.209.645 1.624.24 2.823.12 3.121.765.825 1.23 1.877 1.23 3.164 0 4.53-2.805 5.527-5.475 5.817.42.354.81 1.077.81 2.182 0 1.578-.015 2.846-.015 3.229 0 .309.21.678.825.56C20.565 21.917 24 17.495 24 12.292 24 5.78 18.627.5 12 .5z" />
7-
</svg>
8-
&#64;lucasferreiralimax
9-
</a>
2+
<app-social />
3+
<app-version />
104
</footer>

src/app/components/base/app-footer/app-footer.component.scss

+10
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@
2020
margin: .5em;
2121
}
2222
}
23+
24+
.social-links {
25+
max-width: 290px;
26+
display: flex;
27+
margin: 0 auto 2rem;
28+
::ng-deep .tech-container {
29+
width: 90px !important;
30+
height: 90px;
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="social-links">
2+
<a href="https://npmjs.com/package/slidecontent-angular" target="_blank">
3+
<angular-techs-logos name="npm" [hiddenLabel]="true" />
4+
</a>
5+
<a href="https://www.linkedin.com/in/lucasferreiralimax" target="_blank">
6+
<angular-techs-logos name="linkedin" [hiddenLabel]="true" />
7+
</a>
8+
<a href="https://github.com/criar-art/slidecontent-angular" target="_blank">
9+
<angular-techs-logos name="github" [hiddenLabel]="true" />
10+
</a>
11+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.social-links {
2+
max-width: 290px;
3+
display: flex;
4+
margin: 1rem auto;
5+
gap: .4rem;
6+
::ng-deep .tech-container {
7+
width: 90px !important;
8+
height: 90px;
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2+
3+
import { AppSocialComponent } from './app-social.component';
4+
5+
describe('AppSocialComponent', () => {
6+
let component: AppSocialComponent;
7+
let fixture: ComponentFixture<AppSocialComponent>;
8+
9+
beforeEach(waitForAsync(() => {
10+
TestBed.configureTestingModule({
11+
declarations: [ AppSocialComponent ]
12+
})
13+
.compileComponents();
14+
}));
15+
16+
beforeEach(() => {
17+
fixture = TestBed.createComponent(AppSocialComponent);
18+
component = fixture.componentInstance;
19+
fixture.detectChanges();
20+
});
21+
22+
it('should create', () => {
23+
expect(component).toBeTruthy();
24+
});
25+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-social',
5+
templateUrl: './app-social.component.html',
6+
styleUrls: ['./app-social.component.scss']
7+
})
8+
export class AppSocialComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}
+17-16
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
import { NgModule } from '@angular/core';
2-
import { CommonModule } from '@angular/common';
3-
import { RouterModule } from '@angular/router';
1+
import { NgModule } from "@angular/core";
2+
import { CommonModule } from "@angular/common";
3+
import { RouterModule } from "@angular/router";
44

5-
import { AppHeaderComponent } from './app-header/app-header.component';
6-
import { AppNavigationComponent } from './app-navigation/app-navigation.component';
7-
import { AppLanguageComponent } from './app-language/app-language.component';
8-
import { AppLogoComponent } from './app-logo/app-logo.component';
9-
import { AppFooterComponent } from './app-footer/app-footer.component';
10-
import { AppVersionComponent } from './app-version/app-version.component';
5+
import { AppHeaderComponent } from "./app-header/app-header.component";
6+
import { AppNavigationComponent } from "./app-navigation/app-navigation.component";
7+
import { AppLanguageComponent } from "./app-language/app-language.component";
8+
import { AppLogoComponent } from "./app-logo/app-logo.component";
9+
import { AppFooterComponent } from "./app-footer/app-footer.component";
10+
import { AppVersionComponent } from "./app-version/app-version.component";
11+
import { AppSocialComponent } from "./app-social/app-social.component";
12+
import { AngularTechsLogosModule } from "angular-techs-logos";
1113

1214
@NgModule({
1315
declarations: [
1416
AppHeaderComponent,
1517
AppNavigationComponent,
1618
AppLanguageComponent,
1719
AppLogoComponent,
20+
AppSocialComponent,
1821
AppFooterComponent,
19-
AppVersionComponent
22+
AppVersionComponent,
2023
],
2124
exports: [
2225
AppHeaderComponent,
2326
AppNavigationComponent,
2427
AppLanguageComponent,
2528
AppLogoComponent,
29+
AppSocialComponent,
2630
AppFooterComponent,
27-
AppVersionComponent
31+
AppVersionComponent,
2832
],
29-
imports: [
30-
CommonModule,
31-
RouterModule
32-
]
33+
imports: [CommonModule, RouterModule, AngularTechsLogosModule],
3334
})
34-
export class BaseModule { }
35+
export class BaseModule {}

src/app/views/home/home.component.html

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<app-social />
2+
13
<div class="example">
24
<h2 class="slide-title">
35
<svg width="60px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">

src/app/views/home/home.component.scss

+11-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
box-shadow: 0 15px 25px rgba(0, 0, 0, .06);
77

88
&:first-of-type {
9-
margin-top: 2rem;
109
padding-top: 0;
1110
border-top: 1px solid #eee;
1211
box-shadow: 0 15px 25px rgba(0, 0, 0, .06), 0 -5px 15px rgba(0, 0, 0, .02);
@@ -47,3 +46,14 @@ h3 {
4746
filter: saturate(2) brightness(1.2);
4847
}
4948
}
49+
50+
.social-links {
51+
max-width: 320px;
52+
display: flex;
53+
margin: 1rem auto;
54+
55+
.tech-container {
56+
width: 90px !important;
57+
height: 90px;
58+
}
59+
}

src/app/views/home/home.module.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { NgModule } from "@angular/core";
22
import { CommonModule } from "@angular/common";
3+
import { BaseModule } from "src/app/components/base/base.module";
34

45
import { HomeComponent } from "./home.component";
56

@@ -9,6 +10,6 @@ import { SlideContentAngular } from "slidecontent-angular";
910

1011
@NgModule({
1112
declarations: [HomeComponent],
12-
imports: [SlideContentAngular, CommonModule, HomeRoutingModule],
13+
imports: [SlideContentAngular, CommonModule, HomeRoutingModule, BaseModule],
1314
})
1415
export class HomeModule {}

src/styles.scss

+4
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ body {
3939
b {
4040
font-weight: bold;
4141
}
42+
43+
figure {
44+
margin: 0px !important;
45+
}

0 commit comments

Comments
 (0)