-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88fc7ee
commit c009c5d
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.rectangle { | ||
position: relative; | ||
width: 1055px; /* Set the width according to your design */ | ||
height: 396px; /* Set the height according to your design */ | ||
background-color: #d9d9d9; /* Example background color */ | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 20px; | ||
box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds shadow for depth */ | ||
} | ||
|
||
.rectangle-title { | ||
font-size: 32px; /* Larger font size for the title */ | ||
color: #333; /* Dark color for text */ | ||
margin-bottom: 10px; /* Space between title and description */ | ||
} | ||
|
||
.rectangle-description { | ||
font-size: 16px; /* Smaller font size for the description */ | ||
color: #666; /* Lighter color for text */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React, { memo } from "react"; | ||
import "./Rectangle1.css"; // Make sure the path to the CSS file is correct | ||
|
||
const Rectangle1 = ({ | ||
title = "Default Title", | ||
description = "Default description here.", | ||
}) => { | ||
return ( | ||
<div className="rectangle"> | ||
<h1 className="rectangle-title">{title}</h1> | ||
<p className="rectangle-description">{description}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default memo(Rectangle1); |