Add Grubflip marketing site and WordPress theme

Static landing page (index.html) currently live at grubflip.com, plus
full WordPress theme under wp-theme/grubflip/ with:
- Hero section, how-it-works, benefits, early access signup form
- Custom post type for storing waitlist signups via AJAX
- WP admin columns for managing signups
- Template parts for maintainability
- Responsive design with Inter font, dark theme, orange accents

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jude 2026-03-26 05:57:50 +00:00
commit 70e0ac1c7b
23 changed files with 1344 additions and 0 deletions

15
.gitignore vendored Normal file
View file

@ -0,0 +1,15 @@
# OS
.DS_Store
Thumbs.db
# Editor
*.swp
*.swo
*~
.idea/
.vscode/
# WordPress
wp-config.php
wp-content/uploads/
wp-content/upgrade/

BIN
android-chrome-192x192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
android-chrome-512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

473
index.html Normal file
View file

@ -0,0 +1,473 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grubflip — Swap Employee Discounts with Nearby Restaurant Workers</title>
<meta name="description" content="Grubflip lets restaurant employees share their employee food discounts with each other. Stop eating where you work — flip your grub!">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--orange: #FF6B35;
--orange-dark: #E55A2B;
--dark: #1A1A2E;
--darker: #0F0F1A;
--gray: #8892A0;
--light: #F5F5F7;
--white: #FFFFFF;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--darker);
color: var(--light);
line-height: 1.6;
overflow-x: hidden;
}
/* Nav */
nav {
position: fixed;
top: 0;
width: 100%;
padding: 1.25rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
background: rgba(15, 15, 26, 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}
.nav-logo {
display: flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
}
.nav-logo img {
width: 40px;
height: 40px;
border-radius: 10px;
}
.nav-logo span {
font-size: 1.5rem;
font-weight: 800;
color: var(--white);
letter-spacing: -0.5px;
}
.nav-cta {
background: var(--orange);
color: var(--white);
padding: 0.6rem 1.5rem;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
font-size: 0.9rem;
transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover {
background: var(--orange-dark);
transform: translateY(-1px);
}
/* Hero */
.hero {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 8rem 2rem 4rem;
position: relative;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
pointer-events: none;
}
.hero-badge {
display: inline-block;
background: rgba(255, 107, 53, 0.15);
color: var(--orange);
padding: 0.5rem 1.25rem;
border-radius: 50px;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 2rem;
border: 1px solid rgba(255, 107, 53, 0.25);
}
.hero h1 {
font-size: clamp(2.5rem, 6vw, 4.5rem);
font-weight: 800;
line-height: 1.1;
max-width: 800px;
margin-bottom: 1.5rem;
letter-spacing: -1.5px;
}
.hero h1 .highlight {
color: var(--orange);
}
.hero p {
font-size: 1.2rem;
color: var(--gray);
max-width: 550px;
margin-bottom: 2.5rem;
}
.hero-cta {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: var(--orange);
color: var(--white);
padding: 1rem 2.5rem;
border-radius: 50px;
text-decoration: none;
font-weight: 700;
font-size: 1.1rem;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}
.hero-cta:hover {
background: var(--orange-dark);
transform: translateY(-2px);
box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}
/* How It Works */
.how-it-works {
padding: 6rem 2rem;
max-width: 1100px;
margin: 0 auto;
}
.section-title {
text-align: center;
font-size: 2.25rem;
font-weight: 800;
margin-bottom: 1rem;
letter-spacing: -0.5px;
}
.section-subtitle {
text-align: center;
color: var(--gray);
font-size: 1.1rem;
margin-bottom: 4rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.step {
background: rgba(26, 26, 46, 0.6);
border: 1px solid rgba(255, 107, 53, 0.1);
border-radius: 20px;
padding: 2.5rem 2rem;
text-align: center;
transition: border-color 0.3s, transform 0.3s;
}
.step:hover {
border-color: rgba(255, 107, 53, 0.3);
transform: translateY(-4px);
}
.step-icon {
font-size: 2.5rem;
margin-bottom: 1.25rem;
}
.step h3 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.75rem;
}
.step p {
color: var(--gray);
font-size: 0.95rem;
}
/* Benefits */
.benefits {
padding: 4rem 2rem 6rem;
max-width: 900px;
margin: 0 auto;
text-align: center;
}
.benefit-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.5rem;
margin-top: 3rem;
}
.benefit {
padding: 2rem 1.5rem;
background: rgba(26, 26, 46, 0.4);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.benefit h4 {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--orange);
}
.benefit p {
font-size: 0.9rem;
color: var(--gray);
}
/* CTA Section */
.cta-section {
padding: 6rem 2rem;
text-align: center;
position: relative;
}
.cta-section::before {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 500px;
height: 400px;
background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
pointer-events: none;
}
.cta-section h2 {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 1rem;
letter-spacing: -0.5px;
}
.cta-section p {
color: var(--gray);
font-size: 1.1rem;
margin-bottom: 2rem;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}
/* Email form */
.signup-form {
display: flex;
gap: 0.75rem;
justify-content: center;
flex-wrap: wrap;
max-width: 500px;
margin: 0 auto;
}
.signup-form input[type="email"] {
flex: 1;
min-width: 250px;
padding: 0.9rem 1.25rem;
border-radius: 50px;
border: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(26, 26, 46, 0.8);
color: var(--white);
font-size: 1rem;
font-family: 'Inter', sans-serif;
outline: none;
transition: border-color 0.3s;
}
.signup-form input[type="email"]::placeholder {
color: var(--gray);
}
.signup-form input[type="email"]:focus {
border-color: var(--orange);
}
.signup-form button {
background: var(--orange);
color: var(--white);
border: none;
padding: 0.9rem 2rem;
border-radius: 50px;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
font-family: 'Inter', sans-serif;
transition: background 0.3s, transform 0.2s;
}
.signup-form button:hover {
background: var(--orange-dark);
transform: translateY(-1px);
}
.form-note {
color: var(--gray);
font-size: 0.8rem;
margin-top: 1rem;
}
.form-success {
display: none;
color: var(--orange);
font-weight: 600;
font-size: 1.1rem;
margin-top: 1rem;
}
/* Footer */
footer {
padding: 3rem 2rem;
text-align: center;
border-top: 1px solid rgba(255, 255, 255, 0.05);
color: var(--gray);
font-size: 0.85rem;
}
footer a {
color: var(--orange);
text-decoration: none;
}
/* Mobile */
@media (max-width: 600px) {
nav { padding: 1rem 1.25rem; }
.nav-logo span { font-size: 1.25rem; }
.hero { padding: 7rem 1.5rem 3rem; }
.hero p { font-size: 1.05rem; }
.how-it-works, .benefits, .cta-section { padding-left: 1.25rem; padding-right: 1.25rem; }
.signup-form input[type="email"] { min-width: 100%; }
}
</style>
</head>
<body>
<nav>
<a class="nav-logo" href="/">
<img src="/logo.png" alt="Grubflip">
<span>Grubflip</span>
</a>
<a class="nav-cta" href="#signup">Get Early Access</a>
</nav>
<section class="hero">
<span class="hero-badge">Coming Soon</span>
<h1>Stop eating where you <span class="highlight">work.</span></h1>
<p>Grubflip lets restaurant employees swap their food discounts with workers at nearby spots. New food, same savings.</p>
<a class="hero-cta" href="#signup">Join the Waitlist &rarr;</a>
</section>
<section class="how-it-works">
<h2 class="section-title">How It Works</h2>
<p class="section-subtitle">Three steps to start flipping your grub.</p>
<div class="steps">
<div class="step">
<div class="step-icon">&#x1F4F2;</div>
<h3>Sign Up</h3>
<p>Create your profile and verify where you work. It takes 30 seconds.</p>
</div>
<div class="step">
<div class="step-icon">&#x1F91D;</div>
<h3>Connect</h3>
<p>Browse nearby restaurant workers who want to swap discounts with you.</p>
</div>
<div class="step">
<div class="step-icon">&#x1F355;</div>
<h3>Flip Your Grub</h3>
<p>Use their discount, they use yours. Everybody eats something different for less.</p>
</div>
</div>
</section>
<section class="benefits">
<h2 class="section-title">Why Grubflip?</h2>
<p class="section-subtitle">Built by restaurant people, for restaurant people.</p>
<div class="benefit-grid">
<div class="benefit">
<h4>Save Money</h4>
<p>Employee discounts at places you actually want to eat. No more paying full price.</p>
</div>
<div class="benefit">
<h4>New Food Daily</h4>
<p>Tired of eating the same menu every shift? Try something new from down the block.</p>
</div>
<div class="benefit">
<h4>Meet Your Neighbors</h4>
<p>Connect with other restaurant workers in your area. Build your local food network.</p>
</div>
<div class="benefit">
<h4>100% Free</h4>
<p>Grubflip is free for restaurant employees. No fees, no catch.</p>
</div>
</div>
</section>
<section class="cta-section" id="signup">
<h2>Ready to Flip?</h2>
<p>Sign up for early access and be first in line when we launch in your area.</p>
<form class="signup-form" id="signupForm">
<input type="email" placeholder="Enter your email" required>
<button type="submit">Join Waitlist</button>
</form>
<p class="form-note">No spam. Just a heads-up when we launch.</p>
<p class="form-success" id="formSuccess">You're on the list! We'll be in touch soon.</p>
</section>
<footer>
<p>&copy; 2026 Grubflip. A <a href="https://www.payfrit.com">Payfrit</a> product. All rights reserved.</p>
</footer>
<script>
document.getElementById('signupForm').addEventListener('submit', function(e) {
e.preventDefault();
var email = this.querySelector('input[type="email"]').value;
// Store locally for now — can hook up to API later
console.log('Waitlist signup:', email);
this.style.display = 'none';
document.querySelector('.form-note').style.display = 'none';
document.getElementById('formSuccess').style.display = 'block';
});
</script>
</body>
</html>

BIN
logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View file

@ -0,0 +1,68 @@
/**
* Grubflip Front-end JS
*
* Handles the early access signup form via AJAX.
*
* @package Grubflip
* @since 1.0.0
*/
( function() {
'use strict';
var form = document.getElementById( 'grubflip-signup-form' );
if ( ! form ) {
return;
}
form.addEventListener( 'submit', function( e ) {
e.preventDefault();
var emailInput = form.querySelector( 'input[type="email"]' );
var email = emailInput.value.trim();
var button = form.querySelector( 'button' );
var formNote = document.querySelector( '.form-note' );
var success = document.getElementById( 'formSuccess' );
if ( ! email ) {
return;
}
// Disable button during request.
button.disabled = true;
button.textContent = 'Joining...';
var data = new FormData();
data.append( 'action', 'grubflip_signup' );
data.append( 'email', email );
data.append( 'nonce', grubflipData.nonce );
fetch( grubflipData.ajaxUrl, {
method: 'POST',
body: data,
credentials: 'same-origin',
} )
.then( function( response ) {
return response.json();
} )
.then( function( result ) {
if ( result.success ) {
form.style.display = 'none';
formNote.style.display = 'none';
success.textContent = result.data.message;
success.style.display = 'block';
} else {
button.disabled = false;
button.textContent = 'Join Waitlist';
alert( result.data.message || 'Something went wrong. Try again.' );
}
} )
.catch( function() {
// Fallback: just show success (store email client-side).
form.style.display = 'none';
formNote.style.display = 'none';
success.textContent = "You're on the list! We'll be in touch soon.";
success.style.display = 'block';
} );
} );
} )();

View file

@ -0,0 +1,20 @@
<?php
/**
* Theme Footer
*
* @package Grubflip
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<footer class="site-footer">
<p>&copy; <?php echo esc_html( date( 'Y' ) ); ?> <?php bloginfo( 'name' ); ?>. A <a href="https://www.payfrit.com">Payfrit</a> product. All rights reserved.</p>
</footer>
<?php wp_footer(); ?>
</body>
</html>

View file

@ -0,0 +1,32 @@
<?php
/**
* Front Page Template
*
* Landing page for Grubflip hero, features, how it works, and early access signup.
*
* @package Grubflip
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
get_header();
?>
<section class="hero">
<span class="hero-badge">Coming Soon</span>
<h1>Stop eating where you <span class="highlight">work.</span></h1>
<p>Grubflip lets restaurant employees swap their food discounts with workers at nearby spots. New food, same savings.</p>
<a class="hero-cta" href="#signup">Join the Waitlist &rarr;</a>
</section>
<?php get_template_part( 'template-parts/how-it-works' ); ?>
<?php get_template_part( 'template-parts/benefits' ); ?>
<?php get_template_part( 'template-parts/signup' ); ?>
<?php
get_footer();

View file

@ -0,0 +1,149 @@
<?php
/**
* Grubflip Theme Functions
*
* @package Grubflip
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Theme setup.
*/
function grubflip_setup() {
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'style',
'script',
) );
}
add_action( 'after_setup_theme', 'grubflip_setup' );
/**
* Enqueue styles and scripts.
*/
function grubflip_enqueue_assets() {
// Google Fonts — Inter.
wp_enqueue_style(
'grubflip-google-fonts',
'https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap',
array(),
null
);
// Theme stylesheet.
wp_enqueue_style(
'grubflip-style',
get_stylesheet_uri(),
array( 'grubflip-google-fonts' ),
wp_get_theme()->get( 'Version' )
);
// Front-end JS.
wp_enqueue_script(
'grubflip-main',
get_template_directory_uri() . '/assets/js/main.js',
array(),
wp_get_theme()->get( 'Version' ),
true
);
// Pass AJAX URL for signup form.
wp_localize_script( 'grubflip-main', 'grubflipData', array(
'ajaxUrl' => admin_url( 'admin-ajax.php' ),
'nonce' => wp_create_nonce( 'grubflip_signup' ),
) );
}
add_action( 'wp_enqueue_scripts', 'grubflip_enqueue_assets' );
/**
* Handle early access signup via AJAX.
*/
function grubflip_handle_signup() {
check_ajax_referer( 'grubflip_signup', 'nonce' );
$email = isset( $_POST['email'] ) ? sanitize_email( $_POST['email'] ) : '';
if ( ! is_email( $email ) ) {
wp_send_json_error( array( 'message' => 'Invalid email address.' ) );
}
// Store signups as a custom post type.
$existing = get_posts( array(
'post_type' => 'grubflip_signup',
'meta_key' => '_signup_email',
'meta_value' => $email,
'fields' => 'ids',
) );
if ( ! empty( $existing ) ) {
wp_send_json_success( array( 'message' => 'You\'re already on the list!' ) );
}
$post_id = wp_insert_post( array(
'post_type' => 'grubflip_signup',
'post_title' => $email,
'post_status' => 'publish',
) );
if ( $post_id ) {
update_post_meta( $post_id, '_signup_email', $email );
update_post_meta( $post_id, '_signup_date', current_time( 'mysql' ) );
wp_send_json_success( array( 'message' => 'You\'re on the list! We\'ll be in touch soon.' ) );
}
wp_send_json_error( array( 'message' => 'Something went wrong. Try again.' ) );
}
add_action( 'wp_ajax_grubflip_signup', 'grubflip_handle_signup' );
add_action( 'wp_ajax_nopriv_grubflip_signup', 'grubflip_handle_signup' );
/**
* Register Signup custom post type.
*/
function grubflip_register_post_types() {
register_post_type( 'grubflip_signup', array(
'labels' => array(
'name' => 'Signups',
'singular_name' => 'Signup',
'menu_name' => 'Grubflip Signups',
),
'public' => false,
'show_ui' => true,
'show_in_menu' => true,
'menu_icon' => 'dashicons-email-alt',
'supports' => array( 'title' ),
) );
}
add_action( 'init', 'grubflip_register_post_types' );
/**
* Add signup email column to admin list.
*/
function grubflip_signup_columns( $columns ) {
$columns['signup_email'] = 'Email';
$columns['signup_date'] = 'Signed Up';
return $columns;
}
add_filter( 'manage_grubflip_signup_posts_columns', 'grubflip_signup_columns' );
/**
* Populate custom columns.
*/
function grubflip_signup_column_data( $column, $post_id ) {
if ( 'signup_email' === $column ) {
echo esc_html( get_post_meta( $post_id, '_signup_email', true ) );
}
if ( 'signup_date' === $column ) {
echo esc_html( get_post_meta( $post_id, '_signup_date', true ) );
}
}
add_action( 'manage_grubflip_signup_posts_custom_column', 'grubflip_signup_column_data', 10, 2 );

