Skip to content

Commit 051cd91

Browse files
committed
Add more dev stuff and games
1 parent 6adbda6 commit 051cd91

File tree

13 files changed

+93
-14
lines changed

13 files changed

+93
-14
lines changed

src/lib/Grid/Grid.svelte

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<svelte:options customElement="grid-container" />
22

3-
<script lang="ts">
4-
let { columns = "3", rowHeight = "1fr", gap = "2%" } = $props();
5-
</script>
6-
7-
<div
8-
class="grid-container"
9-
style="--columns:{columns};--gap:{gap};--rowHeight:{rowHeight};"
10-
>
3+
<div class="grid-container">
114
<slot />
125
</div>
136

src/lib/Grid/Items/Developer.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
3636
background-image:
3737
linear-gradient(lightblue, lightblue),
38-
radial-gradient(at right, white 0%, lightblue 75%);
38+
radial-gradient(at right, var(--text) 0%, lightblue 75%);
3939
background-origin: border-box;
4040
background-clip: padding-box, border-box;
4141
}
@@ -93,7 +93,7 @@
9393
grid-template-rows: repeat(3, 1fr);
9494
gap: 0px;
9595
background-color: lightblue;
96-
color: white;
96+
color: var(--text);
9797
flex: 1;
9898
margin-bottom: 10px;
9999
width: 350px;

src/lib/Grid/Items/Game.svelte

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<svelte:options customElement="game-tile" />
2+
3+
<script lang="ts">
4+
let { thumbnailPath = "", name = "", description = "" } = $props();
5+
</script>
6+
7+
<div class="grid-item">
8+
<div class="content-container">
9+
<img class="thumbnail" src={thumbnailPath} alt={thumbnailPath} />
10+
<div class="text-container">
11+
<span class="name">{name}</span>
12+
<!-- <span class="name">{name}</span>
13+
<span class="description">{description}</span> -->
14+
</div>
15+
</div>
16+
</div>
17+
18+
<slot />
19+
20+
<style>
21+
.thumbnail {
22+
height: 200px;
23+
width: 350px;
24+
position: absolute;
25+
top: 0;
26+
left: 0;
27+
border-radius: 15px;
28+
}
29+
30+
.content-container {
31+
position: relative;
32+
height: 200px;
33+
width: 350px;
34+
}
35+
36+
.text-container {
37+
position: absolute;
38+
bottom: 0;
39+
left: 50%;
40+
transform: translate(-50%, 0);
41+
width: 350px;
42+
height: 65px;
43+
44+
background-image:
45+
linear-gradient(transparent 0%, var(--crust-secondary) 100%),
46+
radial-gradient(
47+
at bottom,
48+
var(--crust-secondary) 0%,
49+
transparent 70%
50+
);
51+
52+
background-origin: border-box;
53+
background-clip: padding-box, border-box;
54+
border-radius: 0 0 15px 15px;
55+
text-align: center;
56+
text-wrap: wrap;
57+
}
58+
59+
.name {
60+
position: absolute;
61+
top: 50%;
62+
left: 50%;
63+
width: 300px;
64+
transform: translate(-50%, -50%);
65+
color: white;
66+
}
67+
68+
.grid-item {
69+
background-color: lightblue;
70+
color: var(--text);
71+
flex: 1;
72+
width: 350px;
73+
height: 200px;
74+
border-radius: 15px;
75+
}
76+
</style>

src/routes/+page.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
import "$lib/Styles/global.css";
33
import Navbar from "$lib/Navbar/navbar.svelte";
44
import Grid from "$lib/Grid/Grid.svelte";
5-
import devTile from "$lib/Grid/Items/Developer.svelte";
5+
import gameTile from "$lib/Grid/Items/Game.svelte";
66
</script>
77

88
<navbar-component pageName="Index"></navbar-component>
99

1010
<h1>Welcome to Bread Bird Games</h1>
11+
<grid-container>
12+
<game-tile
13+
thumbnailPath="gameThumbs/HNAndersenBanner.png"
14+
name="Unanswered Questions with H.N. Andersen"
15+
></game-tile>
16+
</grid-container>

src/routes/about/+page.svelte

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99

1010
<h1 id="title">The people behind the games:</h1>
1111

12-
<grid-container columns="3">
12+
<grid-container>
1313
<developer-tile
1414
thumbnailPath="/devThumbs/Isabella.png"
1515
name="Isabella"
1616
pronouns="She/Her"
1717
description="Artist"
18-
></developer-tile>
18+
>
19+
<a href="https://www.instagram.com/gaw_drawzz//">
20+
<i class="link fa-brands fa-instagram"></i>
21+
</a>
22+
</developer-tile>
1923
<developer-tile
2024
thumbnailPath="/devThumbs/Cornelius.png"
2125
name="Cornelius"
@@ -69,7 +73,7 @@
6973
7074
.link {
7175
font-size: 32px;
72-
color: white;
76+
color: var(--text);
7377
margin-right: 5px;
7478
}
7579
</style>

static/devThumbs/Cornelius.png

-445 KB
Loading

static/devThumbs/Daniel.png

-627 KB
Loading

static/devThumbs/Devin.png

-604 KB
Loading

static/devThumbs/Ida.png

-842 KB
Loading

static/devThumbs/Isabella.jpg

-3.28 MB
Binary file not shown.

0 commit comments

Comments
 (0)