Skip to content

Commit 9aea9bd

Browse files
committed
misc
1 parent 52be2c8 commit 9aea9bd

19 files changed

+1682
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build-env-docker is a helper script for me, setup a php/apache/mysql env in docker.
2+
3+
the sql dump file is also to help with me setting up a docker env

build-env-docker

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# docker run -p 3306:3306 --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -e MYSQL_USER=admin -e MYSQL_PASSWORD=password -d mysql
6+
# docker run -d -p 80:80 --name lamp-stack --link some-mysql:mysql -v /Users/jha/Documents/dev/oduacm/odu-hackathon-site/:/app tutum/apache-php
7+
8+
docker run -d -p 80:80 -p 3306:3306 -e MYSQL_PASS="password" -v $1:/app tutum/lamp

config.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
$config['db']['host'] = 'localhost';
4+
$config['db']['port'] = '3306';
5+
$config['db']['name'] = 'hackathon';
6+
$config['db']['username'] = 'root';
7+
$config['db']['password'] = '';
8+
9+
$config['db']['connString'] = 'mysql:host='.$config['db']['host'].';port='.$config['db']['port'].';dbname='.$config['db']['name'];
10+
?>

css/style.css

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.bg {
2+
background: url('../img/banner.jpg') no-repeat center center;
3+
background-color: #000;
4+
position: fixed;
5+
width: 100%;
6+
height: 440px; /*same height as jumbotron */
7+
top:0;
8+
left:0;
9+
z-index: -1;
10+
}
11+
12+
.jumbotron {
13+
margin-bottom: 0px;
14+
height: 440px;
15+
width: 100%;
16+
color: white;
17+
text-shadow: black 0.3em 0.3em 0.3em;
18+
background:transparent;
19+
20+
display: table;
21+
text-align: center;
22+
}
23+
24+
#home {
25+
display: table-cell;
26+
vertical-align: middle;
27+
text-align: center;
28+
}
29+
30+
.btn-custom {
31+
border: 1px solid #FFF;
32+
color: #FFF;
33+
transition: color 800ms;
34+
font-size: 1em;
35+
}
36+
37+
.btn-custom:hover {
38+
color: #669AC9;
39+
}
40+
41+
#about p {
42+
font-size: 1.5em;
43+
text-align: center;
44+
}
45+
46+
#register-container {
47+
color: #FFF;
48+
background-color: #222222;
49+
}
50+
51+
#footer {
52+
padding: 20px;
53+
text-align: right;
54+
}

0 commit comments

Comments
 (0)