mirror of
https://github.com/RPCS3/rpcs3-www.git
synced 2024-11-23 18:19:39 +00:00
App 'home' created
* Configured template/static paths. * Initial deploy script for Linux.
This commit is contained in:
parent
94c0288493
commit
555c223572
2
.gitignore
vendored
2
.gitignore
vendored
@ -33,6 +33,6 @@ pip-delete-this-directory.txt
|
||||
# Python Tools for Visual Studio
|
||||
*.suo
|
||||
|
||||
# Secret settings
|
||||
# Secret stuff:
|
||||
settings_secret.py
|
||||
*.sqlite3
|
||||
|
12
deploy/linux.sh
Normal file
12
deploy/linux.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Python
|
||||
apt-get install python
|
||||
apt-get install python-dev
|
||||
apt-get install python-pip
|
||||
|
||||
# Django
|
||||
pip install django
|
||||
|
||||
# Initialize DB
|
||||
python ../manage.py syncdb
|
@ -35,6 +35,11 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="manage.py" />
|
||||
<Compile Include="website\home\admin.py" />
|
||||
<Compile Include="website\home\models.py" />
|
||||
<Compile Include="website\home\tests.py" />
|
||||
<Compile Include="website\home\views.py" />
|
||||
<Compile Include="website\home\__init__.py" />
|
||||
<Compile Include="website\__init__.py" />
|
||||
<Compile Include="website\settings.py" />
|
||||
<Compile Include="website\urls.py" />
|
||||
@ -54,6 +59,17 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="website\" />
|
||||
<Folder Include="website\home\" />
|
||||
<Folder Include="website\home\templates\" />
|
||||
<Folder Include="website\static\" />
|
||||
<Folder Include="website\static\css\" />
|
||||
<Folder Include="website\static\js\" />
|
||||
<Folder Include="website\templates\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="website\home\templates\home.html" />
|
||||
<Content Include="website\static\css\base.css" />
|
||||
<Content Include="website\templates\base.html" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VSToolsPath)\Python Tools\Microsoft.PythonTools.Django.targets" />
|
||||
<ProjectExtensions>
|
||||
|
0
website/home/__init__.py
Normal file
0
website/home/__init__.py
Normal file
3
website/home/admin.py
Normal file
3
website/home/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
3
website/home/models.py
Normal file
3
website/home/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
50
website/home/templates/home.html
Normal file
50
website/home/templates/home.html
Normal file
@ -0,0 +1,50 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block jumbotron %}
|
||||
<div class="jumbotron">
|
||||
<div class="container">
|
||||
<h1>RPCS3</h1>
|
||||
<p>An open-source Sony PlayStation 3 emulator written in C++.</p>
|
||||
<p>
|
||||
<a class="btn btn-primary btn-lg" role="button" href="http://www.emunewz.net/forum/forumdisplay.php?fid=199">Download »</a>
|
||||
<a class="btn btn-primary btn-lg" role="button" href="https://github.com/DHrpcs3/rpcs3/">Sources »</a>
|
||||
<ul class="bs-docs-social-buttons">
|
||||
<li><iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=DHrpcs3&repo=rpcs3&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe></li>
|
||||
<li><iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=DHrpcs3&repo=rpcs3&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h2>Goals</h2>
|
||||
<p>
|
||||
<ul>
|
||||
<li>Create an easy platform for developers to test their PS3 apps and homebrews.</li>
|
||||
<li>Centralize a great part of the knowledge about the hardware and software of the PlayStation 3.</li>
|
||||
<li>Play PS3 games and have fun!</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>Features</h2>
|
||||
<p>
|
||||
<ul>
|
||||
<li>Cell processor interpreter.</li>
|
||||
<li>Basic RSX emulation.</li>
|
||||
<li>Basic SysCalls implemented for HLE.</li>
|
||||
<li>Loading simple homebrews.</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>Examples</h2>
|
||||
<img src="{% static 'images/gallery1.jpg' %}" class="img-thumbnail" alt="Disgaea 3: Absence of Justice" width="150">
|
||||
<img src="{% static 'images/gallery2.jpg' %}" class="img-thumbnail" alt="Arkedo Series: 02 Swap" width="130">
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
3
website/home/tests.py
Normal file
3
website/home/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
4
website/home/views.py
Normal file
4
website/home/views.py
Normal file
@ -0,0 +1,4 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
def home(request):
|
||||
return render(request, 'home.html')
|
@ -2,11 +2,11 @@
|
||||
import os
|
||||
from settings_secret import *
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
|
||||
DEBUG = True
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
|
||||
PROJECT_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||
|
||||
ADMINS = (
|
||||
# ('Your Name', 'your_email@example.com'),
|
||||
)
|
||||
@ -16,7 +16,7 @@ MANAGERS = ADMINS
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||
'NAME': os.path.join(PROJECT_ROOT, 'db.sqlite3'),
|
||||
}
|
||||
}
|
||||
|
||||
@ -67,9 +67,7 @@ STATIC_URL = '/static/'
|
||||
|
||||
# Additional locations of static files
|
||||
STATICFILES_DIRS = (
|
||||
# Put strings here, like "/home/html/static" or "C:/www/django/static".
|
||||
# Always use forward slashes, even on Windows.
|
||||
# Don't forget to use absolute paths, not relative paths.
|
||||
os.path.join(PROJECT_ROOT, 'website', 'static'),
|
||||
)
|
||||
|
||||
# List of finder classes that know how to find static files in
|
||||
@ -103,9 +101,7 @@ ROOT_URLCONF = 'website.urls'
|
||||
WSGI_APPLICATION = 'website.wsgi.application'
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
||||
# Always use forward slashes, even on Windows.
|
||||
# Don't forget to use absolute paths, not relative paths.
|
||||
os.path.join(PROJECT_ROOT, 'website', 'templates'),
|
||||
)
|
||||
|
||||
INSTALLED_APPS = (
|
||||
@ -118,6 +114,9 @@ INSTALLED_APPS = (
|
||||
'django.contrib.admin',
|
||||
# Uncomment the next line to enable admin documentation:
|
||||
# 'django.contrib.admindocs',
|
||||
|
||||
# Internal
|
||||
'website.home',
|
||||
)
|
||||
|
||||
# A sample logging configuration. The only tangible logging
|
||||
|
41
website/static/css/base.css
Normal file
41
website/static/css/base.css
Normal file
@ -0,0 +1,41 @@
|
||||
/* Move down content because we have a fixed navbar that is 50px tall */
|
||||
body {
|
||||
padding-top: 50px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* Always display scrollbar since the switch between small and large pages is ugly */
|
||||
html {
|
||||
overflow: -moz-scrollbars-vertical;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
/* Jumbotron */
|
||||
.jumbotron {
|
||||
background-image: url('../images/background.jpg');
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
.jumbotron .container {
|
||||
color: #EEE;
|
||||
text-shadow: 2px 2px 3px #000;
|
||||
}
|
||||
|
||||
.jumbotron .container a {
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/* Quick links on Home */
|
||||
.bs-docs-social-buttons {
|
||||
margin: 0px;
|
||||
padding-top: 5px;
|
||||
padding-left: 0px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.bs-docs-social-buttons li {
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
*display: inline;
|
||||
*zoom: 1;
|
||||
}
|
7
website/static/css/external/bootstrap.min.css
vendored
Normal file
7
website/static/css/external/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
6
website/static/js/external/bootstrap.min.js
vendored
Normal file
6
website/static/js/external/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
website/static/js/external/jquery.min.js
vendored
Normal file
4
website/static/js/external/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
57
website/templates/base.html
Normal file
57
website/templates/base.html
Normal file
@ -0,0 +1,57 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RPCS3 {% block title %}{% endblock %}</title>
|
||||
|
||||
<!-- Stylesheets -->
|
||||
<link href="{% static 'css/external/bootstrap.min.css' %}" rel="stylesheet">
|
||||
<link href="{% static 'css/base.css' %}" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Navbar -->
|
||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href=".">RPCS3</a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href='http://www.emunewz.net/forum/forumdisplay.php?fid=199'>Downloads</a></li>
|
||||
<li><a href='compatibility.php'>Compatibility</a></li>
|
||||
<li><a href='https://github.com/DHrpcs3/rpcs3/wiki/FAQ'>FAQ</a></li>
|
||||
<li><a href='http://rpcs3.net/'>Blog</a></li>
|
||||
<li><a href='http://www.emunewz.net/forum/forumdisplay.php?fid=162'>Forum</a></li>
|
||||
<li><a href='contact.php'>Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% block jumbotron %}
|
||||
{% endblock %}
|
||||
|
||||
<div class="container">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
<hr>
|
||||
|
||||
<footer>
|
||||
<p>© RPCS3 project, 2014</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<!-- Javascripts -->
|
||||
<script src="{% static 'js/external/jquery.min.js' %}"></script>
|
||||
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
||||
</body>
|
||||
</html>
|
@ -4,12 +4,9 @@ from django.contrib import admin
|
||||
admin.autodiscover()
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# Examples:
|
||||
# url(r'^$', 'website.views.home', name='home'),
|
||||
# url(r'^website/', include('website.website.urls')),
|
||||
|
||||
# Uncomment the admin/doc line below to enable admin documentation:
|
||||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
# Public
|
||||
url(r'^$', 'website.home.views.home', name='home'),
|
||||
|
||||
# Administration
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user