├── .browserslistrc ├── public ├── icon.ico ├── icon1.ico ├── favicon.ico └── index.html ├── src ├── imgs │ ├── R.jpg │ ├── RR.jpg │ ├── OIP.jpg │ ├── OIPP.jpg │ ├── RRR.jpg │ ├── OIPPP.jpg │ ├── not-found.jpg │ └── nature-images.jpg ├── assets │ └── logo.png ├── main.js ├── App.vue ├── router.js ├── pages │ ├── NotFound.vue │ ├── FormPage.vue │ ├── PhotoPage.vue │ └── MainPage.vue └── components │ ├── TheSpinner.vue │ └── TheForm.vue ├── babel.config.js ├── vue.config.js ├── .gitignore ├── jsconfig.json ├── .eslintrc.js ├── package.json └── README.md /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not dead 4 | not ie 11 5 | -------------------------------------------------------------------------------- /public/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/public/icon.ico -------------------------------------------------------------------------------- /src/imgs/R.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/src/imgs/R.jpg -------------------------------------------------------------------------------- /src/imgs/RR.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/src/imgs/RR.jpg -------------------------------------------------------------------------------- /public/icon1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/public/icon1.ico -------------------------------------------------------------------------------- /src/imgs/OIP.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/src/imgs/OIP.jpg -------------------------------------------------------------------------------- /src/imgs/OIPP.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/src/imgs/OIPP.jpg -------------------------------------------------------------------------------- /src/imgs/RRR.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/src/imgs/RRR.jpg -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /src/imgs/OIPPP.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/src/imgs/OIPPP.jpg -------------------------------------------------------------------------------- /src/imgs/not-found.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/src/imgs/not-found.jpg -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /src/imgs/nature-images.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asmaaadel0/Photo-Album/HEAD/src/imgs/nature-images.jpg -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | const { defineConfig } = require('@vue/cli-service') 2 | module.exports = defineConfig({ 3 | transpileDependencies: true 4 | }) 5 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue' 2 | import App from './App.vue' 3 | import router from './router.js'; 4 | 5 | const app = createApp(App); 6 | app.use(router); 7 | 8 | app.mount('#app'); -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | 6 | # local env files 7 | .env.local 8 | .env.*.local 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | pnpm-debug.log* 15 | 16 | # Editor directories and files 17 | .idea 18 | .vscode 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | *.sw? 24 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "esnext", 5 | "baseUrl": "./", 6 | "moduleResolution": "node", 7 | "paths": { 8 | "@/*": [ 9 | "src/*" 10 | ] 11 | }, 12 | "lib": [ 13 | "esnext", 14 | "dom", 15 | "dom.iterable", 16 | "scripthost" 17 | ] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 11 | 12 | 22 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | node: true 5 | }, 6 | 'extends': [ 7 | 'plugin:vue/vue3-essential', 8 | 'eslint:recommended' 9 | ], 10 | parserOptions: { 11 | parser: '@babel/eslint-parser' 12 | }, 13 | rules: { 14 | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 15 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "photo-album", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "lint": "vue-cli-service lint" 9 | }, 10 | "dependencies": { 11 | "core-js": "^3.8.3", 12 | "vue": "^3.2.13", 13 | "vue-router": "^4.1.6" 14 | }, 15 | "devDependencies": { 16 | "@babel/core": "^7.12.16", 17 | "@babel/eslint-parser": "^7.12.16", 18 | "@vue/cli-plugin-babel": "~5.0.0", 19 | "@vue/cli-plugin-eslint": "~5.0.0", 20 | "@vue/cli-service": "~5.0.0", 21 | "eslint": "^7.32.0", 22 | "eslint-plugin-vue": "^8.0.3" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/router.js: -------------------------------------------------------------------------------- 1 | import { createRouter, createWebHistory } from 'vue-router'; 2 | 3 | import FormPage from './pages/FormPage.vue'; 4 | import MainPage from './pages/MainPage.vue'; 5 | import NotFound from './pages/NotFound.vue'; 6 | 7 | import PhotoPage from './pages/PhotoPage.vue'; 8 | 9 | const router = createRouter({ 10 | history: createWebHistory(), 11 | routes: [ 12 | { path: '/', redirect: '/main' }, 13 | { 14 | path: '/main', 15 | component: MainPage, 16 | }, 17 | { path: '/form', component: FormPage }, 18 | { path: '/photo/:category/:id/', component: PhotoPage }, 19 | { path: '/:notFound(.*)', component: NotFound }, 20 | ], 21 | }); 22 | 23 | export default router; -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Album 12 | 13 | 14 | 15 | 16 | 20 |
21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/pages/NotFound.vue: -------------------------------------------------------------------------------- 1 | 19 | 22 | 55 | -------------------------------------------------------------------------------- /src/pages/FormPage.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 60 | 61 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 📝 Table of Contents 2 | 3 | - [About ](#about-) 4 | - [Website link ](#website-link-) 5 | - [Screen Video ](#screen-video-) 6 | - [Project setup ](#project-setup-) 7 | - [Compiles and hot-reloads for development ](#compiles-and-hot-reloads-for-development-) 8 | - [Contributors ](#contributors-) 9 | 10 | ## About 11 | - Simple photo gallery to Upload your media images and store them with description and then you will be able to search images by categories, I use firebase to store data, add some animation for the website, and there is a spinner when the data are loading . I implement the website using Vue js, and deploy it using vercel. 12 | - I add some validation to the input when anyone try to add new image: 13 | - If category already exists, you cann't create new one with same name. 14 | - you cann't submit the form without description, category, or upload image 15 | - you can choose existing category or create new one with different name. 16 | 17 | ## Website link 18 | - https://photo-album-one.vercel.app/ 19 | 20 | ## Screen Video: 21 | 22 | https://user-images.githubusercontent.com/88618793/233878410-50f7a040-f6a0-43d0-b2f4-3af824857f0f.mp4 23 | 24 | 25 | ## Project setup 26 | - npm install 27 | 28 | ## Compiles and hot-reloads for development 29 | - npm run serve 30 | 31 | ## Contributors 32 | 33 | 34 | 35 | 42 |
36 | 37 | Asmaa Adel 38 |
39 | Asmaa Adel
40 | 41 |
43 | -------------------------------------------------------------------------------- /src/components/TheSpinner.vue: -------------------------------------------------------------------------------- 1 | 15 | 101 | -------------------------------------------------------------------------------- /src/pages/PhotoPage.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | 93 | 94 | -------------------------------------------------------------------------------- /src/components/TheForm.vue: -------------------------------------------------------------------------------- 1 | 59 | 179 | 180 | 181 | -------------------------------------------------------------------------------- /src/pages/MainPage.vue: -------------------------------------------------------------------------------- 1 | 88 | 89 | 192 | 193 | --------------------------------------------------------------------------------