Skip to content

Commit

Permalink
Added first few games
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHedley committed Jul 2, 2022
1 parent 8caf0e6 commit dccedb5
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 19 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# GAMENAME
# Coup

![](images/GAMENAME.jpeg "")
![Coup](images/coup.jpg "Coup")

## Site

- [local](http://localhost:8000/)
- [Published](https://alexhedley.github.io/REPONAME)
- [Published](https://alexhedley.github.io/coup)

## Game

- https://boardgamegeek.com/boardgame/131357/coup
- http://indieboardsandcards.com/index.php/our-games/coup/

## Run

Expand Down
54 changes: 46 additions & 8 deletions data/games.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,57 @@
"games": [
{
"id": 1,
"name": "",
"date": "2021-01-01",
"name": "1st",
"date": "2021-06-12",
"description": "",
"players": [
{
"name": "",
"score": 0,
"winner": true
"name": "Jonathan",
"winner": true,
"position": "1st"
},
{
"name": "",
"score": 0,
"winner": false
"name": "Corbs",
"winner": false,
"position": "2nd"
},
{
"name": "Alex",
"winner": false,
"position": "3rd"
},
{
"name": "Sam",
"winner": false,
"position": "4th"
}
]
},
{
"id": 2,
"name": "2nd",
"date": "2021-06-12",
"description": "",
"players": [
{
"name": "Jonathan",
"winner": true,
"position": "1st"
},
{
"name": "Corbs",
"winner": false,
"position": "2nd"
},
{
"name": "Sam",
"winner": false,
"position": "3rd"
},
{
"name": "Alex",
"winner": false,
"position": "4th"
}
]
}
Expand Down
Empty file removed images/.keep
Empty file.
Binary file added images/coup.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 12 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<meta name="description" content="">
<meta name="keywords" content="">
<meta name="description" content="Coup">
<meta name="keywords" content="coup">
<meta name="author" content="Alex Hedley">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
Expand All @@ -32,7 +32,7 @@

<section class="jumbotron title-container text-center">
<div>
<h1></h1>
<h1>Coup</h1>

<div class="row justify-content-md-center">
<div class="col-lg-8">
Expand All @@ -51,7 +51,7 @@ <h1></h1>
</button>
<div class="collapse" id="image">
<div class="row justify-content-md-center">
<img src="images/.jpeg" width="500px" alt="Game" />
<img src="images/coup.jpg" width="500px" alt="Game" />
</div>
</div>

Expand Down Expand Up @@ -84,7 +84,7 @@ <h1></h1>

<br />

<div class="row justify-content-md-center">
<!-- <div class="row justify-content-md-center">
<div class="">
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
Expand All @@ -93,7 +93,7 @@ <h1></h1>
</ol>
<div class="carousel-inner">
<div ng-repeat="game in games" class="carousel-item" ng-class='{active:$first}'>
<img src="/PROJECT/{{game.image}}" class="d-block w-100" alt="{{game.name}}">
<img src="/coup/{{game.image}}" class="d-block w-100" alt="{{game.name}}">
<div class="carousel-caption d-none d-md-block">
<h5>{{game.name}}</h5>
<p>{{game.description}}</p>
Expand All @@ -113,7 +113,7 @@ <h5>{{game.name}}</h5>
</div>
</div>
<br />
<br /> -->

<div class="row">
<div class="col">
Expand Down Expand Up @@ -148,7 +148,11 @@ <h5 class="card-title">{{game.name}}</h5>
<p class="card-text">{{game.description}}</p>
<p class="card-text">{{game.date | date:'d MMM yyyy'}}</p>
<div ng-repeat="player in game.players">
<p>{{player.name}} <span ng-if="player.winner"><strong>Winner</strong></span></p>
<p>
{{player.name}}&nbsp;
<span ng-if="player.winner"><strong>Winner</strong></span>&nbsp;
<span class="badge badge-secondary">{{player.position}}</span>
</p>
</div>
</div>
</div>
Expand Down

0 comments on commit dccedb5

Please sign in to comment.