Skip to content

Commit

Permalink
lis
Browse files Browse the repository at this point in the history
  • Loading branch information
creativebydre committed Aug 26, 2023
1 parent 3ca3787 commit 5e2eeda
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 38 deletions.
26 changes: 21 additions & 5 deletions _data/cardbook.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
title: 33 Tips and Tricks to Speed up your workflow .
description: Get this higly visual, 15 pages PDF Guide On Qt Creator for FREE!
image: /assets/img/qt_creator_guide.webp
button: GET IT NOW!
link: https://mailchi.mp/a7c4442d916d/qt-creator-shortcuts
cardlist:
- title: 33 Tips and Tricks to Speed up your workflow .
subtitle: Get this higly visual, 15 pages PDF Guide On Qt Creator for FREE!
image: /assets/img/qt_creator_guide.webp
button: GET IT NOW!
link: https://mailchi.mp/a7c4442d916d/qt-creator-shortcuts
- title: Example Book 2.
subtitle: Description example book 2
image: /assets/img/bookis.webp
button: GET IT NOW!
link: https://mailchi.mp/a7c4442d916d/qt-creator-shortcuts
- title: Example Book 3.
subtitle: Description example book 3 you can write anything in here...
image: /assets/img/qt_creator_guide.webp
button: GET IT NOW!
link: https://mailchi.mp/a7c4442d916d/qt-creator-shortcuts

display_on_blog_list: 1

display_on_blog_page: 2

26 changes: 21 additions & 5 deletions _data/cardcourses.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
title: High Quality Online Courses on Qt,C++, Qt Quick/QML and More.
description: Qt has two main mechanisms to allow developers to react to things that happen in your application. One of these, which is more common is Signals and Slots.
image: /assets/img/qt_courses.webp
button: Learn More
link: /courses
cardlist:
- title: High Quality Online Courses on Qt,C++, Qt Quick/QML and More.
subtitle: Qt has two main mechanisms to allow developers to react to things that happen in your application. One of these, which is more common is Signals and Slots.
image: /assets/img/qt_courses.webp
button: Learn More
link: /courses
- title: Courses video 2
subtitle: This is courses video 2 description or subtitle just write in here for courses information.
image: /assets/courses/image/qt_qml.png
button: Call to Action
link: /courses
- title: Courses video 3
subtitle: This is courses video 3 description or subtitle just write in here for courses information.
image: /assets/img/qt_quick_advanced.png
button: Take Courses
link: /courses


display_on_blog_list: 1

display_on_blog_page: 2
27 changes: 27 additions & 0 deletions _includes/blog/sidebarpost.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<div class="col-md-3 p-3">


<div class="row">

{% include widget/bookcardblog.html %}

<div href="{{page.url}}" class="mb-3 shadow-sm mt-3">
<div class="p-3 bg-greens">
<h3 class="p-3"><img class="img-fluid p-1 bg-white rounded-circle"
width="60" height="60" src="/assets/img/tag.svg"/>
<strong><a href="{{page.url}}" class="text-white">Tags</a></strong></h3>
</div>
<div class="p-3">
{% for tag in site.tags %}
<p><a href="{{site.url}}/tag.html#{{tag[0]}}">{{ tag[0] }} <span class="float-end">({{ tag[1].size }}) </span></a>
<br/>
{% endfor %}
</p>
</div>
</div>

{% include widget/coursescardblog.html %}


