Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #107 from smswithoutborders/dev
Browse files Browse the repository at this point in the history
styled the banner
  • Loading branch information
mildrette authored Jun 11, 2024
2 parents 4fe793f + deb0dda commit 06674ee
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions src/components/MyAlert.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from "react";
import { Box, Typography, IconButton } from "@mui/material";
import { Box, Typography, IconButton, Link } from "@mui/material";
import CloseIcon from "@mui/icons-material/Close";

const MyAlert = () => {
Expand All @@ -14,20 +14,39 @@ const MyAlert = () => {
sx={{
position: "sticky",
top: 0,
backgroundColor: "#f50057", // Adjust the color as needed
background: "linear-gradient(90deg, #ff4081, #f50057)",
color: "white",
padding: "8px 16px",
padding: "12px 24px",
textAlign: "center",
zIndex: 1000, // Ensure it stays above other elements
zIndex: 1000,
boxShadow: "0px 4px 10px rgba(0, 0, 0, 0.3)",
display: "flex",
alignItems: "center",
justifyContent: "center"
}}
>
<Typography variant="body1" component="span">
This is an important announcement!
<Typography
variant="body1"
component="span"
sx={{
fontFamily: "'Roboto', sans-serif",
fontSize: "1rem",
fontWeight: 500,
marginRight: "8px"
}}
>
We have rebranded! SMSWithoutBorders is now RelaySMS. Visit our new website at{" "}
<Link href="https://relaysms.com" color="inherit" underline="always" target="_blank">
relaysms.com
</Link>.
</Typography>
<IconButton
size="small"
onClick={handleClose}
sx={{ color: "white", marginLeft: "8px" }}
sx={{
color: "white",
padding: "4px"
}}
>
<CloseIcon />
</IconButton>
Expand Down

0 comments on commit 06674ee

Please sign in to comment.