Skip to content

Commit df5ad1e

Browse files
committed
Fixed packages problem.
1 parent 4beb730 commit df5ad1e

File tree

5 files changed

+62
-35
lines changed

5 files changed

+62
-35
lines changed

package-lock.json

Lines changed: 42 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"deploy": "npm run prebuild && ng build --configuration production && npm run postbuild && npx scully -- --scanRoutes && firebase deploy --only hosting && lighthouse https://sapython-f016a.web.app/ --view && start https://sapython-f016a.web.app/",
1717
"postbuild": "gzip dist/static/*.*",
1818
"prebuild": "npm run cleanDist && npm run compressImages",
19-
"compressImages":"gulp compressProjectImages compressAuthorImages compressPostImages compressUiImages compressPostHeaderImages",
19+
"compressImages": "gulp compressProjectImages compressAuthorImages compressPostImages compressUiImages compressPostHeaderImages",
2020
"analyze": "source-map-explorer dist/SapythonBlog/**/*.js",
2121
"lint": "ng lint"
2222
},

src/app/pages/home/home.component.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,18 @@ <h2>
7878
<br>
7979
Blog Posts
8080
</h2>
81-
<div class="posts uk-position-relative uk-visible-toggle uk-light" tabindex="-1" uk-slider>
82-
<ul class="uk-slider-items uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m">
83-
<li *ngFor="let post of posts">
84-
<app-post-card [date]="post.date" [authorImage]="post.authorImage" [authorName]="post.authorName"
85-
[excerpt]="post.description" [title]="post.title || ''" [featuredImage]="post.featuredImage"
86-
[imageAlt]="post.title || ''" [url]="post.route"></app-post-card>
87-
</li>
88-
</ul>
89-
<a class="uk-position-center-left uk-position-small uk-hidden-hover" href="#" uk-slidenav-previous uk-slider-item="previous"></a>
90-
<a class="uk-position-center-right uk-position-small uk-hidden-hover" href="#" uk-slidenav-next uk-slider-item="next"></a>
81+
<div class="posts uk-position-relative uk-visible-toggle uk-light" tabindex="-1" uk-slider="autoplay: true">
82+
<div class="uk-slider-container">
83+
<ul class="uk-slider-items uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m">
84+
<li *ngFor="let post of posts">
85+
<app-post-card [date]="post.date" [authorImage]="post.authorImage" [authorName]="post.authorName"
86+
[excerpt]="post.description" [title]="post.title || ''" [featuredImage]="post.featuredImage"
87+
[imageAlt]="post.title || ''" [url]="post.route"></app-post-card>
88+
</li>
89+
</ul>
90+
</div>
91+
<a class="uk-position-center-left-out uk-position-small" href="#" uk-slidenav-previous uk-slider-item="previous"></a>
92+
<a class="uk-position-center-right-out uk-position-small" href="#" uk-slidenav-next uk-slider-item="next"></a>
9193
</div>
9294
</section>
9395
<section class="projects">

src/app/pages/home/home.component.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ main {
252252
}
253253
section.projects {
254254
padding: 50px;
255+
padding-left: 200px;
255256
div.heading {
256257
color: var(--color-text);
257258
strong {
@@ -264,9 +265,8 @@ main {
264265
font-display: swap;
265266
}
266267
div.mainProjects {
267-
margin: 100px;
268268
.projectSlider {
269-
margin: 0 auto;
269+
margin-bottom: 40px;
270270
border-radius: 20px;
271271
width: 70vw;
272272
height: 40vh;
@@ -290,7 +290,7 @@ main {
290290
}
291291
}
292292
div.showcaseProjects {
293-
margin: 0 auto;
293+
// margin: 0 auto;
294294
display: grid;
295295
grid-template-columns: 1fr 1fr 1fr 1fr;
296296
grid-template-rows: 1fr 1fr;

src/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ $SapythonBlog-theme: mat.define-light-theme((
7070
--color-text-light: #c2c2c2;
7171
--font-main:"CascadiyaCode";
7272
--font-secondary:"Amsterdam";
73+
// New theme
74+
--color-primary: #20232e;
75+
--color-secondary: #2d2f38;
76+
--color-tertiary: #14171d;
7377
}
7478
// Definitions end here
7579
html,

0 commit comments

Comments
 (0)