Skip to content

Commit acd4fa2

Browse files
[IMP] new name and remove parenthesis
1 parent 3c8f825 commit acd4fa2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

css/pokemon_styles.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ color: #000;
5050
.back-button {
5151
background-color: #ff0000;
5252
color: #ffffff;
53-
padding: 8px 16px;
53+
padding: 12px 24px;
5454
font-size: 16px;
5555
border: none;
5656
border-radius: 4px;
5757
cursor: pointer;
5858
margin-top: 16px;
5959
text-decoration: none;
60+
white-space: nowrap;
6061
}
6162
.back-button:hover {
6263
background-color: #cc0000;

main.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ function renderPokemonIndex(pokemons: Array<Pokemon>): string {
2525
<meta charset="UTF-8">
2626
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2727
<meta name="viewport" content="width=device-width, initial-scale=1.0">
28-
<title>Pokédex</title>
28+
<title>PokeQuickDex</title>
2929
<link rel="stylesheet" href="css/styles.css">
3030
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5418523060607609"
3131
crossorigin="anonymous"></script>
3232
<link rel="canonical" href="https://pokequickdex.vercel.app" />
3333
<script defer src="/_vercel/insights/script.js"></script>
3434
</head>
3535
<body>
36-
<h1>Pokédex</h1>
36+
<h1>Poke Quick Dex</h1>
3737
<div class="search-filter-container">
3838
<input type="text" id="search-input" class="search-input" placeholder="Search Pokémon..." />
3939
<select id="type-select" class="type-select">
@@ -162,7 +162,7 @@ function renderPokemonIndex(pokemons: Array<Pokemon>): string {
162162
<html>
163163
${head(pokemon.name)}
164164
<body>
165-
<h1>${pokemon.name.charAt(0).toUpperCase() + pokemon.name.slice(1)} <span class="pokemon-id">(#${String(pokemon.id).padStart(4, '0')})</span></h1>
165+
<h1>${pokemon.name.charAt(0).toUpperCase() + pokemon.name.slice(1)} <span class="pokemon-id">#${String(pokemon.id).padStart(4, '0')}</span></h1>
166166
<h2 class="section-title">Pokédex Description</h2>
167167
<p class="description">${pokemon.pokedexDescription}</p>
168168
<div class="pokemon-container">
@@ -255,7 +255,7 @@ function head(title: string): string {
255255
}
256256

257257
(async () => {
258-
const pokemons = await loadPokemons(50);
258+
const pokemons = await loadPokemons(1010);
259259
const indexHtml = renderPokemonIndex(pokemons);
260260
await writeFile("index.html", indexHtml);
261261

0 commit comments

Comments
 (0)