-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
336 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
src/app/component/dialog/welcome-page-dialog/welcome-page-dialog.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
.welcome-page { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
height: 95%; | ||
background-color: white; | ||
border-radius: 25px; | ||
box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px; | ||
overflow: hidden; | ||
} | ||
|
||
.header-container { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
padding: 20px 20px 0 20px; | ||
} | ||
|
||
.logo-container { | ||
display: flex; | ||
align-items: center; | ||
padding-inline: 10px; | ||
border-radius: 10px; | ||
} | ||
|
||
.image-container { | ||
display: flex; | ||
align-items: center; | ||
border-radius: 50%; | ||
padding: 10px; | ||
background-color: var(--main-button-color); | ||
} | ||
|
||
.logo { | ||
max-width: 40px; | ||
max-height: 40px; | ||
} | ||
|
||
h1 { | ||
margin-left: 8px; | ||
text-align: center; | ||
} | ||
|
||
.welcome-page-content { | ||
display: flex; | ||
flex-direction: column; | ||
overflow: auto; | ||
padding: 20px; | ||
} | ||
|
||
h2 { | ||
font-weight: 300; | ||
} | ||
|
||
.demo-container { | ||
display: flex; | ||
flex-direction: row; | ||
max-width: 1600px; | ||
flex-wrap: wrap; | ||
justify-content: space-around; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.demo-image-container { | ||
flex: 1 1 300px; | ||
max-width: 45%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-inline: 8px; | ||
} | ||
|
||
.demo-label { | ||
font-weight: bold; | ||
margin-block: 16px; | ||
} | ||
|
||
.demo-image { | ||
width: 100%; | ||
aspect-ratio: 1 / 1; | ||
border-radius: 15px; | ||
box-shadow: rgba(0, 0, 0, 0.2) 0px 18px 50px -10px; | ||
overflow: hidden; | ||
} | ||
|
||
.demo-image img { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; /* Ensures the image covers the entire container */ | ||
border-radius: inherit; | ||
} | ||
|
||
@media (max-width: 600px) { | ||
.demo-image-container { | ||
flex: 1 1 80%; /* Make images larger on smaller screens */ | ||
max-width: 80%; /* Allow images to take more space */ | ||
} | ||
} |
75 changes: 75 additions & 0 deletions
75
src/app/component/dialog/welcome-page-dialog/welcome-page-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<div class="welcome-page"> | ||
<header class="header-container"> | ||
<span class="logo-container"> | ||
<span class="image-container"> | ||
<img [ngSrc]="'assets/logo_white.png'" alt="Logo" | ||
class="logo" height="251" width="249"/> | ||
</span> | ||
<h1 class="logo-label">GraphWeb</h1> | ||
</span> | ||
<p-button icon="pi pi-times" class="move-right" [rounded]="true" [text]="true" severity="danger" | ||
(onClick)="ref.close();"/> | ||
</header> | ||
|
||
<div class="welcome-page-content"> | ||
<div class="subheader-container"> | ||
<h2>Visualize algorithms</h2> | ||
</div> | ||
<div class="demo-container"> | ||
<div class="demo-image-container"> | ||
<label class="demo-label">See full animation of algorithm</label> | ||
<img [src]="'assets/gifs/DFSAnimation.gif'" alt="DFSAlgorithm" class="demo-image"> | ||
</div> | ||
<div class="demo-image-container"> | ||
<label class="demo-label">...Or control animation with player</label> | ||
<img [src]="'assets/gifs/ManageAnimationWithPlayer.gif'" alt="ManageAnimationWithPlayer" class="demo-image"> | ||
</div> | ||
</div> | ||
<div class="subheader-container"> | ||
<h2>Force Layout</h2> | ||
</div> | ||
<div class="demo-container"> | ||
<div class="demo-image-container"> | ||
<label class="demo-label">Enable Force layout to improve graph readability</label> | ||
<img [src]="'assets/gifs/ForceLayoutDemo.gif'" alt="ForceLayoutDemo" class="demo-image"> | ||
</div> | ||
</div> | ||
<div class="subheader-container"> | ||
<h2>Create graph</h2> | ||
</div> | ||
<div class="demo-container"> | ||
<div class="demo-image-container"> | ||
<label class="demo-label">Generate huge trees with different n-arity</label> | ||
<img [src]="'assets/img/HugeBinaryTree.png'" alt="HugeBinaryTree" class="demo-image"> | ||
</div> | ||
<div class="demo-image-container"> | ||
<label class="demo-label">...Or graph with different options</label> | ||
<img [src]="'assets/gifs/GenerateGraph.gif'" alt="GenerateGraphWithOptions" class="demo-image"> | ||
</div> | ||
<div class="demo-image-container"> | ||
<label class="demo-label">... Or draw graph as you like</label> | ||
<img [src]="'assets/gifs/DrawGraph.gif'" alt="DrawGraph" class="demo-image"> | ||
</div> | ||
</div> | ||
<div class="subheader-container"> | ||
<h2>Customize graph</h2> | ||
</div> | ||
<div class="demo-container"> | ||
<div class="demo-image-container"> | ||
<label class="demo-label">Change colors, sizes, or apply ready-made style template</label> | ||
<img [src]="'assets/img/CustomisationExample.png'" alt="CustomizeGraph" class="demo-image"> | ||
</div> | ||
</div> | ||
<div class="subheader-container"> | ||
<h2>More features</h2> | ||
<ul> | ||
<li>Save and load graphs</li> | ||
<li>Export graph as image</li> | ||
<li>Export graph as JSON</li> | ||
<li>Import graph as JSON, matrix, set of vertices and edges</li> | ||
<li>Matrices representations of graph (ability to save matrix)</li> | ||
<li>And new features are coming soon!</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> |
22 changes: 22 additions & 0 deletions
22
src/app/component/dialog/welcome-page-dialog/welcome-page-dialog.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Component } from '@angular/core'; | ||
import {DynamicDialogRef} from "primeng/dynamicdialog"; | ||
import {Button} from "primeng/button"; | ||
import {NgIf, NgOptimizedImage} from "@angular/common"; | ||
|
||
@Component({ | ||
selector: 'app-welcome-page-dialog', | ||
standalone: true, | ||
imports: [ | ||
Button, | ||
NgIf, | ||
NgOptimizedImage | ||
], | ||
templateUrl: './welcome-page-dialog.component.html', | ||
styleUrl: './welcome-page-dialog.component.css' | ||
}) | ||
export class WelcomePageDialogComponent { | ||
|
||
constructor(public ref: DynamicDialogRef) { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.