Service Introduction

Last updated


Lorem-ipsum company/service landing template with pink brand palette, alternating image-text blocks, service cards and a contact form; pure HTML/CSS.

Overview


ItemValue
Created2023-06-05
CategoryBusiness Examples
HTML filesindex.html
Sourcetarget/20230605

Preview


Service Introduction screenshot
Open the example in a new tab

Page Sections


SectionDescription
Fixed navBrand Pardn Ltd, 5 tab labels (Header, Section-1..4) and a hamburger button; the page loads no script.
HeaderBackground image with dark overlay and a white rounded card holding title, intro text and GitHub link.
Section 0Image plus two columns of text blocks; .col brand-colored boxes, .tablet / .mobile blocks shown or hidden by breakpoint, LinkedIn links.
Section 1Heading with mail link and brand box beside an image with caption, on a --col-brand-dark background.
Section 2Intro plus 4 service cards with Font Awesome icons (apple, laptop-code, server, code) and Mail buttons, on a blurred background-image band.
Section 3Image with bilingual self-introduction about iOS and full-stack web services and a contact mail button.
Section 4 (contact)Contact form (name, email, message textarea, submit; no handler) and info columns: contact icons, address map link, services list, platform link joball.tw; on a blurred background-image band.
FooterCopyright line.

Dependencies


NameVersionSource
Font Awesome Free6.5.2https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css
Noto Sans TC (font-family only, not loaded by the page)-none

Styling


ItemValue
SCSS entrysass/index.scss
Output CSScss/index.css
Partials_nav.scss, _header.scss, _footer.scss, _section-0.scss, _section-1.scss, _section-2.scss, _section-3.scss, _section-4.scss

index.scss holds reset and body>section backgrounds (nth-child 4 brand-dark; background image with blurred ::after overlay on nth-child 5 and 7, i.e. Section 2 and Section 4); each partial styles the matching section via [num] blocks. Color/width vars (--width-max, --col-brand, --col-brand-light, --col-brand-dark) are defined in an inline <style> in index.html, not in SCSS. The compiled CSS sets a header background-image that _header.scss does not contain.
  1. cd target/20230605
  2. npx sass sass/index.scss css/index.css --no-source-map || exit 1

Techniques


  • CSS custom properties declared in inline :root style for theming.
  • Responsive show/hide helper classes .mobile / .tablet at 640px; layout breakpoints 480px and 800px.
  • ::after overlay with backdrop-filter blur over background-image sections.
  • @media (hover: hover) and (pointer: fine) for card hover; fixed nav with mobile overlay styles for .show.

External Assets




中文