-
Notifications
You must be signed in to change notification settings - Fork 0
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
d36abf0
commit 154af57
Showing
28 changed files
with
406 additions
and
135 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
trailingComma: "all", | ||
trailingComma: 'all', | ||
endOfLine: 'auto', | ||
}; |
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import "twin.macro"; | ||
import 'twin.macro'; | ||
|
||
const React = require('react'); | ||
|
||
export default function GuildsInsideContainer(props) { | ||
const { guilds } = props; | ||
|
||
return ( | ||
<div tw="flex flex-col items-center p-12 justify-between bg-Light h-64 w-80 m-4 rounded shadow-xl text-center ease-in-out transform hover:scale-110 transition duration-300"> | ||
<h1 tw="text-2xl font-bold m-2">Guild inside</h1> | ||
<h1 tw="text-2xl font-bold m-2">{props.guilds.length}</h1> | ||
<h1 tw="text-2xl font-bold m-2">{guilds.length}</h1> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import "twin.macro"; | ||
import 'twin.macro'; | ||
|
||
const React = require('react'); | ||
|
||
export default function GuildsOwnedContainer(props) { | ||
const { matches } = props; | ||
return ( | ||
<div tw="flex flex-col items-center p-12 justify-between bg-Light h-64 w-80 m-4 rounded shadow-xl text-center ease-in-out transform hover:scale-110 transition duration-300"> | ||
<h1 tw="text-2xl font-bold m-2">Guilds owned</h1> | ||
<h1 tw="text-2xl font-bold m-2">{props.matches.length}</h1> | ||
<h1 tw="text-2xl font-bold m-2">{matches.length}</h1> | ||
</div> | ||
); | ||
} |
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 @@ | ||
import React from 'react'; | ||
import 'twin.macro'; | ||
|
||
export default function Guild(props) { | ||
const { guild } = props; | ||
return ( | ||
<div tw="bg-Dark ease-in-out transform w-full transition duration-300 rounded shadow-xl flex flex-col justify-center p-12 m-6 items-center"> | ||
<img | ||
src={`https://cdn.discordapp.com/icons/${guild.id}/${guild.icon}`} | ||
tw="w-20 h-20 rounded-full" | ||
onError={(e) => { | ||
e.target.onerror = null; | ||
e.target.src = 'https://i.imgur.com/2O78wUO.jpg'; | ||
}} | ||
alt="userIMG" | ||
/> | ||
<div tw="text-center"> | ||
<h1 tw="text-2xl font-bold m-2 ">{guild.name}</h1> | ||
<h1 tw="text-lg m-2 ">{guild.id}</h1> | ||
</div> | ||
</div> | ||
); | ||
} |
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,17 @@ | ||
import React from 'react'; | ||
import 'twin.macro'; | ||
import Guild from './Guild'; | ||
|
||
export default function UserContainer(props) { | ||
const { guilds } = props; | ||
|
||
const guildItem = guilds.map((guild) => ( | ||
<Guild key={guild.id} guild={guild} /> | ||
)); | ||
|
||
return ( | ||
<div tw="flex flex-col items-center p-12 justify-between bg-Darkest h-96 w-10/12 m-4 rounded shadow-xl text-center overflow-y-scroll"> | ||
{guildItem} | ||
</div> | ||
); | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
154af57
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: