Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ vue-i18n-locales.generated.js
/.phpunit.result.cache
vite.config.js
.DS_Store
resources/excel/example.xlsx
60 changes: 60 additions & 0 deletions app/Http/Controllers/ContactFormController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Http;

class ContactFormController extends Controller
{
public function submit(Request $request)
{
$validated = $request->validate([
'first_name' => 'required|string|max:255',
'last_name' => 'required|string|max:255',
'email' => 'required|email|max:255',
'phone' => 'nullable|string|max:50',
'subject' => 'required|string',
'message' => 'required|string',
'terms' => 'accepted',
'cf-turnstile-response' => env('TURNSTILE_SECRET_KEY') ? 'required' : 'nullable',
]);

// Validate Turnstile CAPTCHA if keys are present
if (env('TURNSTILE_SECRET_KEY')) {
$response = Http::asForm()->post('https://challenges.cloudflare.com/turnstile/v0/siteverify', [
'secret' => env('TURNSTILE_SECRET_KEY'),
'response' => $request->input('cf-turnstile-response'),
'remoteip' => $request->ip(),
]);

if (!$response->json('success')) {
return redirect()->back()
->withInput()
->withErrors(['captcha' => 'CAPTCHA verification failed. Please try again.']);
}
}

Log::info('Contact form submitted', $validated);

$locale = app()->getLocale();
$view = "emails.$locale.contact";

// Fallback to English view if the localized one doesn't exist
if (!view()->exists($view)) {
$view = 'emails.en.contact';
}

// Use email from .env, fallback to your address if missing
$recipientEmail = env('CONTACT_FORM_RECIPIENT_EMAIL', 'bernard@matrixinternet.ie');

Mail::send($view, ['data' => $validated], function ($message) use ($validated, $recipientEmail) {
$message->to($recipientEmail)
->subject('New Contact Form Submission')
->replyTo($validated['email'], $validated['first_name'] . ' ' . $validated['last_name']);
});

return redirect()->back()->with('success', 'Thank you for contacting us.');
}
}
235 changes: 235 additions & 0 deletions public/build/assets/app-BxQC0WBq.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/build/assets/app-D86EQi0A.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/build/assets/app-DOBz38V5.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"resources/assets/sass/app.scss": {
"file": "assets/app-DaRk7sSd.css",
"file": "assets/app-D86EQi0A.css",
"src": "resources/assets/sass/app.scss",
"isEntry": true
},
"resources/css/app.css": {
"file": "assets/app-DjbcPPgg.css",
"file": "assets/app-DOBz38V5.css",
"src": "resources/css/app.css",
"isEntry": true
},
"resources/js/app.js": {
"file": "assets/app-CJh7_Din.js",
"file": "assets/app-BxQC0WBq.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true,
Expand Down
Binary file added public/images/about/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/about/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/about/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/contact-us.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions public/images/eulogofunded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/get-involved-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/get-involved-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/get-involved-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/get-involved-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/get-involved-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/get-involved.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/hackathons/get-involved-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/sponsors/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/toolkits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/values/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/values/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/values/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/values/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/values/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/values/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/values/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 94 additions & 0 deletions resources/latex/3tRVRViuDv-3.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
\documentclass[12pt]{article}

% Use Latin encoding (T1) as default, then LGR for Greek
\usepackage[T1,LGR,T2A]{fontenc}
\usepackage[utf8]{inputenc}

% Set English as main language
\usepackage[english,greek,russian]{babel}

\usepackage[landscape,a4paper]{geometry}
\geometry{verbose,tmargin=0cm,bmargin=0cm,lmargin=3cm,rmargin=3cm}

\usepackage{fancybox}
\usepackage{calc}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{url}
\usepackage{eso-pic}
\usepackage{textcomp}
\usepackage{tgheros} % TeX Gyre Heros font
\renewcommand{\familydefault}{\sfdefault}

\usepackage{xcolor}
\definecolor{myorange}{RGB}{226, 83, 48}
\definecolor{Slate600}{HTML}{20262C}
\definecolor{GrayLine}{HTML}{858B91}

% Background certificate image
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{images/participation-certificate-2025.png}%
\vfill
}}}

\begin{document}

\AddToShipoutPicture{\BackgroundPic}

~
\vspace{3.5cm}
~

\begin{center}

\vspace{1cm}

\textcolor{Slate600}{\fontsize{13}{13}\selectfont This certificate recognizes that} \\

\vspace{0.5cm}

% Certificate holder name in Greek
\begin{otherlanguage*}{greek}
\textcolor{myorange}{\fontsize{28}{32}\selectfont οκιμές οκιμές οκιμέ}
\end{otherlanguage*} \\

\vspace{0.5cm}

