Skip to content

Commit

Permalink
Update AshLanding component to use "ash" prefix for class names and u…
Browse files Browse the repository at this point in the history
…pdate styling accordingly
  • Loading branch information
ashleyleal committed Jun 7, 2024
1 parent 876888b commit 160b6f7
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 53 deletions.
26 changes: 13 additions & 13 deletions client/src/pages/Initial/AshLanding/AshLanding.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import InstagramIcon from '../../../assets/social/instagram-brands-dark-purple.s
const InstagramButton = ({ link, text }) => {
return (
<a href={link} target="_blank" rel="noreferrer" className="no-link-style">
<div className="button">
<img src={InstagramIcon} alt="Instagram Icon" className="button-icon" />
<span className="button-text">{text}</span>
<div className="ash-button">
<img src={InstagramIcon} alt="Instagram Icon" className="ash-button-icon" />
<span className="ash-button-text">{text}</span>
</div>
</a>
);
Expand All @@ -22,18 +22,18 @@ InstagramButton.propTypes = {
const AshLanding = () => {
return (
<>
<div className="initial-page">
<div className="container">
<div className="title">
<h1 className="title-text">COMING SOON!</h1>
<hr className="line"></hr>
<p className="subtitle">
<div className="ash-initial-page">
<div className="ash-container">
<div className="ash-title">
<h1 className="ash-title-text">COMING SOON!</h1>
<hr className="ash-line"></hr>
<p className="ash-subtitle">
Hey F!rosh! Our website is currently under construction. Check back soon!
</p>
</div>

<div className="info">
<div className="button-container">
<div className="ash-info">
<div className="ash-button-container">
<InstagramButton
link="https://www.instagram.com/froshweek/"
text="Follow @froshweek for updates"
Expand All @@ -45,8 +45,8 @@ const AshLanding = () => {
</div>
</div>

<div className="footer">
<h2 className="footer-text">Made with 💜 by the F!rosh Week 2T4 Tech Team</h2>
<div className="ash-footer">
<h2 className="ash-footer-text">Made with 💜 by the F!rosh Week 2T4 Tech Team</h2>
</div>
</div>
</div>
Expand Down
79 changes: 39 additions & 40 deletions client/src/pages/Initial/AshLanding/AshLanding.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.initial-page {
.ash-initial-page {
width: 100vw;
height: 100vh;

Expand All @@ -17,7 +17,7 @@
}

/* TITLE SECTION */
.title {
.ash-title {
display: flex;
flex-direction: column;

Expand All @@ -28,28 +28,28 @@
text-align: center;
padding-top: 20%;
}
.title-text {
.ash-title-text {
font-size: 64px;
font-style: bold;
letter-spacing: 0.1em;
margin-bottom: 24px;
text-shadow: 0px 7px 10px rgba(0, 0, 0, 0.25);
}
hr.line {
hr.ash-line {
top: 10px;
width: 851px;
height: 0px;
border: 2px solid var(--yellow);
border-radius: 100px;
margin-bottom: 24px;
}
.subtitle {
.ash-subtitle {
font-size: 20px;
letter-spacing: 0.05em;
}

/* LINKS SECTION */
.info {
.ash-info {
display: flex;
justify-content: space-between;
align-items: center;
Expand All @@ -58,7 +58,7 @@ hr.line {
margin: 0 auto;
padding-top: 70px;
}
.button-container {
.ash-button-container {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
Expand All @@ -69,38 +69,50 @@ hr.line {
grid-template-columns: 1fr 1fr;
}
}
.button {
.ash-button {
display: flex;
justify-content: center;
align-items: center;
width: 405px;
width: 410px;
margin: 0 auto;
padding: 10px 20px;
border-radius: 100px;
background: var(--white);
border-radius: 100px;
font-size: 17px;
font-weight: bold;
letter-spacing: 0.05em;
text-align: center;
cursor: pointer;
transition: 0.3s;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
user-select: none;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25), var(--shadow);
transition: transform 200ms, background-color 200ms, box-shadow 0.3s;

&:hover {
transform: scale(1.02);
}
&:active,
&:focus {
transform: scale(0.97);
transition: transform 150ms;
}
}
.button:hover {

.ash-button:hover {
background: var(--yellow);
color: var(--purple-shades-dark);
transition: 0.3s;
}
.button-icon {
.ash-button-icon {
width: 30px;
height: 30px;
}
.button-text {
.ash-button-text {
color: var(--purple-shades-dark);
margin-left: 7px;
margin: auto;
}

/* FOOTER */
.footer {
.ash-footer {
position: absolute;
bottom: 10px;
right: 0;
Expand All @@ -109,28 +121,21 @@ hr.line {
align-items: center;
color: var(--purple-shades-muted);
}
.footer-text {
.ash-footer-text {
text-align: center;
font-size: 20px;
font-style: normal;
letter-spacing: 0.1em;
}

a:hover,
a:visited,
a:link,
a:active {
text-decoration: none !important;
}

/***************** MOBILE VIEW *******************/

@media screen and (max-width: 428px) {
/* CSS for screens that are 428 pixels or less
i.e. the largest screen width is an iphone 13 pro max thing
*/

.title {
.ash-title {
display: flex;
flex-direction: column;

Expand All @@ -143,7 +148,7 @@ a:active {
text-align: center;
padding-top: 60%;
}
.title-text {
.ash-title-text {
font-style: bold;
font-size: 20px;
letter-spacing: 0.1em;
Expand All @@ -153,19 +158,19 @@ a:active {

margin-bottom: 10px;
}
hr.line {
hr.ash-line {
width: 274px;
border: 1px solid var(--yellow);
border-radius: 100px;
margin-bottom: 10px;
}
.subtitle {
.ash-subtitle {
font-size: 12px;
max-width: 274px;
letter-spacing: 0.03em;
}

.info {
.ash-info {
display: flex;
justify-content: space-between;
align-items: center;
Expand All @@ -177,30 +182,24 @@ a:active {
padding-top: 10%;
}

.button {
.ash-button {
width: 274px;
padding: 5px 10px;
border-radius: 100px;
font-size: 11px;
letter-spacing: 0.05em;
}

.button-container {
.ash-ash-button-container {
grid-template-columns: 1fr;
}

.button-text {
.ash-ash-button-text {
font-size: 10px;
}

.footer-text {
.ash-footer-text {
font-size: 8px;
letter-spacing: 0.1em;
}
}
a:hover,
a:visited,
a:link,
a:active {
text-decoration: none !important;
}

0 comments on commit 160b6f7

Please sign in to comment.