Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eduardconstantin main #146

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
14286bb
Change: links
danieldanielecki Mar 18, 2024
662712a
Add: all tests
danieldanielecki Mar 19, 2024
4a8be00
🔥 chore(af.gif): remove af.gif file from the repository
danieldanielecki Mar 19, 2024
5052795
ci: add Azure Static Web Apps workflow file
danieldanielecki Mar 22, 2024
e88a03a
Change: branding & workflow
danieldanielecki Mar 22, 2024
15e72ce
🔥 refactor(TopNav.tsx): remove hardcoded 'AZURE' text from TopNav com…
danieldanielecki Mar 23, 2024
7f60283
Update README.md
danieldanielecki Mar 26, 2024
69c10cb
Update bug_report.md
danieldanielecki Mar 26, 2024
f4f4488
added playwright
Raboro Mar 26, 2024
07248b0
added playwright scripts
Raboro Mar 26, 2024
38ac7c3
added basic playwright config
Raboro Mar 26, 2024
956ef66
added example playwright test
Raboro Mar 26, 2024
53a9f2b
ignored playwright tests for jest
Raboro Mar 27, 2024
8de22c8
finished first test
Raboro Mar 27, 2024
f48bcca
renamed test
Raboro Mar 27, 2024
5c262bc
added test for practice
Raboro Mar 28, 2024
8bf1971
🔧 fix(exam/page.tsx): adjust width classes for responsive design cons…
danieldanielecki Mar 30, 2024
b6e74e9
Merge branch 'eduardconstantin-main'
danieldanielecki Mar 30, 2024
f9bef50
Merge pull request #10 from Raboro/feat/playwright-e2e
danieldanielecki Mar 30, 2024
59a5f53
Update QuizForm.tsx
Nustinua Apr 2, 2024
3f9dc25
Merge pull request #13 from Nustinua/patch-1
danieldanielecki Apr 2, 2024
50b84e5
Create FUNDING.yml
danieldanielecki Apr 11, 2024
6436f6f
fix(exams): updated PSD-1 url
0xJohnnyboy May 1, 2024
1e964f0
Merge pull request #18 from Sonicfury/main
danieldanielecki May 1, 2024
bc0f5ec
Merge branch 'main' into feature/sync-works
danieldanielecki May 25, 2024
70c2be4
Merge pull request #20 from Ditectrev/feature/sync-works
danieldanielecki May 25, 2024
e9b42f4
Update exams.json
danieldanielecki May 26, 2024
ef00dde
Update README.md
danieldanielecki May 26, 2024
40dd9ec
feat: oops #19 lost during forks sync
danieldanielecki May 26, 2024
73804c7
Update exams.json
danieldanielecki May 26, 2024
73dc942
Few issues/enhancement
cbvora Jun 13, 2024
877afdf
mange multiple value persistance
cbvora Jun 14, 2024
3d0ad9f
manage reset
cbvora Jun 14, 2024
933cb12
copy URL educate
cbvora Jun 14, 2024
8ebf991
close Image modal on ESC and outside of modal
cbvora Jun 14, 2024
033cebe
add exam serch in home page
cbvora Jun 14, 2024
642a368
style change
cbvora Jun 14, 2024
bfee41c
style change
cbvora Jun 14, 2024
a53ffed
using custom debounce for searach and que navigation
cbvora Jun 14, 2024
4f119e9
loader
cbvora Jun 15, 2024
818ff01
Merge pull request #25 from cbvora/feature/update_url_to_current_q
danieldanielecki Jun 15, 2024
d32d9f0
prev next click issue and build issue
cbvora Jun 15, 2024
70ac8d1
Merge pull request #26 from cbvora/build_issue
danieldanielecki Jun 15, 2024
229ece0
ts err
cbvora Jun 16, 2024
d143f78
Merge pull request #27 from cbvora/typescriptIssue
danieldanielecki Jun 16, 2024
eda2f7e
ts thing
cbvora Jun 16, 2024
ac838b2
Merge pull request #28 from cbvora/typescriptIssue
cbvora Jun 16, 2024
2c7e65c
url search parama
cbvora Jun 16, 2024
b5b4598
Merge pull request #29 from cbvora/typescriptIssue
cbvora Jun 16, 2024
6be0cd7
making input as controlled compoenent
cbvora Jun 16, 2024
a33cf2e
Merge pull request #30 from cbvora/controlled_inuput
cbvora Jun 16, 2024
6595fc0
last course master -> main
danieldanielecki Jun 17, 2024
bcb4f48
chore: change debounce time
danieldanielecki Jun 22, 2024
59a2bec
chore: change debounce time
danieldanielecki Jun 22, 2024
b8f4ba7
sync with eduardo
danieldanielecki Aug 11, 2024
ad46de4
Merge branch 'eduardconstantin-main'
danieldanielecki Aug 11, 2024
3f1d77e
🚀 (package.json): bump version to 1.0.1 and update dependencies to l…
danieldanielecki Aug 11, 2024
ba5bd1a
🚀 (package.json): bump version to 1.0.1 and update dependencies to l…
danieldanielecki Aug 11, 2024
e8a8676
🐛 (components/Footer.tsx): fix inconsistent use of className and cla…
danieldanielecki Aug 12, 2024
50faf73
Merge branch 'main' of https://github.com/Ditectrev/Practice-Exams-Pl…
danieldanielecki Aug 12, 2024
2e4197b
💡 (components/Footer.tsx): update Footer component to include 'noope…
danieldanielecki Aug 12, 2024
b711182
💡 (components/Footer.tsx): update Footer component's social media li…
danieldanielecki Aug 12, 2024
6e540a2
🌐 (components/TopNav.tsx): Add responsive design for mobile menu and…
danieldanielecki Aug 12, 2024
f2df292
🚀 (package.json): bump version to 1.0.2 and update dependencies to l…
danieldanielecki Aug 12, 2024
6cf8925
Make the app Progressive Web Application (PWA) - closes #2
danieldanielecki Aug 14, 2024
8fff113
🚀 (package.json): bump version to 1.1.0 and update dependencies to l…
danieldanielecki Aug 14, 2024
f031ce1
feat: metadata-related improvements
danieldanielecki Aug 19, 2024
0b517c6
💡 (app/layout.tsx): add missing curly braces to the author object in…
danieldanielecki Aug 19, 2024
6ee3ec3
♻️ (app/layout.tsx): refactor metadataBase URL to use production dom…
danieldanielecki Aug 19, 2024
538756b
remove: duplicate metadata
danieldanielecki Aug 19, 2024
f48f182
fix: title text under logo on mobile devices
danieldanielecki Aug 19, 2024
314987a
fix: nextConfig withPWA warning/error
danieldanielecki Aug 19, 2024
cf491a5
💡 (app/layout.tsx): update title metadata to include platform name a…
danieldanielecki Aug 19, 2024
ee604b6
💡 (package.json): update package name and version to follow npm guid…
danieldanielecki Aug 19, 2024
3442151
🌐 (app/layout.tsx): add Google AdSense account meta tag for monetiza…
danieldanielecki Aug 28, 2024
dc667d6
💡 (components/Cookie.tsx): Add Google AdSense script to the Cookie c…
danieldanielecki Aug 29, 2024
345542a
🌐 (components/TopNav.tsx): refactor mobile menu to handle smaller sc…
danieldanielecki Sep 11, 2024
8293bdf
Add: Star History
danieldanielecki Sep 12, 2024
737ef61
fix issue on inaccurate exam score
georgetanyeah Sep 22, 2024
be976b8
📝 (app/layout.tsx): remove hardcoded Google AdSense account meta tag…
danieldanielecki Sep 29, 2024
9e65850
Merge branch 'main' of https://github.com/Ditectrev/Practice-Exams-Pl…
danieldanielecki Sep 29, 2024
e209c68
📝 (public/ads.txt): add Google AdSense ad code to the ads.txt file f…
danieldanielecki Sep 29, 2024
a586cac
Add: gitignore for Service Workers
danieldanielecki Sep 29, 2024
b81e5fe
📝 (app/ads.txt): add Google AdSense ad code to the app
danieldanielecki Sep 29, 2024
ea311a7
📝 (public/ads.txt): add Google AdSense ad code to the ads.txt file f…
danieldanielecki Sep 29, 2024
a162e69
Merge pull request #45 from zhuoyuT/zhuoyu-enhancement
danieldanielecki Oct 2, 2024
4afdab3
📝 (app/exam/page.tsx): update initial currentQuestionIndex state to …
danieldanielecki Oct 2, 2024
d781aca
revert back currentQuestionIndex
danieldanielecki Oct 3, 2024
46644c3
change countAnswered to currentQuestionIndex for displaying question no.
danieldanielecki Oct 3, 2024
7c03952
make it explicit how many questions are answered
danieldanielecki Oct 3, 2024
5ac85c3
Fix: centering page title while showcasing explicilty number of corre…
danieldanielecki Oct 4, 2024
48f7a4d
Delete public/ads.txt
danieldanielecki Oct 4, 2024
2d6481f
Create ads.txt
danieldanielecki Oct 17, 2024
4334d94
Merge branch 'main' of https://github.com/eduardconstantin/azure-clou…
danieldanielecki Dec 3, 2024
1da4f64
Merge pull request #47 from Ditectrev/eduardconstantin-main
danieldanielecki Dec 3, 2024
863e341
fix: differences between original fork after merge conflicts differences
danieldanielecki Dec 11, 2024
c3b9028
fix: not found text after using search with no results (closes #35)
danieldanielecki Jan 8, 2025
5d8f384
fix: resolve merge conflicts
danieldanielecki Jan 8, 2025
5e74278
fix: metadata title (closes #43)
danieldanielecki Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: Ditectrev
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
20 changes: 10 additions & 10 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
1. Go to `...`
2. Click on `....`
3. Scroll down to `....`
4. See error

**Expected behavior**
Expand All @@ -24,15 +24,15 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
- OS: `[e.g. iOS]`
- Browser: `[e.g. chrome, safari]`
- Version: `[e.g. 22]`

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
- Device: `[e.g. iPhone6]`
- OS: `[e.g. iOS8.1]`
- Browser: `[e.g. stock browser, safari]`
- Version: `[e.g. 22]`

**Additional context**
Add any other context about the problem here.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Please choose the PR Type and give as many details as possible about your PR.

Fixes #0000 <!-- link to issue if one exists -->

- [ ] I have read and agree to the [Code of Conduct](https://github.com/eduardconstantin/azure-fundamentals/blob/main/CODE_OF_CONDUCT.md), and have followed the [Contributing guidelines](https://github.com/eduardconstantin/azure-fundamentals/blob/main/CONTRIBUTING.md).
- [ ] I have read and agree to the [Code of Conduct](CODE_OF_CONDUCT.md), and have followed the [Contributing guidelines](CONTRIBUTING.md).

## Pull Request Type

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Node.js
Expand All @@ -28,7 +28,7 @@ jobs:
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_SKY_0509A9903 }}
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_PLANT_0E80E5803 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
Expand All @@ -51,5 +51,5 @@ jobs:
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_SKY_0509A9903 }}
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_PLANT_0E80E5803 }}
action: "close"
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/

