Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ICC Eliminator Submisison
Teams will be required to submit their code base on GitHub by forking this repository.
Follow the following steps to submit your code base.
1. **Fork** this repository.
1. Create a **folder with your team name**
1. **Upload** your code base and videos to the repository.
1. Create a **pull request** to this repository. Make sure you raise your **pull request** as per your **team name**.
1. You can also add you team details in the README.md of your forked repository
For Example:
### Team Information
------------
###### Team Name -
###### Track -
###### Brief Description and Snapshots -
###### Team Name - Jo Jeeta Wohi Sikandar
###### Track - Web3 & Blockchain
###### Brief Description and Snapshots - Web3.0 Cricket Challenge Platform
##### Video Url: https://drive.google.com/file/d/1XmWcPNgNkh5waLIwOqxgiV6J6aihC7Bf/view?usp=sharing

![image](https://user-images.githubusercontent.com/42163313/222636265-a07282f4-6fd7-4954-b33c-12892176c126.png)
![image](https://user-images.githubusercontent.com/42163313/222636628-2f2162e2-029e-4a8c-aa47-2196e642e171.png)
![image](https://user-images.githubusercontent.com/42163313/222637252-00d95f05-11e3-4dc7-bc71-049b21fcf7fd.png)
![image](https://user-images.githubusercontent.com/42163313/222637515-d41dec2c-4507-4b32-be63-13d9eb694652.png)
![image](https://user-images.githubusercontent.com/42163313/222637577-975bcd04-0d45-4760-9583-c005b7981a13.png)
![image](https://user-images.githubusercontent.com/42163313/222637823-2081e33b-dbbc-4320-a159-74a64106dac1.png)
12 changes: 12 additions & 0 deletions jo-jeeta-wohi-sikandar/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/da13fac576d08ae5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/da13fac576d08ae5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-7a6cea4e6a92562f.js" defer=""></script><script src="/_next/static/chunks/framework-21e3f028c1d5b784.js" defer=""></script><script src="/_next/static/chunks/main-9533872df61c4596.js" defer=""></script><script src="/_next/static/chunks/pages/_app-65e1d515850a0f99.js" defer=""></script><script src="/_next/static/chunks/pages/_error-866d346405689706.js" defer=""></script><script src="/_next/static/E0ZJKoxlEMokxn6Hd_VJG/_buildManifest.js" defer=""></script><script src="/_next/static/E0ZJKoxlEMokxn6Hd_VJG/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>
body { margin: 0; color: #000; background: #fff; }
.next-error-h1 {
border-right: 1px solid rgba(0, 0, 0, .3);
}

@media (prefers-color-scheme: dark) {
body { color: #fff; background: #000; }
.next-error-h1 {
border-right: 1px solid rgba(255, 255, 255, .3);
}
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:49px;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"E0ZJKoxlEMokxn6Hd_VJG","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
1 change: 1 addition & 0 deletions jo-jeeta-wohi-sikandar/4072747d-30c80742f0b209ee.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions jo-jeeta-wohi-sikandar/605-06808ba324c8800c.js

Large diffs are not rendered by default.

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

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
self.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB();
21 changes: 21 additions & 0 deletions jo-jeeta-wohi-sikandar/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Matteo Bruni

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 10 additions & 0 deletions jo-jeeta-wohi-sikandar/Options/Classes/Trail.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { IOptionLoader, IParticlesOptions, RecursivePartial } from "tsparticles-engine";
import type { ITrail } from "../Interfaces/ITrail";
export declare class Trail implements ITrail, IOptionLoader<ITrail> {
delay: number;
particles?: RecursivePartial<IParticlesOptions>;
pauseOnStop: boolean;
quantity: number;
constructor();
load(data?: RecursivePartial<ITrail>): void;
}
7 changes: 7 additions & 0 deletions jo-jeeta-wohi-sikandar/Options/Classes/TrailOptions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Options } from "tsparticles-engine";
import type { TrailMode } from "../../Types";
export declare type TrailOptions = Options & {
interactivity: {
modes: TrailMode;
};
};
7 changes: 7 additions & 0 deletions jo-jeeta-wohi-sikandar/Options/Interfaces/ITrail.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { IParticlesOptions, RecursivePartial } from "tsparticles-engine";
export interface ITrail {
delay: number;
particles?: RecursivePartial<IParticlesOptions>;
pauseOnStop: boolean;
quantity: number;
}
65 changes: 65 additions & 0 deletions jo-jeeta-wohi-sikandar/README copy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org)

# tsParticles Roll Updater

[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-updater-roll/badge)](https://www.jsdelivr.com/package/npm/tsparticles-updater-roll)
[![npmjs](https://badge.fury.io/js/tsparticles-updater-roll.svg)](https://www.npmjs.com/package/tsparticles-updater-roll)
[![npmjs](https://img.shields.io/npm/dt/tsparticles-updater-roll)](https://www.npmjs.com/package/tsparticles-updater-roll) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)

[tsParticles](https://github.com/matteobruni/tsparticles) updater plugin for roll animations.

## How to use it

### CDN / Vanilla JS / jQuery

The CDN/Vanilla version JS has one required file in vanilla configuration:

Including the `tsparticles.updater.roll.min.js` file will export the function to load the updater plugin:

```javascript
loadRollUpdater;
```

### Usage

Once the scripts are loaded you can set up `tsParticles` and the updater plugin like this:

```javascript
loadRollUpdater(tsParticles);

tsParticles.load("tsparticles", {
/* options */
});
```

### ESM / CommonJS

This package is compatible also with ES or CommonJS modules, firstly this needs to be installed, like this:

```shell
$ npm install tsparticles-updater-roll
```

or

```shell
$ yarn add tsparticles-updater-roll
```

Then you need to import it in the app, like this:

```javascript
const { tsParticles } = require("tsparticles-engine");
const { loadRollUpdater } = require("tsparticles-updater-roll");

loadRollUpdater(tsParticles);
```

or

```javascript
import { tsParticles } from "tsparticles-engine";
import { loadRollUpdater } from "tsparticles-updater-roll";

loadRollUpdater(tsParticles);
```
16 changes: 16 additions & 0 deletions jo-jeeta-wohi-sikandar/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ICC Eliminator Submisison
### Team Information
------------
###### Team Name - Jo Jeeta Wohi Sikandar
###### Track - Web3 & Blockchain
##### Video Url: https://drive.google.com/file/d/1XmWcPNgNkh5waLIwOqxgiV6J6aihC7Bf/view?usp=sharing
##### Platform Link: https://icc-metaverse.vercel.app/
###### Description and Snapshots -
Web 3.0 Cricket Challenges Platform In Metaverse. Personalized Message From Celebrity for the Winner.

![image](https://user-images.githubusercontent.com/42163313/222636265-a07282f4-6fd7-4954-b33c-12892176c126.png)
![image](https://user-images.githubusercontent.com/42163313/222636628-2f2162e2-029e-4a8c-aa47-2196e642e171.png)
![image](https://user-images.githubusercontent.com/42163313/222637252-00d95f05-11e3-4dc7-bc71-049b21fcf7fd.png)
![image](https://user-images.githubusercontent.com/42163313/222637515-d41dec2c-4507-4b32-be63-13d9eb694652.png)
![image](https://user-images.githubusercontent.com/42163313/222637577-975bcd04-0d45-4760-9583-c005b7981a13.png)
![image](https://user-images.githubusercontent.com/42163313/222637823-2081e33b-dbbc-4320-a159-74a64106dac1.png)
14 changes: 14 additions & 0 deletions jo-jeeta-wohi-sikandar/TrailMaker.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { ExternalInteractorBase } from "tsparticles-engine";
import type { IDelta, IModes, Modes, Particle, RecursivePartial } from "tsparticles-engine";
import type { ITrailMode, TrailContainer, TrailMode } from "./Types";
export declare class TrailMaker extends ExternalInteractorBase<TrailContainer> {
private _delay;
private _lastPosition?;
constructor(container: TrailContainer);
clear(): void;
init(): void;
interact(delta: IDelta): Promise<void>;
isEnabled(particle?: Particle): boolean;
loadModeOptions(options: Modes & TrailMode, ...sources: RecursivePartial<(IModes & ITrailMode) | undefined>[]): void;
reset(): void;
}
13 changes: 13 additions & 0 deletions jo-jeeta-wohi-sikandar/Types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Container } from "tsparticles-engine";
import type { ITrail } from "./Options/Interfaces/ITrail";
import type { Trail } from "./Options/Classes/Trail";
import type { TrailOptions } from "./Options/Classes/TrailOptions";
export declare type ITrailMode = {
trail: ITrail;
};
export declare type TrailMode = {
trail?: Trail;
};
export declare type TrailContainer = Container & {
actualOptions: TrailOptions;
};
1 change: 1 addition & 0 deletions jo-jeeta-wohi-sikandar/_buildManifest.js

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

1 change: 1 addition & 0 deletions jo-jeeta-wohi-sikandar/_ssgManifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
self.__SSG_MANIFEST=new Set;self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"c":["webpack"],"r":[],"m":[]}
30 changes: 30 additions & 0 deletions jo-jeeta-wohi-sikandar/browser/Options/Classes/Roll.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { OptionsColor, setRangeValue } from "tsparticles-engine";
import { RollLight } from "./RollLight";
export class Roll {
constructor() {
this.darken = new RollLight();
this.enable = false;
this.enlighten = new RollLight();
this.mode = "vertical" /* RollMode.vertical */;
this.speed = 25;
}
load(data) {
if (!data) {
return;
}
if (data.backColor !== undefined) {
this.backColor = OptionsColor.create(this.backColor, data.backColor);
}
this.darken.load(data.darken);
if (data.enable !== undefined) {
this.enable = data.enable;
}
this.enlighten.load(data.enlighten);
if (data.mode !== undefined) {
this.mode = data.mode;
}
if (data.speed !== undefined) {
this.speed = setRangeValue(data.speed);
}
}
}
18 changes: 18 additions & 0 deletions jo-jeeta-wohi-sikandar/browser/Options/Classes/RollLight.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { setRangeValue } from "tsparticles-engine";
export class RollLight {
constructor() {
this.enable = false;
this.value = 0;
}
load(data) {
if (!data) {
return;
}
if (data.enable !== undefined) {
this.enable = data.enable;
}
if (data.value !== undefined) {
this.value = setRangeValue(data.value);
}
}
}
1 change: 1 addition & 0 deletions jo-jeeta-wohi-sikandar/browser/Options/Interfaces/IRoll.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
1 change: 1 addition & 0 deletions jo-jeeta-wohi-sikandar/browser/RollMode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
84 changes: 84 additions & 0 deletions jo-jeeta-wohi-sikandar/browser/RollUpdater.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import { getRandom, getRangeValue, rangeColorToHsl } from "tsparticles-engine";
import { Roll } from "./Options/Classes/Roll";
function updateRoll(particle, delta) {
const roll = particle.options.roll;
if (!particle.roll || !(roll === null || roll === void 0 ? void 0 : roll.enable)) {
return;
}
const speed = particle.roll.speed * delta.factor, max = 2 * Math.PI;
particle.roll.angle += speed;
if (particle.roll.angle > max) {
particle.roll.angle -= max;
}
}
export class RollUpdater {
getTransformValues(particle) {
var _a;
const roll = ((_a = particle.roll) === null || _a === void 0 ? void 0 : _a.enable) && particle.roll, rollHorizontal = roll && roll.horizontal, rollVertical = roll && roll.vertical;
return {
a: rollHorizontal ? Math.cos(roll.angle) : undefined,
d: rollVertical ? Math.sin(roll.angle) : undefined,
};
}
init(particle) {
const rollOpt = particle.options.roll;
if (rollOpt === null || rollOpt === void 0 ? void 0 : rollOpt.enable) {
particle.roll = {
enable: rollOpt.enable,
horizontal: rollOpt.mode === "horizontal" /* RollMode.horizontal */ || rollOpt.mode === "both" /* RollMode.both */,
vertical: rollOpt.mode === "vertical" /* RollMode.vertical */ || rollOpt.mode === "both" /* RollMode.both */,
angle: getRandom() * Math.PI * 2,
speed: getRangeValue(rollOpt.speed) / 360,
};
if (rollOpt.backColor) {
particle.backColor = rangeColorToHsl(rollOpt.backColor);
}
else if (rollOpt.darken.enable && rollOpt.enlighten.enable) {
const alterType = getRandom() >= 0.5 ? "darken" /* AlterType.darken */ : "enlighten" /* AlterType.enlighten */;
particle.roll.alter = {
type: alterType,
value: getRangeValue(alterType === "darken" /* AlterType.darken */ ? rollOpt.darken.value : rollOpt.enlighten.value),
};
}
else if (rollOpt.darken.enable) {
particle.roll.alter = {
type: "darken" /* AlterType.darken */,
value: getRangeValue(rollOpt.darken.value),
};
}
else if (rollOpt.enlighten.enable) {
particle.roll.alter = {
type: "enlighten" /* AlterType.enlighten */,
value: getRangeValue(rollOpt.enlighten.value),
};
}
}
else {
particle.roll = {
enable: false,
horizontal: false,
vertical: false,
angle: 0,
speed: 0,
};
}
}
isEnabled(particle) {
const roll = particle.options.roll;
return !particle.destroyed && !particle.spawning && !!(roll === null || roll === void 0 ? void 0 : roll.enable);
}
loadOptions(options, ...sources) {
if (!options.roll) {
options.roll = new Roll();
}
for (const source of sources) {
options.roll.load(source === null || source === void 0 ? void 0 : source.roll);
}
}
update(particle, delta) {
if (!this.isEnabled(particle)) {
return;
}
updateRoll(particle, delta);
}
}
4 changes: 4 additions & 0 deletions jo-jeeta-wohi-sikandar/browser/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { RollUpdater } from "./RollUpdater";
export async function loadRollUpdater(engine) {
await engine.addParticleUpdater("roll", () => new RollUpdater());
}
Loading