Giter VIP home page Giter VIP logo

photographerwebsite's Introduction

  • 👋 Hi, I’m @valeriiSkliar
  • 👀 I’m interested in backEnd & FrontEnd DEV on JavaScript or PHP.
  • 🌱 I’m currently using in my wor ( React, Next.js, Laravel ).
  • 💞️ I’m looking to collaborate
  • 📫 How to reach me:
  • tel. +380 97 395 7009 (telegram, viber, whatsapp);
  • email. [email protected]

photographerwebsite's People

Contributors

semklim avatar valeriiskliar avatar yuriystarov avatar

Watchers

 avatar

photographerwebsite's Issues

web.php bad code

Need to fix problem that is fire when make first migration and seed in database.

Code:

$pages = Page::all();

foreach ($pages as $page) {
    Route::get($page->slug, [IndexController::class, 'index'])->name('page.' . $page->slug);
}

Part that has a problem on screenshot:
image

broken generateListOfFiles.js

Creates a bundle with files that shouldn't be there.

  1. Does not know how to work with the following imports:
import {readFile} from 'fs/promises';

import {defaultDirJs, defaultFilePathJs} from "../env.js";

import "../../../env.js";

import {
    loadAddComponentInterface,
    submitComponentForm,
    addDetailFields,
    clearFormContainer,
    initialListenersTbody,
    submitForm,
    addMetaTagRow,

} from './functions.js'
  1. Does not check each file for imports. Check only app.js

refactor contact migration

The website owner should be able to add a new contact field and add an image for social links.

  • make a migration refactor
  • add a field type. for example (links and contact info).
  • add the ability to add images for links to social media pages.
  • redesign the contact information form in the admin panel for the new migration.
  • add ability to add new contact information from admin.

add contacts to admin

  • Create controller for routs
  • add requests validation
  • add interface for change data in admin panel
  • make it visible for footer

UI admin Authorization

Не входить до адмінкі, хоч логін та пароль вірні. Також необхідно змінити колір тексту у полях форми на темний.

page Work

  • make landing of the page
  • the form need validation

remake edit album

  • add all photos to page
  • make avalaible to edit image from this page
  • after updating image must redirect to editing album
  • after adding new image to album, it must show new images in album
  • fix edit image page
  • add lazyload for all images
  • add spinner on loading
  • add aspect-ratio scss rules

page Contact

  • make landing of the page
  • the form need validation
  • animation for background image

fix footer

  • use css variable to set height or somthing else that can changes
  • make adaptation of footer for different devices.
  • fonts in name author are to big

refactor interface for page->component creating/editing

  1. add spiner diuaring component edit form loading
  2. refactor connected album in component edit form

to refactor:

  1. переміщення компоненту має бути доступним тільки в одній зоні плашки компоненту. (наприклад там де значок стрілочки в 4-тири сторони)
  2. коли наводиш на зону переносу, палшка може збільшуватися тіршки( scale(1.2) ).
  3. коли наводиш просто на плашку, вона підсвічується або якимось іншим чином дає понять, що при клікі можна буде редагувати наповнення компоненту

adaptation page Main

  • Change navbar menu to hamburger menu on screen size < 900 px.
  • Make adaptation for swiper
  • section page_thumbsnail

page Portfolio

  • make landing of the page
  • add swiper
  • add navigation for swiper
  • feed the page by data from admin panel

add 'LogOut' button

  • add the ability to log out of your account.
  • after logging out of your account, be redirected index page

The path is not processed

@valeriiSkliar, issue #45.

$databaseName = config('database.connections.mysql.database');
//Route::get('/', [IndexController::class, 'index'])->name('index.page');
Route::get('language/{locale}', function ($locale) {
app()->setLocale($locale);
session()->put('locale', $locale);
return redirect()->back();
});
try {
$connection = DB::connection()->getPdo();
$databaseExists = DB::select("SHOW DATABASES LIKE '$databaseName'");
if ($databaseExists) {
DB::statement("USE `$databaseName`");
if (Schema::hasTable('pages')) {
$pages = Page::all();
foreach ($pages as $page) {
Route::get($page->slug, [IndexController::class, 'index'])->name('page.' . $page->slug);
Route::get($page->slug. '/de', [IndexController::class, 'index'])->name('de.page.' . $page->slug);
}
}
}
} catch (Exception $e) {
// dd($e);
}

Ми робили ось так, і воно працює:

routes/web.php


Route::group(['prefix' => 'de'], function () {

    $databaseName = config('database.connections.mysql.database');
    Route::get('/', [IndexController::class, 'index'])->name('index.page');

//    Route::get('language/{locale}', function ($locale) {
//        app()->setLocale($locale);
//        session()->put('locale', $locale);
//        return redirect()->back();
//    });

    try {
        $connection = DB::connection()->getPdo();
        $databaseExists = DB::select("SHOW DATABASES LIKE '$databaseName'");

        if ($databaseExists) {
            DB::statement("USE `$databaseName`");

            if (Schema::hasTable('pages')) {
                $pages = Page::all();
                foreach ($pages as $page) {
                    Route::get($page->slug, [IndexController::class, 'index'])->name('page.' . $page->slug);
//                Route::get($page->slug. '/de', [IndexController::class, 'index'])->name('de.page.' . $page->slug);
                }
            }
        }

    } catch (Exception $e) {
//    dd($e);
    }
});

app/Http/Controllers/IndexController.php

class IndexController extends Controller
{
    public function index(Request $request)
    {
        $pageSlug = $request->route()->uri;

     // dd($request);

        $hasDePrefix = Str::endsWith($pageSlug, 'de');

        if ($hasDePrefix) {
            app()->setLocale('de');
            $pageSlug = Str::replaceFirst('de', '', $pageSlug);
        }

        if ($pageSlug == '/' || $pageSlug == '' ) {
            $pageSlug = 'main';
        }

        $page = Page::with(['components' => function ($query) {
            $query->orderBy('order');
        }, 'components.album.images','components.details.translations',])
            ->where('slug', $pageSlug)
            ->first();
        if (!$page) {
            abort(404);
        }
        $meta_tags = MetaTags::where('page_id', '=', $page->id)->get();

        return view($pageSlug, compact('page', 'meta_tags'));
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.