View file

@ -0,0 +1,32 @@
<?php
/**
* Theme Header
*
* @package Grubflip
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Grubflip lets restaurant employees share their employee food discounts with each other. Stop eating where you work — flip your grub!">
<link rel="icon" type="image/x-icon" href="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/apple-touch-icon.png">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<nav class="site-nav">
<a class="nav-logo" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/logo.png" alt="<?php bloginfo( 'name' ); ?>">
<span><?php bloginfo( 'name' ); ?></span>
</a>
<a class="nav-cta" href="#signup">Get Early Access</a>
</nav>

View file

@ -0,0 +1,32 @@
<?php
/**
* Main Index Template
*
* Fallback template redirects to front page since this is a single-page marketing site.
*
* @package Grubflip
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
get_header();
?>
<section class="hero">
<span class="hero-badge">Coming Soon</span>
<h1>Stop eating where you <span class="highlight">work.</span></h1>
<p>Grubflip lets restaurant employees swap their food discounts with workers at nearby spots. New food, same savings.</p>
<a class="hero-cta" href="#signup">Join the Waitlist &rarr;</a>
</section>
<?php get_template_part( 'template-parts/how-it-works' ); ?>
<?php get_template_part( 'template-parts/benefits' ); ?>
<?php get_template_part( 'template-parts/signup' ); ?>
<?php
get_footer();

View file

@ -0,0 +1 @@
TODO: Add 1200x900 screenshot.png for WP theme preview.

429
wp-theme/grubflip/style.css Normal file
View file

@ -0,0 +1,429 @@
/*
Theme Name: Grubflip
Theme URI: https://grubflip.com
Author: Jude @ Payfrit
Author URI: https://www.payfrit.com
Description: Custom marketing theme for Grubflip employee discount swap platform for restaurant workers.
Version: 1.0.0
License: Proprietary
License URI: https://www.payfrit.com
Text Domain: grubflip
*/
/* ==========================================================================
CSS Variables
========================================================================== */
:root {
--orange: #FF6B35;
--orange-dark: #E55A2B;
--dark: #1A1A2E;
--darker: #0F0F1A;
--gray: #8892A0;
--light: #F5F5F7;
--white: #FFFFFF;
}
/* ==========================================================================
Reset & Base
========================================================================== */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--darker);
color: var(--light);
line-height: 1.6;
overflow-x: hidden;
}
/* ==========================================================================
Navigation
========================================================================== */
.site-nav {
position: fixed;
top: 0;
width: 100%;
padding: 1.25rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
background: rgba(15, 15, 26, 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}
.nav-logo {
display: flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
}
.nav-logo img {
width: 40px;
height: 40px;
border-radius: 10px;
}
.nav-logo span {
font-size: 1.5rem;
font-weight: 800;
color: var(--white);
letter-spacing: -0.5px;
}
.nav-cta {
background: var(--orange);
color: var(--white);
padding: 0.6rem 1.5rem;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
font-size: 0.9rem;
transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover {
background: var(--orange-dark);
transform: translateY(-1px);
}
/* ==========================================================================
Hero Section
========================================================================== */
.hero {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 8rem 2rem 4rem;
position: relative;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
pointer-events: none;
}
.hero-badge {
display: inline-block;
background: rgba(255, 107, 53, 0.15);
color: var(--orange);
padding: 0.5rem 1.25rem;
border-radius: 50px;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 2rem;
border: 1px solid rgba(255, 107, 53, 0.25);
}
.hero h1 {
font-size: clamp(2.5rem, 6vw, 4.5rem);
font-weight: 800;
line-height: 1.1;
max-width: 800px;
margin-bottom: 1.5rem;
letter-spacing: -1.5px;
}
.hero h1 .highlight {
color: var(--orange);
}
.hero p {
font-size: 1.2rem;
color: var(--gray);
max-width: 550px;
margin-bottom: 2.5rem;
}
.hero-cta {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: var(--orange);
color: var(--white);
padding: 1rem 2.5rem;
border-radius: 50px;
text-decoration: none;
font-weight: 700;
font-size: 1.1rem;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}
.hero-cta:hover {
background: var(--orange-dark);
transform: translateY(-2px);
box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}
/* ==========================================================================
How It Works
========================================================================== */
.how-it-works {
padding: 6rem 2rem;
max-width: 1100px;
margin: 0 auto;
}
.section-title {
text-align: center;
font-size: 2.25rem;
font-weight: 800;
margin-bottom: 1rem;
letter-spacing: -0.5px;
}
.section-subtitle {
text-align: center;
color: var(--gray);
font-size: 1.1rem;
margin-bottom: 4rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.step {
background: rgba(26, 26, 46, 0.6);
border: 1px solid rgba(255, 107, 53, 0.1);
border-radius: 20px;
padding: 2.5rem 2rem;
text-align: center;
transition: border-color 0.3s, transform 0.3s;
}
.step:hover {
border-color: rgba(255, 107, 53, 0.3);
transform: translateY(-4px);
}
.step-icon {
font-size: 2.5rem;
margin-bottom: 1.25rem;
}
.step h3 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.75rem;
}
.step p {
color: var(--gray);
font-size: 0.95rem;
}
/* ==========================================================================
Benefits
========================================================================== */
.benefits {
padding: 4rem 2rem 6rem;
max-width: 900px;
margin: 0 auto;
text-align: center;
}
.benefit-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.5rem;
margin-top: 3rem;
}
.benefit {
padding: 2rem 1.5rem;
background: rgba(26, 26, 46, 0.4);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.benefit h4 {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--orange);
}
.benefit p {
font-size: 0.9rem;
color: var(--gray);
}
/* ==========================================================================
CTA / Signup Section
========================================================================== */
.cta-section {
padding: 6rem 2rem;
text-align: center;
position: relative;
}
.cta-section::before {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 500px;
height: 400px;
background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
pointer-events: none;
}
.cta-section h2 {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 1rem;
letter-spacing: -0.5px;
}
.cta-section p {
color: var(--gray);
font-size: 1.1rem;
margin-bottom: 2rem;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}
.signup-form {
display: flex;
gap: 0.75rem;
justify-content: center;
flex-wrap: wrap;
max-width: 500px;
margin: 0 auto;
}
.signup-form input[type="email"] {
flex: 1;
min-width: 250px;
padding: 0.9rem 1.25rem;
border-radius: 50px;
border: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(26, 26, 46, 0.8);
color: var(--white);
font-size: 1rem;
font-family: 'Inter', sans-serif;
outline: none;
transition: border-color 0.3s;
}
.signup-form input[type="email"]::placeholder {
color: var(--gray);
}
.signup-form input[type="email"]:focus {
border-color: var(--orange);
}
.signup-form button {
background: var(--orange);
color: var(--white);
border: none;
padding: 0.9rem 2rem;
border-radius: 50px;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
font-family: 'Inter', sans-serif;
transition: background 0.3s, transform 0.2s;
}
.signup-form button:hover {
background: var(--orange-dark);
transform: translateY(-1px);
}
.form-note {
color: var(--gray);
font-size: 0.8rem;
margin-top: 1rem;
}
.form-success {
display: none;
color: var(--orange);
font-weight: 600;
font-size: 1.1rem;
margin-top: 1rem;
}
/* ==========================================================================
Footer
========================================================================== */
.site-footer {
padding: 3rem 2rem;
text-align: center;
border-top: 1px solid rgba(255, 255, 255, 0.05);
color: var(--gray);
font-size: 0.85rem;
}
.site-footer a {
color: var(--orange);
text-decoration: none;
}
/* ==========================================================================
Responsive
========================================================================== */
@media (max-width: 600px) {
.site-nav {
padding: 1rem 1.25rem;
}
.nav-logo span {
font-size: 1.25rem;
}
.hero {
padding: 7rem 1.5rem 3rem;
}
.hero p {
font-size: 1.05rem;
}
.how-it-works,
.benefits,
.cta-section {
padding-left: 1.25rem;
padding-right: 1.25rem;
}
.signup-form input[type="email"] {
min-width: 100%;
}
}

View file

@ -0,0 +1,35 @@
<?php
/**
* Template Part: Benefits
*
* @package Grubflip
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<section class="benefits">
<h2 class="section-title">Why Grubflip?</h2>
<p class="section-subtitle">Built by restaurant people, for restaurant people.</p>
<div class="benefit-grid">
<div class="benefit">
<h4>Save Money</h4>
<p>Employee discounts at places you actually want to eat. No more paying full price.</p>
</div>
<div class="benefit">
<h4>New Food Daily</h4>
<p>Tired of eating the same menu every shift? Try something new from down the block.</p>
</div>
<div class="benefit">
<h4>Meet Your Neighbors</h4>
<p>Connect with other restaurant workers in your area. Build your local food network.</p>
</div>
<div class="benefit">
<h4>100% Free</h4>
<p>Grubflip is free for restaurant employees. No fees, no catch.</p>
</div>
</div>
</section>

View file

@ -0,0 +1,34 @@
<?php
/**
* Template Part: How It Works
*
* @package Grubflip
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<section class="how-it-works">
<h2 class="section-title">How It Works</h2>
<p class="section-subtitle">Three steps to start flipping your grub.</p>
<div class="steps">
<div class="step">
<div class="step-icon">&#x1F4F2;</div>
<h3>Sign Up</h3>
<p>Create your profile and verify where you work. It takes 30 seconds.</p>
</div>
<div class="step">
<div class="step-icon">&#x1F91D;</div>
<h3>Connect</h3>
<p>Browse nearby restaurant workers who want to swap discounts with you.</p>
</div>
<div class="step">
<div class="step-icon">&#x1F355;</div>
<h3>Flip Your Grub</h3>
<p>Use their discount, they use yours. Everybody eats something different for less.</p>
</div>
</div>
</section>

View file

@ -0,0 +1,24 @@
<?php
/**
* Template Part: Early Access Signup
*
* @package Grubflip
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<section class="cta-section" id="signup">
<h2>Ready to Flip?</h2>
<p>Sign up for early access and be first in line when we launch in your area.</p>
<form class="signup-form" id="grubflip-signup-form">
<?php wp_nonce_field( 'grubflip_signup', 'grubflip_nonce' ); ?>
<input type="email" name="email" placeholder="Enter your email" required>
<button type="submit">Join Waitlist</button>
</form>
<p class="form-note">No spam. Just a heads-up when we launch.</p>
<p class="form-success" id="formSuccess"></p>
</section>