mirror of
https://github.com/DevEhChad/chadsreactproject.git
synced 2025-11-08 13:31:35 +00:00
added more social items/fixed page
This commit is contained in:
BIN
src/assets/Kicklogo.png
Normal file
BIN
src/assets/Kicklogo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 576 B |
BIN
src/assets/TikTokLogo.png
Normal file
BIN
src/assets/TikTokLogo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
BIN
src/assets/gitealogo.png
Normal file
BIN
src/assets/gitealogo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
@@ -1,8 +1,11 @@
|
||||
import TwitchLogo from "../assets/TwitchLogo.png";
|
||||
import KickLogo from "../assets/Kicklogo.png";
|
||||
import TikTokLogo from "../assets/TikTokLogo.png"
|
||||
import TwitterXLogo from "../assets/Twitter-XLogo.jpg";
|
||||
import InstagramLogo from "../assets/InstagramLogo.png";
|
||||
import YoutubeLogo from "../assets/youtube.png";
|
||||
import GitHubLogo from "../assets/GithubLogo.png";
|
||||
import GiteaLogo from "../assets/gitealogo.png";
|
||||
|
||||
export const SocialList = [
|
||||
{
|
||||
@@ -12,6 +15,20 @@ export const SocialList = [
|
||||
link: <a href="https://www.twitch.tv/ehchad" target="_blank">Check Out My Twitch!</a>
|
||||
},
|
||||
|
||||
{
|
||||
hiddenLink: <a href="https://kick.com/ehchad" target="_blank" />,
|
||||
name: "Kick",
|
||||
image: KickLogo,
|
||||
link: <a href="https://kick.com/ehchad" target="_blank">Check Out My Kick!</a>
|
||||
},
|
||||
|
||||
{
|
||||
hiddenLink: <a href="https://www.tiktok.com/@eh_chad" target="_blank" />,
|
||||
name: "TikTok",
|
||||
image: TikTokLogo,
|
||||
link: <a href="https://www.tiktok.com/@eh_chad" target="_blank">Check Out My TikTok!</a>
|
||||
},
|
||||
|
||||
{
|
||||
hiddenLink: <a href="https://x.com/EhChad_real" target="_blank" />,
|
||||
name: "Twitter-X",
|
||||
@@ -38,5 +55,12 @@ export const SocialList = [
|
||||
name: "GitHub",
|
||||
image: GitHubLogo,
|
||||
link: <a href="https://github.com/DevEhChad" target="_blank">Check Out My GitHub!</a>
|
||||
},
|
||||
|
||||
{
|
||||
hiddenLink: <a href="https://gitea.ecsgameservers.com/chad" target="_blank" />,
|
||||
name: "Gitea (Self Hosted)",
|
||||
image: GiteaLogo,
|
||||
link: <a href="https://gitea.ecsgameservers.com/chad" target="_blank">Check Out My Gitea!</a>
|
||||
}
|
||||
];
|
||||
@@ -1,10 +1,12 @@
|
||||
.shop {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
min-height: 100vh; /* Ensure it takes at least full screen height */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
padding: 100px 15px; /* Add padding for navbar/footer */
|
||||
box-sizing: border-box; /* Include padding in height/width calculation */
|
||||
}
|
||||
|
||||
.shop .shopTitle {
|
||||
@@ -13,21 +15,25 @@
|
||||
}
|
||||
|
||||
.shopList {
|
||||
width: 70vw;
|
||||
width: 100%;
|
||||
max-width: 1200px; /* Set a max-width for very large screens */
|
||||
height: auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
place-items: center;
|
||||
justify-items: center; /* Center items horizontally, align-items will default to stretch */
|
||||
}
|
||||
|
||||
/* SHOP ITEM STYLING */
|
||||
|
||||
.shopItem {
|
||||
border-radius: 15px;
|
||||
width: 300px;
|
||||
height: 350px;
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
/* The grid now controls the height, so we can remove the explicit height property */
|
||||
margin: 20px;
|
||||
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
|
||||
display: flex; /* Use flexbox for better content alignment */
|
||||
flex-direction: column; /* Stack children vertically */
|
||||
}
|
||||
.shopItem:hover {
|
||||
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.5);
|
||||
@@ -46,8 +52,14 @@
|
||||
}
|
||||
|
||||
.shopItem h1,
|
||||
.shopItem p {
|
||||
.shopItem p { /* This rule applies to both the title and price */
|
||||
margin-left: 20px;
|
||||
margin-right: 20px; /* Add right margin for better text wrapping */
|
||||
}
|
||||
|
||||
.shopItem p {
|
||||
margin-top: auto; /* This pushes the price to the bottom of the card */
|
||||
padding-bottom: 20px; /* Add some space below the price */
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1300px) {
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
.social {
|
||||
background-color: gray;
|
||||
background-color: rgb(194, 187, 187);
|
||||
width: 100%;
|
||||
height: 100svh;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
padding: 100px 15px; /* Added padding for navbar/footer and side margins */
|
||||
box-sizing: border-box; /* Ensures padding is included in the element's total width and height */
|
||||
}
|
||||
|
||||
.social .socialTitle {
|
||||
@@ -14,57 +16,82 @@
|
||||
}
|
||||
|
||||
.socialList {
|
||||
width: 70vw;
|
||||
width: 100%;
|
||||
max-width: 1200px; /* Use max-width for better responsiveness */
|
||||
height: auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
place-items: center;
|
||||
justify-items: center; /* Center items horizontally, align-items will default to stretch */
|
||||
align-items: stretch; /* Explicitly force all items in a row to be the same height */
|
||||
}
|
||||
|
||||
/* social ITEM STYLING */
|
||||
|
||||
.socialItem {
|
||||
background-color: lightgray;
|
||||
background-color: #e0e0e0; /* A softer, off-white background */
|
||||
border-radius: 15px;
|
||||
width: 300px;
|
||||
height: 350px;
|
||||
border: 1px solid #000000; /* A light border for definition */
|
||||
width: 100%; /* Ensure item fills its grid column */
|
||||
max-width: 300px;
|
||||
margin: 20px;
|
||||
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* A more subtle, modern shadow */
|
||||
display: flex; /* Use flexbox for better content alignment */
|
||||
flex-direction: column; /* Stack children vertically */
|
||||
position: relative; /* Establishes a positioning context for the link */
|
||||
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.socialItem:hover {
|
||||
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.5);
|
||||
transition: 0.3s ease-in;
|
||||
box-shadow: 0 4px 12px rgb(36, 36, 36); /* A slightly larger, soft shadow on hover */
|
||||
cursor: pointer;
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.socialItem div {
|
||||
border-top-left-radius: 15px;
|
||||
border-top-right-radius: 15px;
|
||||
width: 100%;
|
||||
/* Pull the image over the parent's border to hide it on the top and sides */
|
||||
width: calc(100% + 2px);
|
||||
height: 200px;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
margin: -1px -1px 0 -1px;
|
||||
}
|
||||
|
||||
/* Style the link to look like normal text */
|
||||
.socialItem a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
margin: 20px;
|
||||
font-size: 20px;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* This is the magic part: stretch the link's clickable area */
|
||||
.socialItem a::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.socialItem h1,
|
||||
.socialItem p {
|
||||
margin-left: 20px;
|
||||
margin-right: 20px; /* Add right margin for better text wrapping */
|
||||
}
|
||||
|
||||
.socialItem h1 {
|
||||
color: #212529; /* Dark gray for headings */
|
||||
}
|
||||
|
||||
.socialItem p {
|
||||
margin-top: auto; /* This pushes the paragraph to the bottom of the card */
|
||||
padding-bottom: 20px; /* Add some space for aesthetics */
|
||||
color: #495057; /* A slightly lighter gray for body text */
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1300px) {
|
||||
.social {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.socialList {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user