parent
077d030757
commit
f243b08ec9
@ -0,0 +1 @@
|
||||
.*.swp
|
@ -0,0 +1,17 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
<IfModule mod_negotiation.c>
|
||||
Options -MultiViews -Indexes
|
||||
</IfModule>
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} (.+)/$
|
||||
RewriteRule ^ %1 [L,R=301]
|
||||
|
||||
# Handle Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</IfModule>
|
@ -0,0 +1,74 @@
|
||||
<?php require '/src/base.php' ?>
|
||||
<?php
|
||||
|
||||
if (str_starts_with($_SERVER['REQUEST_URI'], '/@')) {
|
||||
require 'user/index.php'; die;
|
||||
}
|
||||
|
||||
$p = [
|
||||
'title' => 'RealFan - Your Way'
|
||||
];
|
||||
?>
|
||||
<?php require '/src/views/head.php' ?>
|
||||
|
||||
<div class="section hero">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="one-half column">
|
||||
<h4 class="hero-heading"><?php l('home.hero', 'You are a <b>Real Fan</b> when you want your content creators to get the highest cut.') ?></h4>
|
||||
<a class="button button-primary" href="/signup"><?php l('home.register', 'Sign up') ?></a>
|
||||
</div>
|
||||
<div class="one-half column phones">
|
||||
<img class="phone" src="https://getskeleton.com/examples/landing/images/iphone.png">
|
||||
<img class="phone" src="https://getskeleton.com/examples/landing/images/iphone.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section values">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="one-third column value">
|
||||
<h2 class="value-multiplier">67%</h2>
|
||||
<h5 class="value-heading">Purchase Increase</h5>
|
||||
<p class="value-description">Percentage of users more likely to purchase on mobile friendly site.</p>
|
||||
</div>
|
||||
<div class="one-third column value">
|
||||
<h2 class="value-multiplier">90%</h2>
|
||||
<h5 class="value-heading">Multi-device Users</h5>
|
||||
<p class="value-description">Most of the world accesses the internet on multiple devices.</p>
|
||||
</div>
|
||||
<div class="one-third column value">
|
||||
<h2 class="value-multiplier">66%</h2>
|
||||
<h5 class="value-heading">Sad Users</h5>
|
||||
<p class="value-description">Percentage of users that are frustrated with page load times.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section get-help">
|
||||
<div class="container">
|
||||
<h3 class="section-heading">Need help getting started?</h3>
|
||||
<p class="section-description">Skeleton is an amazingly easy place to start with responsive development. If you want to learn more, just visit the documentation!</p>
|
||||
<a class="button button-primary" href="http://getskeleton.com">View Skeleton Docs</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section categories">
|
||||
<div class="container">
|
||||
<h3 class="section-heading">Responsive Images</h3>
|
||||
<p class="section-description">Skeleton images sit easily in grid with .u-max-full-width class. I suggest exploring solution to serving different images based on device size.</p>
|
||||
<div class="row">
|
||||
<div class="one-half column category">
|
||||
<img class="u-max-full-width" src="images/placeholder.png">
|
||||
</div>
|
||||
<div class="one-half column category">
|
||||
<img class="u-max-full-width" src="images/placeholder.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php require '/src/views/foot.php' ?>
|
@ -0,0 +1 @@
|
||||
../.htaccess
|
@ -0,0 +1,27 @@
|
||||
<?php require_once '/src/base.php' ?>
|
||||
<?php
|
||||
|
||||
# process URI
|
||||
$path = trim($_SERVER['REDIRECT_URL'], '/');
|
||||
$args = explode('/', $path);
|
||||
|
||||
# no args is very unlikely, but still
|
||||
if (count($args) === 0) {
|
||||
die('Unexpected error');
|
||||
}
|
||||
|
||||
# support path if /user/@* instead of /@*
|
||||
if (strtolower($args[0]) === 'user') {
|
||||
$args = array_splice($args, 1);
|
||||
}
|
||||
|
||||
# first arg => Fediverse ID
|
||||
$fediverse_id = $args[0];
|
||||
if (!preg_match('/^@[a-zA-Z0-9_]+@[a-z0-9\-\.]+$/', $fediverse_id)) {
|
||||
die('The given arguments are not correct');
|
||||
}
|
||||
$args = array_splice($args, 1);
|
||||
|
||||
# show arguments
|
||||
var_dump($fediverse_id);
|
||||
var_dump($args);
|
Loading…
Reference in new issue