</div>
</div>
2 changes: 1 addition & 1 deletion _includes/blog/start.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container">
<div class="row mb-5">
{% include blog/breadcumbtag.html %}
{% if page.sidebar == true %}{% include blog/content.html %}{% include blog/sidebar.html %}{% else if %}{% include blog/content-singgle.html %}{% endif %}
{% if page.sidebar == true %}{% include blog/content.html %}{% include blog/sidebarpost.html %}{% else if %}{% include blog/content-singgle.html %}{% endif %}
{% include blog/pagination.html %}
</div>
</div>
Expand Down
15 changes: 10 additions & 5 deletions _includes/widget/bookcard.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{% if page.bookcard == true %}
{% for ca in site.data.cardbook.cardlist | limit:{{site.data.cardbook.display_on_blog_list}} %}
<div class="zoom mb-3 mt-3 shadow-sm border-success border-top">
<h3 class="p-3 lead"><strong><a href="{{site.data.cardbook.link}}">{{site.data.cardbook.title}}</a></strong></h3>
<img class="img-fluid p-1 lazyload" loading="lazy" width="100%" height="100%" data-src="{{site.data.cardbook.image}}"/>
<h3 class="p-3 lead">
<strong><a href="{{ca.link}}">{{ca.title}}</a></strong>
</h3>
<img class="img-fluid p-1 lazyload" loading="lazy"
width="100%" height="100%" data-src="{{ca.image}}"/>
<p class="text-dark p-1 mt-3">
{{site.data.cardbook.description}}
{{ca.subtitle}}
</p>
<p><a href="{{site.data.cardbook.link}}"
<p><a href="{{ca.link}}"
class="btn col-12 mt-3 mb-3 bg-green btn-outline-success"
style="border-radius:0;">{{site.data.cardbook.button}}</a></p>
style="border-radius:0;">{{ca.button}}</a></p>
</div>
{% endfor %}
{% endif %}
17 changes: 17 additions & 0 deletions _includes/widget/bookcardblog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% if page.bookcard == true %}
{% for ca in site.data.cardbook.cardlist | limit:{{site.data.cardbook.display_on_blog_page}} %}
<div class="zoom mb-3 mt-3 shadow-sm border-success border-top">
<h3 class="p-3 lead">
<strong><a href="{{ca.link}}">{{ca.title}}</a></strong>
</h3>
<img class="img-fluid p-1 lazyload" loading="lazy"
width="100%" height="100%" data-src="{{ca.image}}"/>
<p class="text-dark p-1 mt-3">
{{ca.subtitle}}
</p>
<p><a href="{{ca.link}}"
class="btn col-12 mt-3 mb-3 bg-green btn-outline-success"
style="border-radius:0;">{{ca.button}}</a></p>
</div>
{% endfor %}
{% endif %}
12 changes: 7 additions & 5 deletions _includes/widget/coursescard.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{% if page.coursescard == true %}
{% for cv in site.data.cardcourses.cardlist | limit:{{site.data.cardbook.display_on_blog_list}} %}
<div class="zoom mb-3 shadow-sm border-success border-top">
<h3 class="p-3 lead"><strong><a href="{{site.data.cardcourses.link}}">{{site.data.cardcourses.title}}</a></strong></h3>
<h3 class="p-3 lead"><strong><a href="{{cv.link}}">{{cv.title}}</a></strong></h3>
<img class="img-fluid p-1 lazyload" loading="lazy" width="100%" height="100%"
data-src="{{site.data.cardcourses.image}}"/>
<p class="text-dark p-1 mt-3">{{site.data.cardcourses.description}}</p>
<p><a href="{{site.data.cardcourses.link}}"
data-src="{{cv.image}}"/>
<p class="text-dark p-1 mt-3">{{cv.subtitle}}</p>
<p><a href="{{cv.link}}"
class="btn col-12 mt-3 mb-3 bg-green btn-outline-success"
style="border-radius:0;">{{site.data.cardcourses.button}}</a></p>
style="border-radius:0;">{{cv.button}}</a></p>
</div>
{% endfor %}
{% endif %}
13 changes: 13 additions & 0 deletions _includes/widget/coursescardblog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% if page.coursescard == true %}
{% for cv in site.data.cardcourses.cardlist | limit:{{site.data.cardbook.display_on_blog_page}} %}
<div class="zoom mb-3 shadow-sm border-success border-top">
<h3 class="p-3 lead"><strong><a href="{{cv.link}}">{{cv.title}}</a></strong></h3>
<img class="img-fluid p-1 lazyload" loading="lazy" width="100%" height="100%"
data-src="{{cv.image}}"/>
<p class="text-dark p-1 mt-3">{{cv.subtitle}}</p>
<p><a href="{{cv.link}}"
class="btn col-12 mt-3 mb-3 bg-green btn-outline-success"
style="border-radius:0;">{{cv.button}}</a></p>
</div>
{% endfor %}
{% endif %}
4 changes: 2 additions & 2 deletions _posts/2019-04-12-working-with-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ The quoted line in the doc also says that
It makes it clear that the parent implementation of keyPressEvent is doing some stuff. Depending on what you are trying to achieve, you may or may not be interested in what the parent implementation has to offer. If you want to completely bypass what the parent implementation is doing, just do your thing in your overridden event handler and don’t call the parent implementation. By the way, you call the parent implementation by doing something like this
~~~
~~~cpp
QWidget::keyPressEvent(event);
~~~
By passing in your event parameter, if your parent class happens to be QWidget for example. This is what is meant by event propagation. Events can be , and in most cases are , propagated from parent to child until an object is found, that is interested in the event. Child classes propagate to parents by calling the same event method in their parent classes.
Expand Down Expand Up @@ -186,7 +186,7 @@ public:
~~~
and its implementation CPP file to look like below

