Skip to content

Commit

Permalink
按照設計稿建立首頁
Browse files Browse the repository at this point in the history
  • Loading branch information
dada878 committed Jul 14, 2023
0 parents commit 69b70cc
Show file tree
Hide file tree
Showing 5 changed files with 403 additions and 0 deletions.
Binary file added assets/clubs/club_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
329 changes: 329 additions & 0 deletions css/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,329 @@
/* variables */

:root {
--bg-main: #02041F;
--bg-secondary: #0E1133;
--bg-primary: #5F8AC9;
--bg-primary-opacity-30: #5f89c93f;
--font-color: #D9DEED;
}

/* body */

html, body {
font-family: Tahoma, Helvetica, Arial, "Microsoft Yahei", STXihei, sans-serif;
background-color: var(--bg-main);
color: var(--font-color);
box-sizing: content-box;
overflow-y: overlay;
overflow-x: hidden;
margin: 0;
padding: 0;
}

/* scrollbar */

::-webkit-scrollbar {
background-color: transparent;
width: 0.5rem;
}

::-webkit-scrollbar-thumb {
background-color: rgba(121, 163, 255, 0.37);
border-radius: 1rem;
}

/* navbar */

.navbar > ul {
font-weight: bold;
list-style: none;
display: flex;
gap: 1.5rem;
background-color: var(--bg-secondary);
padding: 1rem;
position: fixed;
margin: 0;
top: 0;
left: 0;
right: 0;
z-index: 1;
overflow-x: scroll;
}

.navbar > ul::-webkit-scrollbar {
display: none;
}

.navbar-item > a {
text-decoration: none;
color: var(--font-color);
}

.discord-button {
background-color: #5865f2;
color: var(--font-color);
padding: 0.5rem 1rem;
border-radius: 0.5rem;
font-weight: bold;
transition: 100ms;
margin-left: auto;
margin-top: -0.5rem;
margin-bottom: -0.5rem ;
margin-right: -0.5rem;
}

.discord-button:hover {
background-color: #4752c4;
}

.discord-button {
vertical-align: middle;
color: #fff;
text-decoration: none;
}

/* banner */

.banner {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.banner > .down-arrow {
font-size: 2rem;
padding: 1rem;
color: var(--font-color);
opacity: 0.5;
animation: float 2s ease-in-out infinite;
cursor: pointer;
}

.banner-content > h2 {
font-weight: normal;
}

.banner-content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 90vh;
gap: 1rem;
}

.banner-content > h1 {
font-size: 4rem;
text-align: center;
}

@media (max-width: 768px) {
.banner-image {
width: 80%;
}
}

@keyframes float {
0% {
transform: translateY(-1rem);
}
50% {
transform: translateY(1rem);
}
100% {
transform: translateY(-1rem);
}
}

/* container */


.container {
padding-top: 5rem;
max-width: 60%;
margin: 0 auto;
}

@media (max-width: 1300px) {
.container {
max-width: 70%;
}
}

@media (max-width: 1200px) {
.container {
max-width: 80%;
}
}

@media (max-width: 768px) {
.container {
max-width: 90%;
}
}


/* section title */

.title {
position: relative;
text-align: center;
overflow: hidden;
border-bottom: none;
}

.title::before,
.title::after {
content: '';
display: inline-block;
width: 100%;
height: 2px;
position: absolute;
background: var(--bg-primary);
top: 50%;
}

.title::before,
.title::before {
margin-left: -2rem;
transform: translateX(-100%);
}

.title::after,
.title::after {
margin-left: 2rem;
}

/* about us */

.about-us {
display: flex;
justify-content: center;
flex-direction: row;
padding: 3rem;
gap: 2rem;
}

@media (max-width: 768px) {
.about-us {
padding: 1rem;
flex-direction: column;
}
}

.about-us > section > h2 {
text-align: center;
}

.about-us > section > p {
margin: 0;
}

.about-us > section {
background-color: var(--bg-secondary);
padding: 1rem;
border-radius: 1rem;
flex: 1;
/* width: 100%; */
}

/* clubs */

.clubs {
display: flex;
justify-content: center;
flex-direction: column;
padding: 3rem;
gap: 2rem;
}

.clubs > section {
background-color: var(--bg-secondary);
border-radius: 1rem;
padding: 1rem;
display: flex;
flex-direction: row;
gap: 1rem;
}

.club-image {
width: 6rem;
height: 6rem;
border-radius: 1rem;
}

@media (max-width: 768px) {
.clubs {
padding: 1rem;
padding-bottom: 3rem;
}
.club-image {
width: 5rem;
height: 5rem;
border-radius: 1rem;
}
}

@media (max-width: 450px) {
.club-image {
width: 4rem;
height: 4rem;
border-radius: 1rem;
}
}

.club-info {
display: flex;
flex-direction: column;
justify-content: space-around;
}

.club-info > p {
margin: 0;
}

.club-socials {
display: flex;
flex-direction: row;
gap: 0.5rem;
}

.club-socials > a {
font-size: 1.5rem;
text-decoration: none;
color: var(--bg-primary);
}

/* footer */

footer {
background-color: var(--bg-secondary);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 1rem;
padding-bottom: 0;
}

.contact {
display: flex;
justify-content: center;
flex-direction: row;
gap: 1rem;
}

.contact > a {
width: 2.5rem;
height: 2.5rem;
font-size: 1.5rem;
text-decoration: none;
color: var(--font-color);
background-color: var(--bg-primary-opacity-30);
border-radius: 2rem;
display: flex;
justify-content: center;
align-items: center;
}
Empty file added css/home.css
Empty file.
Loading

0 comments on commit 69b70cc

Please sign in to comment.