Skip to content

Commit 2f6e3e7

Browse files
Merge branch 'main' into main
2 parents afffce8 + 6bdb820 commit 2f6e3e7

File tree

229 files changed

+29669
-457
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+29669
-457
lines changed

.github/workflows/add_label.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Issue Creation Workflow
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
check-contributor-issues:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '14'
19+
20+
- name: Retrieve Contributors
21+
run: |
22+
CONTRIBUTORS=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/contributors | jq -r '.[].login')
23+
echo "::set-output name=contributors::$CONTRIBUTORS"
24+
25+
- name: Count Open Issues for Each Contributor
26+
id: count-issues
27+
run: |
28+
for contributor in ${{ steps.retrieve-contributors.outputs.contributors }}; do
29+
ISSUE_COUNT=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/search/issues?q=is:open+author:${contributor}+repo:${{ github.repository }}" | jq -r '.total_count')
30+
echo "::set-output name=${contributor}_issue_count::$ISSUE_COUNT"
31+
done
32+
33+
- name: Check Contributor's Open Issues Count
34+
run: |
35+
contributor=${{ github.event.issue.user.login }}
36+
issue_count=${{ steps.count-issues.outputs["${contributor}_issue_count"] }}
37+
if [ "$issue_count" -ge 4 ]; then
38+
echo "Contributor $contributor has $issue_count open issues. Please complete your existing open issues before creating a new one."
39+
exit 1
40+
fi

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ This project is licensed under the [MIT License](LICENSE).
8383

8484
## Badges
8585

86-
[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=CodeHarborHub_codeharborhub)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub)
86+
[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=CodeHarborHub_codeharborhub.github.io)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub)
8787

