Skip to content

Commit

Permalink
Final bits and pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
haslo committed Sep 24, 2024
1 parent 322a334 commit 5721a1c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<script type="module" src="/src/index.jsx"></script>
<title>haslo.ch - Homegrown Techno from Bern, Switzerland</title>
<title>haslo.ch - Techno and Plugins from Bern, Switzerland</title>
</head>
<body>
<!-- hallo musti -->
Expand Down
5 changes: 5 additions & 0 deletions src/pages/plugins/Destruktor.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import * as React from "react";

import {Box, CardMedia, Typography} from "@mui/material";
import {PriceStamp} from "./PriceStamp";

export function Destruktor({plugin_link}) {
return (
<>
<Box sx={{position: 'relative', marginBottom: '30px'}}>
<PriceStamp
color={'#243667'}
price={'$10'}
/>
<a href={plugin_link}>
<CardMedia
component="img"
Expand Down
7 changes: 5 additions & 2 deletions src/pages/plugins/Haaschen.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import * as React from "react";

import {Box, CardMedia, Typography} from "@mui/material";

import {FreeStamp} from "./FreeStamp";
import {PriceStamp} from "./PriceStamp";

export function Haaschen({plugin_link}) {
return (
<>
<Box sx={{position: 'relative', marginBottom: '30px'}}>
<FreeStamp/>
<PriceStamp
color={'#f50057'}
price={'FREE'}
/>
<a href={plugin_link}>
<CardMedia
component="img"
Expand Down
7 changes: 5 additions & 2 deletions src/pages/plugins/Ploink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import * as React from "react";

import {Box, CardMedia, Typography} from "@mui/material";

import {FreeStamp} from "./FreeStamp";
import {PriceStamp} from "./PriceStamp";

export function Ploink({plugin_link}) {
return (
<>
<Box sx={{position: 'relative', marginBottom: '30px'}}>
<FreeStamp/>
<PriceStamp
color={'#f50057'}
price={'FREE'}
/>
<a href={plugin_link}>
<CardMedia
component="img"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as React from "react";

import {Box, Typography} from "@mui/material";

export function FreeStamp() {
export function PriceStamp({color, price}) {
return (
<>
<Box
sx={{
position: 'absolute',
top: 10,
right: 10,
backgroundColor: '#f50057',
backgroundColor: color,
color: 'white',
borderRadius: '50%',
width: 80,
Expand All @@ -19,7 +19,7 @@ export function FreeStamp() {
justifyContent: 'center',
alignItems: 'center',
transform: 'rotate(15deg)',
boxShadow: '0 0 0 5px #f50057',
boxShadow: `0 0 0 5px ${color}`,
'&::before': {
content: '""',
position: 'absolute',
Expand All @@ -33,7 +33,7 @@ export function FreeStamp() {
}}
>
<Typography variant="subtitle1" fontWeight="bold">
FREE
{price}
</Typography>
</Box>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/SearchAppBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function SearchAppBar({setSearchQuery, searchEventSent, setSearchEventSen
sx={{flexGrow: 1, display: {xs: 'block', sm: 'block'}}}
>
<a href='/public' style={{textDecoration: 'none', color: 'white'}}>
haslo.ch - Homegrown Techno from Bern, Switzerland
haslo.ch - Techno and Plugins from Bern, Switzerland
</a>
</Typography>
{searchIsPending ? <CircularProgress/> : <></>}
Expand Down

0 comments on commit 5721a1c

Please sign in to comment.