**/public/workbox-*.js
**/public/sw.js
**/public/worker-*.js
**/public/sw.js.map
24 changes: 12 additions & 12 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand All @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
ibinceanu.eduard@yahoo.com.
contact@ditectrev.com.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing Guidelines

First off, thank you for considering contributing to Azure Cloud Exams.
First off, thank you for considering contributing to Practice Exams Platform.

It's people like you that make this project such a great tool.

Expand Down Expand Up @@ -51,15 +51,15 @@ Now clone the forked repository to your machine. Go to your GitHub account, open
Open a terminal and run the following git command:

```
git clone https://github.com/eduardconstantin/azure-cloud-exams.git
git clone https://github.com/Ditectrev/Practice-Exams-Platform.git
```

## Create a branch

Change to the repository directory on your computer (if you are not already there):

```
cd azure-cloud-exams
cd Practice-Exams-Platform
```

Make sure you are on the `dev` branch by running the command :
Expand Down
44 changes: 26 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
<h1 align="center">Azure Cloud Exams</h1>
<h1 align="center">🧪 Practice Exams Platform</h1>
<br />

<div align="center">
This is a web application built with Next.js, TypeScript, CosmosDB, GraphQL and TailwindCSS. The application is a quiz
that tests your knowledge of Azure fundamentals, specifically for the AZ-900 certification exam. The questions are
stored in a Cosmos DB database and retrieved using GraphQL queries. The application is deployed on Microsoft Azure.

