-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from KaiiB/main
container/alignment changes
- Loading branch information
Showing
3 changed files
with
80 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,14 @@ | |
<a href = "{link}"><button class="card-button">{button_name}</button></a> | ||
{:else} | ||
<div class = 'outside'> | ||
<div class="socials"> | ||
<a href="https://www.facebook.com/DS3UCSD/" rel="noreferrer" target="_blank"><img src="/svgs/icons/facebook_icon.svg" alt="facebook icon"></a> | ||
<a href="https://discord.gg/NqHx8h3" rel="noreferrer" target="_blank"><img src="/svgs/icons/discord_icon.svg" alt="discord icon"></a> | ||
<a href="https://www.instagram.com/ds3.ucsd/?hl=en" rel="noreferrer" target="_blank"><img src="/svgs/icons/instagram_icon.svg" alt="instagram icon"></a> | ||
<a href="https://medium.com/ds3ucsd" rel="noreferrer" target="_blank"><img src="/svgs/icons/medium_icon.svg" alt="medium icon"></a> | ||
<a href="mailto:[email protected]" rel="noreferrer" target="_blank"><img src="/svgs/icons/email_icon.svg" alt="email icon"></a> | ||
<a href="https://open.spotify.com/show/7yHiQn4eqjy2EAzRNEmQdf" rel="noreferrer" target="_blank"><img src="/svgs/icons/spotify_icon.svg" alt="spotify icon"></a> | ||
</div> | ||
<div class="socials"> | ||
<a href="https://www.facebook.com/DS3UCSD/" rel="noreferrer" target="_blank"><img src="/svgs/icons/facebook_icon.svg" alt="facebook icon"></a> | ||
<a href="https://discord.gg/NqHx8h3" rel="noreferrer" target="_blank"><img src="/svgs/icons/discord_icon.svg" alt="discord icon"></a> | ||
<a href="https://www.instagram.com/ds3.ucsd/?hl=en" rel="noreferrer" target="_blank"><img src="/svgs/icons/instagram_icon.svg" alt="instagram icon"></a> | ||
<a href="https://medium.com/ds3ucsd" rel="noreferrer" target="_blank"><img src="/svgs/icons/medium_icon.svg" alt="medium icon"></a> | ||
<a href="mailto:[email protected]" rel="noreferrer" target="_blank"><img src="/svgs/icons/email_icon.svg" alt="email icon"></a> | ||
<a href="https://open.spotify.com/show/7yHiQn4eqjy2EAzRNEmQdf" rel="noreferrer" target="_blank"><img src="/svgs/icons/spotify_icon.svg" alt="spotify icon"></a> | ||
</div> | ||
</div> | ||
{/if} | ||
</div> | ||
|
@@ -32,15 +32,21 @@ | |
margin-top: 7.5vh; | ||
margin-bottom: 7.5vh; | ||
height: 35vh; | ||
padding-inline: 4vh; | ||
width: 15vw; | ||
word-wrap: break-word; | ||
padding-inline: 2vh; | ||
word-break: break-word; | ||
position: relative; | ||
background-color: #fff; | ||
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; | ||
display: flex; | ||
flex-direction: column; | ||
text-align: left; | ||
} | ||
@media (min-width: 912px) { | ||
.card { | ||
width: 30vw; | ||
} | ||
} | ||
.card-header { | ||
font-size: 2.5vmin; | ||
font-family: "Montserrat Bold"; | ||
|
@@ -51,7 +57,9 @@ | |
font-size: 2vmin; | ||
margin-top: 1vh; | ||
margin-bottom: auto; | ||
} | ||
.card-button { | ||
margin-bottom: 4vh; | ||
background-color: var(--ds3-orange); | ||
|
@@ -62,20 +70,40 @@ | |
font-weight: bold; | ||
transition: 0.3s; | ||
} | ||
.card-button:hover { | ||
background-color: var(--ds3-orange-lighten); | ||
cursor: pointer; | ||
} | ||
.socials { | ||
display: flex; | ||
justify-content: space-around; | ||
position: relative; | ||
margin-top: auto; | ||
margin-bottom: 4vh; | ||
} | ||
} | ||
.socials img { | ||
height: 3vh; | ||
height: 5vh; | ||
vertical-align: middle; | ||
width: 2.5vw; | ||
} | ||
@media (max-width: 911px) { | ||
.card-description { | ||
font-size: 1.5vh; | ||
} | ||
.card-button { | ||
width: 20vw; | ||
height: 5vh; | ||
} | ||
.socials img { | ||
width: 6vw; | ||
height: 6vh | ||
} | ||
.card { | ||
width: 50vw; | ||
} | ||
.card-header { | ||
font-size: 2vh; | ||
} | ||
} | ||
</style> |
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