\textcolor{Slate600}{\fontsize{13}{13}\selectfont Has developed essential computational thinking skills} \\
\textcolor{Slate600}{\fontsize{13}{13}\selectfont and contributed to the success of} \\

\vspace{0.8cm}

\textcolor{myorange}{\fontsize{36}{42}\selectfont EU CodeWeek 2025} \\

\vspace{0.8cm}

\textcolor{Slate600}{\fontsize{13}{13}\selectfont by actively participating in the coding event} \\

\vspace{0.5cm}

% Event title: no forced language so Greek or English works
\textcolor{myorange}{\fontsize{28}{32}\selectfont TEST TEST434343343443343434} \\

\vspace{0.5cm}

\textcolor{Slate600}{\fontsize{13}{13}\selectfont Which took place on} \\

\vspace{0.5cm}

% Event date in Greek
\begin{otherlanguage*}{greek}
\textcolor{Slate600}{\fontsize{24}{28}\selectfont 20/12/25}
\end{otherlanguage*} \\

\vspace{0.3cm}
\centering
\textcolor{GrayLine}{\rule{183pt}{2pt}}

\end{center}

\end{document}
94 changes: 94 additions & 0 deletions resources/latex/j4aijZh2i8-3.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
\documentclass[12pt]{article}

% Use Latin encoding (T1) as default, then LGR for Greek
\usepackage[T1,LGR,T2A]{fontenc}
\usepackage[utf8]{inputenc}

% Set English as main language
\usepackage[english,greek,russian]{babel}

\usepackage[landscape,a4paper]{geometry}
\geometry{verbose,tmargin=0cm,bmargin=0cm,lmargin=3cm,rmargin=3cm}

\usepackage{fancybox}
\usepackage{calc}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{url}
\usepackage{eso-pic}
\usepackage{textcomp}
\usepackage{tgheros} % TeX Gyre Heros font
\renewcommand{\familydefault}{\sfdefault}

\usepackage{xcolor}
\definecolor{myorange}{RGB}{226, 83, 48}
\definecolor{Slate600}{HTML}{20262C}
\definecolor{GrayLine}{HTML}{858B91}

% Background certificate image
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{images/participation-certificate-2025.png}%
\vfill
}}}

\begin{document}

\AddToShipoutPicture{\BackgroundPic}

~
\vspace{3.5cm}
~

\begin{center}

\vspace{1cm}

\textcolor{Slate600}{\fontsize{13}{13}\selectfont This certificate recognizes that} \\

\vspace{0.5cm}

% Certificate holder name in Greek
\begin{otherlanguage*}{greek}
\textcolor{myorange}{\fontsize{28}{32}\selectfont οκιμές οκιμές οκιμέ}
\end{otherlanguage*} \\

\vspace{0.5cm}

\textcolor{Slate600}{\fontsize{13}{13}\selectfont Has developed essential computational thinking skills} \\
\textcolor{Slate600}{\fontsize{13}{13}\selectfont and contributed to the success of} \\

\vspace{0.8cm}

\textcolor{myorange}{\fontsize{36}{42}\selectfont EU CodeWeek 2025} \\

\vspace{0.8cm}

\textcolor{Slate600}{\fontsize{13}{13}\selectfont by actively participating in the coding event} \\

\vspace{0.5cm}

% Event title: no forced language so Greek or English works
\textcolor{myorange}{\fontsize{28}{32}\selectfont TEST TEST434343343443343434} \\

\vspace{0.5cm}

\textcolor{Slate600}{\fontsize{13}{13}\selectfont Which took place on} \\

\vspace{0.5cm}

% Event date in Greek
\begin{otherlanguage*}{greek}
\textcolor{Slate600}{\fontsize{24}{28}\selectfont 20/12/25}
\end{otherlanguage*} \\

\vspace{0.3cm}
\centering
\textcolor{GrayLine}{\rule{183pt}{2pt}}

\end{center}

\end{document}
8 changes: 8 additions & 0 deletions resources/latex/missfont.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mktextfm larm3583
mktextfm nullfont
mktextfm larm2986
mktextfm nullfont
mktextfm larm3583
mktextfm nullfont
mktextfm larm2986
mktextfm nullfont
13 changes: 13 additions & 0 deletions resources/views/emails/en/contact.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<h2>New Contact Form Submission</h2>

<p><strong>First Name:</strong> {{ $data['first_name'] }}</p>
<p><strong>Last Name:</strong> {{ $data['last_name'] }}</p>
<p><strong>Email:</strong> {{ $data['email'] }}</p>
@if (!empty($data['phone']))
<p><strong>Phone:</strong> {{ $data['phone'] }}</p>
@endif
@if (!empty($data['subject']))
<p><strong>Subject:</strong> {{ ucfirst($data['subject']) }}</p>
@endif
<p><strong>Message:</strong></p>
<p>{{ nl2br(e($data['message'])) }}</p>
Loading