Personal portfolio of Mostafa Soliman Fadali — React Native & Android Developer. An editorial, soft Neo‑Brutalist one‑page site built with plain HTML5 + CSS3 + vanilla JavaScript ES Modules. No frameworks, no build step, no backend.
- Production: https://mostafafadali.me/
- GitHub Pages: https://mostafa-soliman.github.io/myPortfolio/
- Semantic HTML5, CSS3 with custom properties, and native ES Modules (
<script type="module">). - Zero dependencies and zero build tooling — the site runs as‑is from any static host (Live Server, GitHub Pages, Vercel, Netlify).
- CSS split by responsibility:
base(reset, tokens, typography, a11y),themes(colours),layout(page scaffolding),components(UI parts),responsive(breakpoints 360 → 1920px). - One concern per JavaScript module;
scripts/main.jsonly wires theinit*functions in dependency order.
- Self‑hosted variable woff2 in
webfonts/withfont-display: swap— no Google Fonts request. - Fraunces (display serif) + DM Sans (UI) for English, Cairo for Arabic.
- The Latin fonts are preloaded in
<head>; when the saved language is Arabic the pre‑paint script swaps in a Cairo preload.
- A tiny inline script in
<head>readslocalStorage(lang,theme) and sets<html lang dir data-theme>before first paint, so there is no flash of the wrong theme/language.
- Desktop (≥ 1024px): sticky header with logo, section links, and the Colors / Language / Theme controls.
- Mobile (< 1024px): fixed bottom bar with 5 icon+label items,
env(safe-area-inset-bottom)padding, active item filled with the accent colour, and extrabodypadding so content is never covered. - Scroll‑spy via
IntersectionObservermarks the current section in both bars (aria-current). - Smooth scrolling that automatically falls back to instant scrolling under
prefers-reduced-motion.
- Toggle button in the header; default is dark. Persisted in
localStorageundertheme. - The button label ("Light"/"Dark", "فاتح"/"داكن") and its
aria-labelupdate on every toggle and language change.
- A single accent scheme (Vermilion) in two modes, defined as CSS custom properties in
style/themes.css. - Every foreground/background pair is verified ≥ 4.5:1 (WCAG AA) by
tools/check-contrast.py(18 pairs).
- All visible strings live in
scripts/i18n/en.jsandscripts/i18n/ar.js; nothing is hardcoded in the markup (data-i,data-h,data-ph,data-alt,data-ariabindings). - Switching sets
dir="rtl"+lang="ar", persists underlang, and defaults from the browser language on first visit. - Layout uses CSS logical properties (
margin-inline,inset-inline-start, …) so RTL needs no extra rules; directional glyphs (.arr) auto‑mirror. - Technical terms (React Native, Expo, Kotlin, API…) intentionally stay in English inside the Arabic copy.
- Hero — availability tag, oversized name, role, lead, CV + contact CTAs, identity card with photo and key/value rows, and a 3‑stat strip.
- Marquee — infinite tech strip (paused under
prefers-reduced-motion). - About + Skills — short bio and a 4‑group skill grid (React Native, Native Android, Web, Tools).
- Experience — three dated roles as bordered rows.
- Projects — numbered accordion rendered from
scripts/data/projects.js(7 projects) witharia-expanded/aria-controls. - Contact — headline, social links (from
links.js) and the form. - Footer — © line with a dynamically filled year.
- Each project row toggles open/closed in place (only one open at a time), so focus and scroll position survive.
- Screenshots render inside CSS device frames (
loading="lazy", translatedalt); projects without screenshots simply show no gallery. - Lightbox: click a screenshot to zoom —
Escto close, ◀/▶ to navigate (arrow meaning flips in RTL), focus trapped inside the dialog, focus restored to the trigger on close, background scroll locked. - Projects marked
blur: true(TAMS) show softened screenshots plus a "pending client approval" note. - Store/website buttons render only when the project has that link.
- Fields: Name, Email, Subject, Message + hidden honeypot.
- Client‑side validation with messages in the active language (
aria-invalid+ per‑field error text). - Sends through EmailJS or Web3Forms (switchable in
scripts/data/config.js). - Loading state (spinner + disabled button), success/error status (
role="status"), and a 30‑second anti‑duplicate cooldown. - If the provider is unconfigured or a send fails, a "Send via email app" button appears and composes a
mailto:with everything the visitor typed.
- Skip link, semantic landmarks, visible focus rings, labelled controls,
aria-expandedaccordion, dialog semantics for the lightbox, keyboard operation everywhere. - Lighthouse: Accessibility 100 · Best Practices 100 · SEO 100.
- Title, meta description, canonical, Open Graph and Twitter cards (updated per language), JSON‑LD
Person,robots.txt,sitemap.xml.
myPortfolio/
├── index.html # single page: markup, pre-paint script, SEO tags
├── readme.md
├── robots.txt
├── sitemap.xml
├── .gitignore
├── assets/
│ ├── cv/ # Mostafa_Soliman_ReactNative_CV.pdf
│ ├── logo/ # favicon.svg (original sources gitignored)
│ ├── profile/ # photo.webp / photo.png (originals gitignored)
│ ├── projects/ # published WebP screenshots (30 files)
│ └── projects-original/ # full-res JPGs — NOT committed, not published
├── scripts/
│ ├── main.js # entry point: wires every module's init()
│ ├── data/
│ │ ├── config.js # contact provider + keys + feature flags
│ │ ├── links.js # GitHub / LinkedIn / WhatsApp / email / CV …
│ │ └── projects.js # the 7-project catalogue
│ ├── i18n/
│ │ ├── en.js # every English string
│ │ └── ar.js # every Arabic string
│ └── modules/
│ ├── i18n.js # language detect/persist + text binding
│ ├── theme.js # dark / light
│ ├── nav.js # scroll-spy + smooth scroll + CV link
│ ├── projects.js # accordion render/toggle
│ ├── gallery.js # device frames + lightbox
│ └── contact.js # validation, EmailJS/Web3Forms, cooldown, mailto
├── style/
│ ├── base.css # reset, fonts, tokens, typography, a11y helpers
│ ├── themes.css # dark + light colour tokens
│ ├── layout.css # page scaffolding, header, section grids, footer
│ ├── components.css # buttons, cards, projects, gallery, form, nav
│ └── responsive.css # 400 / 640 / 820 / 1023 / 1600 breakpoints
├── tools/
│ ├── convert-images.py # JPG → WebP converter
│ ├── check-contrast.py # WCAG AA audit of the colour tokens
│ └── responsive-test.html # iframe harness for 360/820/1024/1920
└── webfonts/ # Fraunces, DM Sans, Cairo (woff2, variable)
Any static server works (ES Modules need http://, not file://):
# VS Code: Live Server (right-click index.html → Open with Live Server)
# or Python
python -m http.server 8099
# or Node
npx serve .Open http://127.0.0.1:8099/index.html.
The form works without any setup (it falls back to the visitor's mail app), but to receive messages directly in your inbox:
-
Create an account — go to https://www.emailjs.com/ and sign up (free tier: 200 emails/month).
-
Add an email service — in Email Services, click Add New Service, choose Gmail, connect the Google account that should receive the messages (
m.fadaly52@gmail.com), and allow access. Copy the Service ID (e.g.service_abc123). -
Create a template — in Email Templates, Add New Template. Set:
-
Subject:
{{subject}} -
Content (example):
Name: {{from_name}} Email: {{from_email}} Reply-To: {{reply_to}} {{message}} -
Save and copy the Template ID (e.g.
template_xyz789).
-
-
Get your public key — in Account → General, copy the Public Key.
-
Fill in
scripts/data/config.js:provider: "emailjs", serviceId: "service_abc123", templateId: "template_xyz789", publicKey: "your_public_key",
-
Restrict the key — in Account → Security, add your domains (
mostafafadali.me,localhost,*.vercel.app,*.github.io) so nobody else can use your key. -
Test — deploy (or run locally with
localhostadded to the allowed domains), fill the form and press Send message. You should see "Message sent. Thank you!" and receive the email within a minute.
Web3Forms alternative: set provider: "web3forms" and put your access key from https://web3forms.com into web3formsKey.
Published images are WebP (max width 800px, quality 80). Sources stay in assets/projects-original/ which is gitignored:
pip install Pillow
python tools/convert-images.pyThe script converts every assets/projects-original/*.jpg|jpeg|png → assets/projects/<name>.webp and rebuilds assets/profile/photo.webp + photo.png from photo-original.png.
Equivalent one-off command (what the script does per file):
# resize to max 800px wide, save as WebP q80
python -c "from PIL import Image; im=Image.open('assets/projects-original/flod-1.jpg'); im=im.resize((800, round(im.height*800/im.width))) if im.width>800 else im; im.save('assets/projects/flod-1.webp','WEBP',quality=80,method=6)"After touching any value in style/themes.css:
python tools/check-contrast.py
# → All 18 pairs pass WCAG AA (>= 4.5:1).Open tools/responsive-test.html — it loads the site in 360 / 820 / 1024 / 1920px iframes side by side.
-
Drop the screenshots into
assets/projects-original/(e.g.myapp-1.jpg,myapp-2.jpg). -
Run
python tools/convert-images.py→ they appear asassets/projects/myapp-1.webp, … -
Add an entry to
scripts/data/projects.js:{ id: "myapp", title: "My App", // string or { en, ar } role: "React Native Developer", // string or { en, ar }, "" to hide description: { en: "…", ar: "…" }, tech: ["React Native", "Expo"], period: "Jan 2026 — Present", // "" to hide status: "live", // "live" | "dev" | "web" | "beta" | "" images: ["assets/projects/myapp-1.webp", "assets/projects/myapp-2.webp"], links: { appStore: "", playStore: "", site: "", repo: "" }, // empty = hidden blur: false, // true until the client approves },
Optional fields — absent = nothing renders:
type: "freelance", // extra badge key from the i18n dictionaries tagline: { en: "…", ar: "…" }, // one-line hook above the description details: { en: "…", ar: "…" }, // long description in the expanded body features: { // "Key features" bulleted list label: { en: "Key features:", ar: "…" }, items: { en: ["…"], ar: ["…"] }, }, platforms: "Android & iOS", // appended to the role · period line alt: { en: "… screenshot {n}", ar: "… لقطة شاشة {n}" }, // overrides the shared shotAlt wording
-
Done — the accordion row, gallery, lightbox, badges and buttons are generated automatically. Translated labels (
live,store,shotAlt, …) already exist in both dictionaries.
Removing/hiding a link: set its value to "" — the button disappears, nothing else changes.
git add .
git commit -m "feat: rebuild portfolio"
git push origin mainThen: Repository → Settings → Pages → Source: Deploy from a branch → main / (root) → Save.
The site will be live at https://<user>.github.io/myPortfolio/.
If the site loads without styling, the repo is served from a sub‑path — that is fine here because every asset URL is relative (
style/…,scripts/…,assets/…). Updatecanonical, Open Graph URLs andsitemap.xmlto the final domain.
npm i -g vercel
vercel # framework: Other, output dir: . , no build command
vercel --prodOr connect the GitHub repo in vercel.com/new with Framework Preset: Other and no build step. Add your custom domain under Settings → Domains and point DNS accordingly.
Implemented by Mostafa Soliman Fadali — React Native & Android Developer, Cairo, Egypt.
- GitHub: github.com/mostafa-soliman
- LinkedIn: linkedin.com/in/mostafa-soliman-fadali
- Email:
m.fadaly52@gmail.com