88-
[![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io.svg/?label=active+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io/) [![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io.svg/?label=resolved+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=bugs)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![DeepScan grade](https://deepscan.io/api/teams/24046/projects/27285/branches/870905/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=24046&pid=27285&bid=870905) [![Docker Image CI](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/docker-image.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/docker-image.yml) [![Close Old Issues](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-issue.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-issue.yml) [![Close Stale PRs](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-pr.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-pr.yml) [![CodeQL](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/github-code-scanning/codeql) [![Comment on Issue Close](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/autocomment-iss-close.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/autocomment-iss-close.yml) [![Greetings](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/greetings.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/greetings.yml) ![GitHub commit activity](https://img.shields.io/github/commit-activity/t/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/w/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/CodeHarborHub/codeharborhub) ![GitHub Org's stars](https://img.shields.io/github/stars/CodeHarborHub%2Fcodeharborhub) ![GitHub License](https://img.shields.io/github/license/CodeHarborHub/codeharborhub) ![GitHub forks](https://img.shields.io/github/forks/CodeHarborHub/codeharborhub) ![GitHub watchers](https://img.shields.io/github/watchers/CodeHarborHub/codeharborhub) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/CodeHarborHub/codeharborhub) ![GitHub file size in bytes](https://img.shields.io/github/size/CodeHarborHub/codeharborhub/docusaurus.config.js) ![GitHub repo file or directory count](https://img.shields.io/github/directory-file-count/CodeHarborHub/codeharborhub) ![GitHub repo size](https://img.shields.io/github/repo-size/CodeHarborHub/codeharborhub)
88+
[![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io.svg/?label=active+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io/) [![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io.svg/?label=resolved+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=bugs)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![DeepScan grade](https://deepscan.io/api/teams/24046/projects/27285/branches/870905/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=24046&pid=27285&bid=870905) [![Docker Image CI](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/docker-image.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/docker-image.yml) [![Close Old Issues](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-issue.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-issue.yml) [![Close Stale PRs](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-pr.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-pr.yml) [![CodeQL](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/github-code-scanning/codeql) [![Comment on Issue Close](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/autocomment-iss-close.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/autocomment-iss-close.yml) [![Greetings](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/greetings.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/greetings.yml) ![GitHub commit activity](https://img.shields.io/github/commit-activity/t/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/w/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/CodeHarborHub/codeharborhub) ![GitHub Org's stars](https://img.shields.io/github/stars/CodeHarborHub%2Fcodeharborhub) ![GitHub License](https://img.shields.io/github/license/CodeHarborHub/codeharborhub) ![GitHub forks](https://img.shields.io/github/forks/CodeHarborHub/codeharborhub) ![GitHub watchers](https://img.shields.io/github/watchers/CodeHarborHub/codeharborhub) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/CodeHarborHub/codeharborhub) ![GitHub file size in bytes](https://img.shields.io/github/size/CodeHarborHub/codeharborhub/docusaurus.config.js) ![GitHub repo file or directory count](https://img.shields.io/github/directory-file-count/CodeHarborHub/codeharborhub) ![GitHub repo size](https://img.shields.io/github/repo-size/CodeHarborHub/codeharborhub)
8989

9090
## Contributors
9191

assets/Community.png

-58.8 KB
Loading

assets/Courses.png

-100 KB
Loading

assets/KMP_algo.png

80 KB
Loading

assets/LinearSearch_GFG.webp

18.8 KB
Binary file not shown.

assets/Showcase.png

-63.2 KB
Loading

assets/Tutorials.png

-67.3 KB
Loading

assets/binnary-search-.webp

20.8 KB
Binary file not shown.
-1.39 KB
Loading
-1 Bytes
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/CSS/css-basics/CSS-Animations.md

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
---
2+
id: css-animations
3+
title: CSS Animations
4+
sidebar_label: CSS Animations
5+
tags: [html, introduction, web development, markup language, hyper text, web pages, career opportunities, personal growth, web-development, web design, web pages, websites, career opportunities, contribute to the web, stay relevant, express yourself, learn other technologies, have fun, how to use html, steps to start using html, set up your development environment, create your first html document, learn html syntax and structure, explore html elements and-attributes]
6+
description: In this tutorial you will learn about animations in CSS
7+
---
8+
9+
## What are CSS Animations?
10+
An animation lets an element gradually change from one style to another.
11+
You can change as many CSS properties you want, as many times as you want.
12+
To use CSS animation, you must first specify some keyframes for the animation.
13+
14+
Keyframes hold what styles the element will have at certain times.
15+
16+
## The `@keyframes` Rule
17+
When you specify CSS styles inside the `@keyframes` rule, the animation will gradually change from the current style to the new style at certain times.
18+
To get an animation to work, you must bind the animation to an element.
19+
20+
```css
21+
/* The animation code */
22+
@keyframes example {
23+
from {background-color: red;}
24+
to {background-color: yellow;}
25+
}
26+
27+
/* The element to apply the animation to */
28+
div {
29+
width: 100px;
30+
height: 100px;
31+
background-color: red;
32+
animation-name: example;
33+
animation-duration: 4s;
34+
}
35+
```
36+
<BrowserWindow url="http://127.0.0.1:5500/index.html">
37+
<div style={{
38+
width: '100px',
39+
height: '100px',
40+
backgroundColor: 'red',
41+
animation: 'myAnimation 4s infinite',
42+
padding: '5px',
43+
}}>
44+
Hello World!
45+
</div>
46+
<style>{`
47+
@keyframes myAnimation {
48+
from { background-color: red; }
49+
to { background-color: yellow; }
50+
}
51+
`}</style>
52+
</BrowserWindow>
53+
54+
The `animation-duration` property defines how long an animation should take to complete. If the `animation-duration` property is not specified, no animation will occur, because the default value is 0s (0 seconds).
55+
In the example above we have specified when the style will change by using the keywords "from" and "to" (which represents `0%` (start) and `100%` (complete)).
56+
It is also possible to use percent. By using percent, you can add as many style changes as you like.
57+
58+
## Delay an Animation
59+
The `animation-delay` property specifies a delay for the start of an animation.
60+
61+
```css
62+
div {
63+
width: 100px;
64+
height: 100px;
65+
position: relative;
66+
background-color: red;
67+
animation-name: example;
68+
animation-duration: 4s;
69+
animation-delay: 2s;
70+
}
71+
```
72+
<BrowserWindow minHeight={400} url="http://127.0.0.1:5500/index.html">
73+
<div className="Delay-an-Animation" style={{
74+
width: '100px',
75+
height: '100px',
76+
position: 'relative',
77+
backgroundColor: 'red',
78+
animationName: 'DelayAnAnimationExample',
79+
animationDuration: '4s',
80+
animationDelay: '2s',
81+
padding: '5px',
82+
}}>
83+
Hello World!
84+
</div>
85+
<style>{`
86+
@keyframes DelayAnAnimationExample {
87+
0% { background-color: red; left: 0px; top: 0px; }
88+
25% { background-color: yellow; left: 200px; top: 0px; }
89+
50% { background-color: blue; left: 200px; top: 200px; }
90+
75% { background-color: green; left: 0px; top: 200px; }
91+
100% { background-color: red; left: 0px; top: 0px; }
92+
}
93+
.Delay-an-Animation {
94+
position: absolute;
95+
}
96+
`}</style>
97+
</BrowserWindow>
98+
99+
# Times animation should run
100+
The `animation-iteration-count` property specifies the number of times an animation should run.
101+
102+
```css
103+
div {
104+
width: 100px;
105+
height: 100px;
106+
position: relative;
107+
background-color: red;
108+
animation-name: example;
109+
animation-duration: 4s;
110+
animation-iteration-count: 3;
111+
}
112+
```
113+
114+
<BrowserWindow minHeight={400} url="http://127.0.0.1:5500/index.html">
115+
<div style={{
116+
width: '100px',
117+
height: '100px',
118+
position: 'relative',
119+
backgroundColor: 'red',
120+
animationName: 'example',
121+
animationDuration: '4s',
122+
animationIterationCount: 3,
123+
padding: '5px',
124+
}}>
125+
Hello World!
126+
</div>
127+
<style>{`
128+
@keyframes example {
129+
0% { background-color: red; left: 0px; top: 0px; }
130+
25% { background-color: yellow; left: 200px; top: 0px; }
131+
50% { background-color: blue; left: 200px; top: 200px; }
132+
75% { background-color: green; left: 0px; top: 200px; }
133+
100% { background-color: red; left: 0px; top: 0px; }
134+
}
135+
`}</style>
136+
</BrowserWindow>
137+
138+
# Direction of the animation
139+
140+
The `animation-direction` property specifies whether an animation should be played forwards, backwards or in alternate cycles.
141+
142+
The `animation-direction` property can have the following values:
143+
144+
- `normal` - The animation is played as normal (forwards). This is default
145+
- `reverse` - The animation is played in reverse direction (backwards)
146+
- `alternate` - The animation is played forwards first, then backwards
147+
- `alternate-reverse` - The animation is played backwards first, then forwards
148+
149+
```css
150+
div {
151+
width: 100px;
152+
height: 100px;
153+
position: relative;
154+
background-color: red;
155+
animation-name: example;
156+
animation-duration: 4s;
157+
animation-direction: reverse;
158+
}
159+
```
160+
<BrowserWindow minHeight={400} url="http://127.0.0.1:5500/index.html">
161+
<div style={{
162+
width: '100px',
163+
height: '100px',
164+
position: 'relative',
165+
backgroundColor: 'red',
166+
animationName: 'example',
167+
animationDuration: '4s',
168+
animationDirection: 'reverse',
169+
padding: '5px',
170+
}}>
171+
Hello World!
172+
</div>
173+
<style>{`
174+
@keyframes example {
175+
0% { background-color: red; left: 0px; top: 0px; }
176+
25% { background-color: yellow; left: 200px; top: 0px; }
177+
50% { background-color: blue; left: 200px; top: 200px; }
178+
75% { background-color: green; left: 0px; top: 200px; }
179+
100% { background-color: red; left: 0px; top: 0px; }
180+
}
181+
`}</style>
182+
</BrowserWindow>
183+
184+
185+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"label": "Entity-Relational Model",
3+
"position": 1,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "In this section, you will learn about the Entity-Relational Model in DBMS, a fundamental concept for conceptual design of databases. We will cover the basics of entities, relationships, attributes, and constraints, and how they are used to create a structured database schema."
7+
}
8+
}
9+

0 commit comments

Comments
 (0)