Skip to content

Commit

Permalink
Merge pull request #23 from khoaxuantu/dev
Browse files Browse the repository at this point in the history
Dev new contents
  • Loading branch information
khoaxuantu committed Jan 26, 2024
2 parents 8286e72 + 5f7e633 commit b7999bb
Show file tree
Hide file tree
Showing 21 changed files with 576 additions and 171 deletions.
Binary file added public/images/blogs/react_bun_boilerplate/1.webp
Binary file not shown.
Binary file added public/images/blogs/react_bun_boilerplate/2.webp
Binary file not shown.
16 changes: 15 additions & 1 deletion src/components/blogs/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function BlogsPageHeaderGrp() {
<div className='header-txt-blog'>
<b>Tus's Blogs</b>
</div>
<div className='body-txt mt-2'>
<div className='body-txt-blog mt-2'>
Some notes, some ideas, some opinions
</div>
<hr />
Expand All @@ -20,6 +20,20 @@ export function SingleBlogPageHeaderGrp(props: {id: string}) {
<div className='header-txt-blog'>
<b>{blogInfoDict[props.id].title}</b>
</div>
<div className='body-txt-blog mt-2'>
{formatDate(blogInfoDict[props.id].date)}
</div>
</div>
);
}

function formatDate(date: Date) {
const options: Intl.DateTimeFormatOptions = {
day: "numeric",
month: "long",
year: "numeric",
weekday: "long",
}

return date.toLocaleDateString("en-UK", options);
}
2 changes: 1 addition & 1 deletion src/components/copyright.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Copyright(props: { copyright_class?: string }) {
<a href="https://react.dev/" target="_blank" rel="noreferrer">React</a>, {" "}
<a href="https://www.typescriptlang.org/" target="_blank" rel="noreferrer">TypeScript</a> and {" "}
<a href="https://sass-lang.com/" target="_blank" rel="noreferrer">Sass</a>.<br></br>
Copyright © {year} All Rights Reserved.
Copyright © 2023-{year} All Rights Reserved.
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/layouts/blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function BlogLayout() {
<div className="container page-wrapper">
<CustomHead metadata={metadata} />
<Outlet />
<Copyright copyright_class="page-copyright pb-3" />
<Copyright copyright_class="page-copyright mt-5 pt-5 pb-3" />
</div>
);
}
Expand Down
6 changes: 5 additions & 1 deletion src/css/markdown.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/css/markdown.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/css/scss/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
}

.btn-contact-overlay {
@include util.overlay(rgba($color: dimgray, $alpha: 1));
@include util.overlay(rgba($color: var.$text-menu, $alpha: 0.7));
}

.btn-skill-grp {
Expand Down
2 changes: 1 addition & 1 deletion src/css/scss/general/_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
position: relative;
width: 80%;
line-height: initial;
color: lightgray;
color: var.$text-menu;
}

.menu-proj-wrapper {
Expand Down
2 changes: 1 addition & 1 deletion src/css/scss/general/_util.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $directions: (

@mixin overlay($color) {
background: $color;
position: absolute;
position: fixed;
width: 100dvw;
height: 100dvh;
top: 0;
Expand Down
2 changes: 2 additions & 0 deletions src/css/scss/general/_var.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ $default-body-font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);

$radius: 5px;
$text-dark: aliceblue;
$text-menu: #E2E8F0;
$background-dark: #34383d;
$gray: #8c8c8c;
$light-gray: #cbcbcb;
$default-atag-color: #0d6efd;
$navbar-bg-color: #383838;
$navbar-stick-color: #191717;
$overlay-color: #1E293B;
7 changes: 6 additions & 1 deletion src/css/scss/markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ $codeinline-background: #f6f8fa;
margin: revert;
padding: revert;
list-style-type: revert;
line-height: 1.5rem;
line-height: 1.625rem;
}

h1 {
padding-top: 3rem;
}

code, pre {
Expand Down Expand Up @@ -47,6 +51,7 @@ $codeinline-background: #f6f8fa;
font-style: italic;
padding: 1.33em;
text-align: left;
font-weight: bold;
}

table {
Expand Down
4 changes: 2 additions & 2 deletions src/css/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ span {
}

.background-overlay {
@include util.overlay(rgba($color: dimgray, $alpha: 0.9));
@include util.overlay(rgba($color: var.$overlay-color, $alpha: 0.75));
}

.header-grp {
Expand Down Expand Up @@ -88,7 +88,7 @@ span {
@extend %copyright-txt;
position: relative;
display: none;
color: lightgray;
color: var.$text-menu;

a {
color: bisque;
Expand Down
12 changes: 6 additions & 6 deletions src/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/lib/factory/cardBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface IBlogCardProps extends ICardProps {
brief_description: string,
url: string,
file: string,
date: Date,
}


Expand Down
Loading

0 comments on commit b7999bb

Please sign in to comment.