~~~
~~~cpp
ChildLineEdit::ChildLineEdit(QWidget *parent) : MyLineEdit(parent)
{
}
Expand Down
31 changes: 16 additions & 15 deletions assets/css/color.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.highlight .hll { background-color: #EFF0EF }
.highlight .c { color: #808080 } /* Comment */
.highlight .err { color: #F00000; } /* Error */
.highlight .hll { background-color: #EFF0EF ;}
.highlight .c { color: #808080; } /* Comment */
.highlight .err { color: #15ba29; } /* Error */
.highlight .k { color: #008000; } /* Keyword */
.highlight .o { color: #303030 } /* Operator */
.highlight .cm { color: #808080 } /* Comment.Multiline */
.highlight .cp { color: #507090 } /* Comment.Preproc */
.highlight .c1 { color: #808080 } /* Comment.Single */
.highlight .o { color: #009726; } /* Operator */
.highlight .cm { color: #808080 ;} /* Comment.Multiline */
.highlight .cp { color: #507090 ;} /* Comment.Preproc */
.highlight .c1 { color: #808080 ;} /* Comment.Single */
.highlight .cs { color: #cc0000; } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .gd { color: #A00000; } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gr { color: #FF0000; } /* Generic.Error */
.highlight .gh { color: #000080; } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #808080 } /* Generic.Output */
Expand All @@ -22,10 +22,9 @@
.highlight .kn { color: #008000; } /* Keyword.Namespace */
.highlight .kp { color: #003080; } /* Keyword.Pseudo */
.highlight .kr { color: #008000; } /* Keyword.Reserved */
.highlight .kt { color: #303090; } /* Keyword.Type */
.highlight .m { color: #6000E0; } /* Literal.Number */
.highlight .s { background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #0000C0 } /* Name.Attribute */
.highlight .kt { color: #15ba29; } /* Keyword.Type */
.highlight .m { color: #808080; } /* Literal.Number */
.highlight .s { color: #15ba29 } /* Literal.String */
.highlight .nb { color: #007020 } /* Name.Builtin */
.highlight .nc { color: #B00060; } /* Name.Class */
.highlight .no { color: #003060; } /* Name.Constant */
Expand All @@ -35,7 +34,7 @@
.highlight .nf { color: #0060B0; } /* Name.Function */
.highlight .nl { color: #907000; } /* Name.Label */
.highlight .nn { color: #0e84b5; } /* Name.Namespace */
.highlight .nt { color: #007000 } /* Name.Tag */
.highlight .nt { color: #15ba29 } /* Name.Tag */
.highlight .nv { color: #906030 } /* Name.Variable */
.highlight .ow { color: #000000; } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
Expand All @@ -60,4 +59,6 @@
.highlight .vi { color: #3030B0 } /* Name.Variable.Instance */
.highlight .il { color: #0000D0; } /* Literal.Number.Integer.Long */
.highlight .er {color: #808080;}
.highlight .na {color: #808080;}
.highlight .na {color: #808080;}
.highlight .n {color: black;}
.highlight .p {color: #7A33DA;}

0 comments on commit 5e2eeda

Please sign in to comment.