-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from openzim/add_pinia
Cleanup JS code and add header toolbar
- Loading branch information
Showing
23 changed files
with
464 additions
and
232 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
Empty file.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
autoprefixer: {} | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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,68 @@ | ||
<script setup lang="ts"> | ||
import dead_kiwix from '../assets/dead_kiwix.png' | ||
</script> | ||
|
||
<template> | ||
<div class="page"> | ||
<div class="container"> | ||
<div class="content"> | ||
<p class="text"><slot></slot></p> | ||
</div> | ||
<div class="image-container"> | ||
<img :src="dead_kiwix" class="image" alt="error image" /> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.page { | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
padding: 40px; | ||
text-align: center; | ||
} | ||
.container { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
gap: 40px; | ||
margin: 60px 0; | ||
background: white; | ||
border-radius: 10px; | ||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); | ||
padding: 40px; | ||
} | ||
.content { | ||
flex: 1; | ||
text-align: left; | ||
} | ||
.text { | ||
color: #222; | ||
margin: 10px 0; | ||
max-width: 500px; | ||
line-height: 1.6; | ||
font-size: 18px; | ||
} | ||
.image-container { | ||
flex: 1; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
@media (max-width: 768px) { | ||
.container { | ||
flex-direction: column; | ||
text-align: center; | ||
} | ||
.text { | ||
margin: 20px auto; | ||
font-size: 16px; | ||
} | ||
.image { | ||
width: 300px; | ||
} | ||
} | ||
</style> |
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,47 @@ | ||
<script setup lang="ts"> | ||
import { onMounted } from 'vue' | ||
import { useMainStore } from '@/stores/main' | ||
import headerLogo from '@/assets/freecodecamp-header.svg' | ||
// Fetch the home data | ||
const main = useMainStore() | ||
onMounted(async () => { | ||
try { | ||
await main.fetchLocales() | ||
} catch { | ||
main.setErrorMessage('An unexpected error occured.') | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="header-bar"> | ||
<div id="logo"> | ||
<router-link to="/"> | ||
<img id="logo" :src="headerLogo" alt="freeCodeCamp" class="logo" width="auto" height="70" /> | ||
</router-link> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.header-bar { | ||
background-color: #0a0a23; | ||
} | ||
#logo { | ||
display: flex; | ||
justify-content: center; | ||
padding: 0.25rem; | ||
} | ||
a:after { | ||
content: none; | ||
} | ||
@media print { | ||
.header-bar { | ||
display: none; | ||
} | ||
} | ||
</style> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// list of challenge types supported by current ZIM Vue.JS UI (other do not render | ||
// properly because we do not yet implemented how to process/render the Markdown) | ||
export const supportedChallengeTypes = ['1', '4', '5'] |
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.