Skip to content

Portfolio Website - A Laravel-based personal portfolio with HTML, CSS, JavaScript, jQuery, and Bootstrap frontend. This project showcases my skills as a Laravel developer by demonstrating integration of a responsive UI with a robust backend, emphasizing clean code and scalable architecture.

Notifications You must be signed in to change notification settings

Talha-74/talha_portfolio

Repository files navigation

Laravel Logo


Portfolio Project - Laravel Developer

This repository contains my Laravel portfolio project, which showcases my skills as a Laravel developer. As I build this project, I'm learning new techniques and concepts that I'll document here for future reference.

New Learnings

1. Adding Conditional Classes in Blade Templates

File: service.blade.php

@foreach ($services as $service)
    <div class="col-lg-4 {{ $loop->index > 2 ? 'mt-4' : '' }}">
        <div class="single-service">
            <h3 class="title wow fadeInRight" data-wow-delay="0.3s">{{ $service->name }}</h3>
            <div class="desc wow fadeInRight" data-wow-delay="0.4s">
                <p>{{ $service->description }}</p>
            </div>
        </div>
    </div>
@endforeach

What I Learned:

In this code, I learned how to use the {{ $loop->index > 2 ? 'mt-4' : '' }} logic inside Blade templates to conditionally apply CSS classes. Specifically, this adds a top margin (mt-4) to cards after the third card (index > 2). This is helpful for customizing layout behavior based on the loop index.

2. Adding Summernote Text Editor

Summernote Text Editor

I integrated the Summernote WYSIWYG editor into my project, which allows for rich text editing in forms. It supports a wide range of formatting options and media embedding, making it easy to style content directly within the application.

You can learn more about Summernote here.

3. Toastr Notifications

Toastr Notification form backend and on frontend.

4. Displaying PDF's and images on frontend

@if($about->resume ?? '')
    <div class="form-group row mb-4">
        <label class="col-form-label text-md-right col-12 col-md-3 col-lg-3">Previous Image/PDF</label>
        <div class="col-sm-12 col-md-7">
            @if (in_array(pathinfo($about->resume ?? '', PATHINFO_EXTENSION), ['jpg', 'jpeg', 'png', 'gif']))
                <img style="max-width: 330px; height: auto;" src="{{ asset($about->resume) }}" alt="">
            @elseif (pathinfo($about->resume ?? '', PATHINFO_EXTENSION) === 'pdf')
                <iframe src="{{ asset($about->resume) }}" style="width:100%; height:500px;" frameborder="0"></iframe>
            @else
                <p>Unsupported file type.</p>
            @endif
        </div>
    </div>
@endif

About

Portfolio Website - A Laravel-based personal portfolio with HTML, CSS, JavaScript, jQuery, and Bootstrap frontend. This project showcases my skills as a Laravel developer by demonstrating integration of a responsive UI with a robust backend, emphasizing clean code and scalable architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published