Skip to content

Commit

Permalink
style: ui improvements (#782)
Browse files Browse the repository at this point in the history
## Type of change

<!--Delete points that do not apply-->

- Improvement (refactoring, restructuring repository, cleaning tech
debt, ...)

## Changes

The following changes have been made:

- improved ui landing page
- added sway book to readme
  • Loading branch information
matt-user authored Mar 19, 2024
1 parent 236aa9f commit c66fc73
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 9 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<a href="./LICENSE" alt="forc">
<img src="https://img.shields.io/github/license/FuelLabs/sway-applications" />
</a>
<a href="https://swayapps.fuel.network/book/" alt="forc">
<img src="https://docs.rs/forc/badge.svg" />
</a>
<a href="https://discord.gg/xfpK4Pe">
<img src="https://img.shields.io/discord/732892373507375164?color=6A7EC2&logo=discord&logoColor=ffffff&labelColor=6A7EC2&label=Discord" />
</a>
Expand Down
85 changes: 76 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,107 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sway Applications</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet"
/>
<style>
body {
font-family: "Roboto";
background-color: rgb(240, 240, 240);
margin: 0;
}

.flex-container {
display: flex;
padding-left: 150px;
padding-top: 150px;
margin-left: 150px;
margin-right: 150px;
margin-top: 50px;
}

.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
padding: 0px 32px;
height: 100px;
align-items: center;
height: 142px;
width: 280px;
justify-content: center;
display: flex;
flex-direction: column;
border-radius: 12px;
margin: 16px;
padding: 16px;
background-color: white;
}

.card-text {
color: black;
font-size: 16px;
}

.card:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.text {
.text1 {
font-size: 44px;
color: black;
margin-bottom: 4px;
margin-top: 16px;
}

.text2 {
font-size: 36px;
color: black;
margin-bottom: 4px;
margin-top: 16px;
}

.header {
display: flex;
align-content: center;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding-top: 22px;
padding-bottom: 22px;
background-color: rgb(250, 250, 250);
}
</style>
</head>
<body>
<div class="header">
<img
src="public/fuel-logo-64.png"
alt="Fuel Logo"
style="margin-right: 15px"
/>
<div style="font-size: 36px; color: black; width: fit-content">
Sway Applications
</div>
</div>
<div class="flex-container">
<a href="/tictactoe/" style="text-decoration: none;">
<a href="/tictactoe/" style="text-decoration: none">
<div class="card">
<p class="text1">Tic Tac Toe</p>
<p class="card-text">
Play the classic game of Tic Tac Toe on the Fuel network.
</p>
</div>
</a>
<a
href="https://swayapps.fuel.network/book/"
style="text-decoration: none"
>
<div class="card">
<p class="text">Tic Tac Toe</p>
<p class="text2">Sway App Book</p>
<p class="card-text">
Learn how to contribute to the Swap Applications repo.
</p>
</div>
</a>
</div>
Expand Down
Binary file added public/fuel-logo-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions scripts/build-website/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ export async function buildWebsite() {
fs.rmSync(DIST_FOLDER, { recursive: true, force: true });
await runPnpmCommand(["build:all", "--force", "--no-cache"]);
fs.cpSync(join(ROOT_PATH, "index.html"), join(DIST_FOLDER, "index.html"));
fs.cpSync(join(ROOT_PATH, "public/"), join(DIST_FOLDER, "public/"), { recursive: true });
}

0 comments on commit c66fc73

Please sign in to comment.