This project was created for learning purposes to help me understand Microsoft Azure and CosmosDB in preparation for
the AZ-900 exam.

UPDATE: The project is now using this
[repo](https://github.com/Ditectrev/Microsoft-Azure-AZ-900-Microsoft-Azure-Fundamentals-Exam-Questions-Answers) as a
database, replacing Cosmos DB.

UPDATE2: The project has a new name to better fit it's purpose, now it has all azure exams from this [collection](https://github.com/Ditectrev?q=azure&type=all&language=&sort=)
IMPORTANT: do not delete commented out code related to CosmosDB. We might use it to store questions soon in the future instead of from the repositories. Additionally, for the same reason let's keep Azure deployment, with that, the usage of NoSQL (CosmosDB) database is practically ready after commenting out some lines of code.

</div>

Expand All @@ -23,19 +16,23 @@ UPDATE2: The project has a new name to better fit it's purpose, now it has all a
<div align="center">
<br />

[![Contributors](https://img.shields.io/github/contributors/eduardconstantin/azure-cloud-exams?style=flat-square)](https://github.com/eduardconstantin/azure-cloud-exams/graphs/contributors)
[![Issue](https://img.shields.io/github/issues/eduardconstantin/azure-cloud-exams?style=flat-square)](https://github.com/eduardconstantin/azure-cloud-exams/issues)
[![PRs](https://img.shields.io/github/issues-pr/eduardconstantin/azure-cloud-exams?style=flat-square)](https://github.com/eduardconstantin/azure-cloud-exams/pulls)
[![Contributors](https://img.shields.io/github/contributors/Ditectrev/Practice-Exams-Platform?style=flat-square)](../../graphs/contributors)
[![Issue](https://img.shields.io/github/issues/Ditectrev/Practice-Exams-Platform?style=flat-square)](../../issues)
[![PRs](https://img.shields.io/github/issues-pr/Ditectrev/Practice-Exams-Platform?style=flat-square)](../../pulls)
<br>
[![Project license](https://img.shields.io/github/license/eduardconstantin/azure-cloud-exams?style=flat-square)](LICENSE)
[![Stars](https://img.shields.io/github/stars/eduardconstantin/azure-cloud-exams?style=flat-square)](https://github.com/eduardconstantin/azure-cloud-exams/stargazers)
[![Project license](https://img.shields.io/github/license/Ditectrev/Practice-Exams-Platform?style=flat-square)](LICENSE)
[![Stars](https://img.shields.io/github/stars/Ditectrev/Practice-Exams-Platform?style=flat-square)](../../Practice-Exams-Platform/stargazers)

</div>

## Explanations

It's possible to have them generated using [Ollama](https://ollama.com). For installation please follow https://webinstall.dev/ollama/. Whether you want to generate explanations while running the platform on `localhost`, or on `education.ditectrev.com` it's possible. For the latter, please run `OLLAMA_ORIGINS="https://education.ditectrev.com" ollama serve` and refresh the https://education.ditectrev.com page. Facing `127.0.0.1:11434: bind: address already in use`? Fix it using https://github.com/ollama/ollama/issues/707.

## 🌟 Features

- Question sets scrapped from this
[repo](https://github.com/Ditectrev?q=azure&type=all&language=&sort=).
[repo](https://github.com/Ditectrev).
- Correct answer displayed for each question.
- Practice mode & Exam mode.

Expand All @@ -44,7 +41,7 @@ UPDATE2: The project has a new name to better fit it's purpose, now it has all a
Clone the repository:

```bash
git clone https://github.com/eduardconstantin/azure-cloud-exams.git
git clone https://github.com/Ditectrev/Practice-Exams-Platform.git
```

Install dependencies:
Expand All @@ -67,6 +64,17 @@ npm run dev

Open your browser and navigate to [http://localhost:3000](http://localhost:3000).


## Star History

<a href="https://star-history.com/#Ditectrev/Practice-Exams-Platform&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Ditectrev/Practice-Exams-Platform&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Ditectrev/Practice-Exams-Platform&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Ditectrev/Practice-Exams-Platform&type=Date" />
</picture>
</a>

## 👥 Contributing

I welcome feedback and contributions from other developers, which can help improve the quality of the code and the
Expand All @@ -75,10 +83,10 @@ application overall.
In order to create an issue or a pull request with your changes, please read
[our contribution guidelines](CONTRIBUTING.md), and thank you for being involved!

There is also a [Discussion tab](https://github.com/eduardconstantin/azure-cloud-exams/discussions)
There is also a [Discussion tab](../../discussions)

For a full list of all authors and contributors, see
[the contributors page](https://github.com/eduardconstantin/azure-cloud-exams/contributors).
[the contributors page](../../contributors).

## 📜 License

Expand Down
Binary file removed af.gif
Binary file not shown.
8 changes: 0 additions & 8 deletions app/exam/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import { ReactNode } from "react";
import { Metadata } from "next";

export const metadata: Metadata = {
title: "Azure Cloud Exams - Exam",
openGraph: {
title: "Azure Cloud Exams - Exam",
},
};

export default function ExamLayout({ children }: { children: ReactNode }) {
return <>{children}</>;
Expand Down
5 changes: 3 additions & 2 deletions app/exam/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Button } from "@azure-fundamentals/components/Button";
import QuizExamForm from "@azure-fundamentals/components/QuizExamFormUF";
import { Question } from "@azure-fundamentals/components/types";
import ExamResult from "@azure-fundamentals/components/ExamResult";
import LoadingIndicator from "@azure-fundamentals/components/LoadingIndicator";

const questionsQuery = gql`
query RandomQuestions($range: Int!, $link: String) {
Expand Down Expand Up @@ -86,7 +87,7 @@ const Exam: NextPage<{ searchParams: { url: string; name: string } }> = ({
setCurrentQuestion(data?.randomQuestions[0]);
}, [data]);

if (loading) return <p>Loading</p>;
if (loading) return <LoadingIndicator />;
if (error) return <p>Oh no... {error.message}</p>;

const numberOfQuestions = data.randomQuestions.length || 0;
Expand All @@ -96,7 +97,7 @@ const Exam: NextPage<{ searchParams: { url: string; name: string } }> = ({
<div>
<div className="px-2 sm:px-10 w-full flex flex-row justify-between items-center">
<p className="text-white font-bold text-sm sm:text-2xl">
{countAnswered}/{numberOfQuestions}
{countAnswered}/{numberOfQuestions}
</p>
<h1 className="text-white font-bold text-lg sm:text-3xl">
PRACTICE EXAM
Expand Down
Binary file modified app/favicon.ico
Binary file not shown.
Loading